Tailwind CSS v4 default palette
Tailwind lime-100: #ECFCCA
In Tailwind CSS v4, lime-100 is defined as --color-lime-100: oklch(96.7% 0.067 122.328), which is #ECFCCA in hex and rgb(236, 252, 202): a pale, muted yellow-green. In Tailwind v3, lime-100 was #ECFCCB.
In OKLCH, lime-100 has a lightness of 96.7%, chroma 0.067 and hue 122.3°.
The value fits inside sRGB, so the hex #ECFCCA represents it without loss on any screen.
In v3, lime-100 was #ECFCCB. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
Tailwind lime is a yellow-green between yellow and green, bright and acidic in its mid shades.
Color codes for lime-100
| Tailwind v4 token | --color-lime-100 |
|---|---|
| OKLCH (source value) | oklch(96.7% 0.067 122.328) |
| HEX | #ECFCCA |
| RGB | rgb(236, 252, 202) |
| HSL | hsl(79, 89%, 89%) |
| HWB | hwb(79 79% 1%) |
| CMYK (naive, no ICC profile) | cmyk(6%, 0%, 20%, 1%) |
| Decimal | 15,531,210 |
| Tailwind v3 hex | #ECFCCB |
| Utility classes | bg-lime-100, text-lime-100, border-lime-100 |
Tailwind lime scale
Contrast and accessibility
On lime-100, black text has a contrast ratio of 19.34:1 and passes AAA at any text size; white text reaches 1.08: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-100 | 19.34:1 | Pass | Pass | Pass | Pass | 100.4 |
| White text on lime-100 | 1.08:1 | Fail | Fail | Fail | Fail | 0.0 |
| Lime-100 text on white | 1.08:1 | Fail | Fail | Fail | Fail | 0.0 |
| Lime-100 text on black | 19.34:1 | Pass | Pass | Pass | Pass | −101.6 |
Tints and shades
Each step mixes var(--color-lime-100) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-lime-100), white 25%) in CSS.
Tints (mixed with white)
- 5%
#edfccd - 15%
#effcd2 - 25%
#f1fdd7 - 35%
#f3fddd - 45%
#f5fde2 - 55%
#f6fee7 - 65%
#f8feec - 75%
#fafef2 - 85%
#fcfff7 - 95%
#fefffc
Shades (mixed with black)
- 5%
#e0efc0 - 15%
#c9d6ac - 25%
#b1bd98 - 35%
#99a483 - 45%
#828b6f - 55%
#6a715b - 65%
#535847 - 75%
#3b3f33 - 85%
#23261e - 95%
#0c0d0a
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, lime-100's complementary color is #F9EEFF (close to lavenderblush), its analogous colors are #FFF4C1 and #D3FFDF, and its triadic partners are #DEF8FF and #FFE9F2. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #f9eeff |
| Analogous | −30°, +30° | #fff4c1#d3ffdf |
| Triadic | +120°, +240° | #def8ff#ffe9f2 |
| Split-complementary | +150°, +210° | #ebf3ff#ffe7ff |
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-100 sits on the boundary: its hue of 79° 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.
Nearest CSS named colors
| Color | HEX | ΔE OK |
|---|---|---|
| lightgoldenrodyellow | #fafad2 | 2.3 |
| lemonchiffon | #fffacd | 2.6 |
| beige | #f5f5dc | 3.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| yellow-100 | #fef9c2 | 2.4 |
| amber-100 | #fef3c6 | 3.1 |
| green-100 | #dcfce7 | 4.0 |
Code snippets
<div class="bg-lime-100 text-black">...</div>
<p class="text-lime-100 border-lime-100">...</p>.element {
color: var(--color-lime-100);
background-color: oklch(96.7% 0.067 122.328);
border-color: #ecfcca;
outline-color: rgb(236 252 202);
}import SwiftUI
extension Color {
static let lime100 = Color(red: 0.925, green: 0.988, blue: 0.792)
}import androidx.compose.ui.graphics.Color
val Lime100 = Color(0xFFECFCCA)import 'package:flutter/material.dart';
const lime100 = Color(0xFFECFCCA);<!-- res/values/colors.xml -->
<color name="lime_100">#ECFCCA</color>Frequently asked questions
- What is the hex code for Tailwind lime-100?
- In Tailwind CSS v4, lime-100 is oklch(96.7% 0.067 122.328), which converts to #ECFCCA (rgb(236, 252, 202)) in sRGB. In Tailwind v3 the same name was #ECFCCB.
- What is the difference between lime-100 in Tailwind v3 and v4?
- v3 used the hex #ECFCCB; v4 redefined the palette in OKLCH as oklch(96.7% 0.067 122.328). In v3, lime-100 was #ECFCCB. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
- How do I use lime-100 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-100). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on lime-100?
- White text on lime-100 has a contrast ratio of 1.08:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.34:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 100.4 for black.
- Which CSS named color is closest to lime-100?
- The closest is lightgoldenrodyellow (#FAFAD2) at ΔE OK 2.3, followed by lemonchiffon and beige.
Last reviewed by Arielton Oberek.