Tailwind CSS v4 default palette
Tailwind lime-500: #7CCF00
In Tailwind CSS v4, lime-500 is defined as --color-lime-500: oklch(76.8% 0.233 130.85), which is #7CCF00 in hex and rgb(124, 207, 0): a light, vivid yellow-green. In Tailwind v3, lime-500 was #84CC16.
In OKLCH, lime-500 has a lightness of 76.8%, chroma 0.233 and hue 130.8°.
This OKLCH value lies outside sRGB. The hex #7CCF00 is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.5627 0.8018 0.1312).
In v3, lime-500 was #84CC16. The v4 value is ΔE OK 2.9 away; v4 is more saturated.
Tailwind lime is a yellow-green between yellow and green, bright and acidic in its mid shades.
Color codes for lime-500
| Tailwind v4 token | --color-lime-500 |
|---|---|
| OKLCH (source value) | oklch(76.8% 0.233 130.85) |
| HEX | #7CCF00 |
| RGB | rgb(124, 207, 0) |
| HSL | hsl(84, 100%, 41%) |
| HWB | hwb(84 0% 19%) |
| CMYK (naive, no ICC profile) | cmyk(40%, 0%, 100%, 19%) |
| Decimal | 8,179,456 |
| Display P3 | color(display-p3 0.5627 0.8018 0.1312) |
| Tailwind v3 hex | #84CC16 |
| Utility classes | bg-lime-500, text-lime-500, border-lime-500 |
Tailwind lime scale
Contrast and accessibility
On lime-500, black text has a contrast ratio of 10.78:1 and passes AAA at any text size; white text reaches 1.94:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on lime-500 | 10.78:1 | Pass | Pass | Pass | Pass | 66.8 |
| White text on lime-500 | 1.94:1 | Fail | Fail | Fail | Fail | −41.4 |
| Lime-500 text on white | 1.94:1 | Fail | Fail | Fail | Fail | 37.1 |
| Lime-500 text on black | 10.78:1 | Pass | Pass | Pass | Pass | −65.4 |
Tints and shades
Each step mixes var(--color-lime-500) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-lime-500), white 25%) in CSS.
Tints (mixed with white)
- 5%
#83d10d - 15%
#90d626 - 25%
#9ddb40 - 35%
#aae059 - 45%
#b7e573 - 55%
#c4e98c - 65%
#d1eea6 - 75%
#def3bf - 85%
#ebf8d9 - 95%
#f8fdf2
Shades (mixed with black)
- 5%
#76c500 - 15%
#69b000 - 25%
#5d9b00 - 35%
#518700 - 45%
#447200 - 55%
#385d00 - 65%
#2b4800 - 75%
#1f3400 - 85%
#131f00 - 95%
#060a00
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, lime-500's complementary color is #DA8BFF (close to violet), its analogous colors are #CDB500 and #00D889, and its triadic partners are #67B9FF and #FF829A. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #da8bff |
| Analogous | −30°, +30° | #cdb500#00d889 |
| Triadic | +120°, +240° | #67b9ff#ff829a |
| Split-complementary | +150°, +210° | #a4a7ff#ff71dc |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Tailwind lime-500 sits on the boundary: its hue of 84° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
<div class="bg-lime-500 text-black">...</div>
<p class="text-lime-500 border-lime-500">...</p>.element {
color: var(--color-lime-500);
background-color: oklch(76.8% 0.233 130.85);
border-color: #7ccf00;
outline-color: rgb(124 207 0);
}import SwiftUI
extension Color {
static let lime500 = Color(red: 0.486, green: 0.812, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Lime500 = Color(0xFF7CCF00)import 'package:flutter/material.dart';
const lime500 = Color(0xFF7CCF00);<!-- res/values/colors.xml -->
<color name="lime_500">#7CCF00</color>Frequently asked questions
- What is the hex code for Tailwind lime-500?
- In Tailwind CSS v4, lime-500 is oklch(76.8% 0.233 130.85), which converts to #7CCF00 (rgb(124, 207, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #84CC16.
- What is the difference between lime-500 in Tailwind v3 and v4?
- v3 used the hex #84CC16; v4 redefined the palette in OKLCH as oklch(76.8% 0.233 130.85). In v3, lime-500 was #84CC16. The v4 value is ΔE OK 2.9 away; v4 is more saturated.
- How do I use lime-500 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on lime-500?
- White text on lime-500 has a contrast ratio of 1.94:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.78:1 and passes both AA and AAA. In APCA terms that is Lc −41.4 for white and Lc 66.8 for black.
- Which CSS named color is closest to lime-500?
- The closest is yellowgreen (#9ACD32) at ΔE OK 5.4, followed by limegreen and lawngreen.
Last reviewed by Arielton Oberek.