Skip to content

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.

lime-100#ECFCCA

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

Color codes for lime-100
Tailwind v4 token--color-lime-100
OKLCH (source value)oklch(96.7% 0.067 122.328)
HEX#ECFCCA
RGBrgb(236, 252, 202)
HSLhsl(79, 89%, 89%)
HWBhwb(79 79% 1%)
CMYK (naive, no ICC profile)cmyk(6%, 0%, 20%, 1%)
Decimal15,531,210
Tailwind v3 hex#ECFCCB
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on lime-10019.34:1PassPassPassPass100.4
White text on lime-1001.08:1FailFailFailFail0.0
Lime-100 text on white1.08:1FailFailFailFail0.0
Lime-100 text on black19.34:1PassPassPassPass−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)

  1. 5%
    #edfccd
  2. 15%
    #effcd2
  3. 25%
    #f1fdd7
  4. 35%
    #f3fddd
  5. 45%
    #f5fde2
  6. 55%
    #f6fee7
  7. 65%
    #f8feec
  8. 75%
    #fafef2
  9. 85%
    #fcfff7
  10. 95%
    #fefffc

Shades (mixed with black)

  1. 5%
    #e0efc0
  2. 15%
    #c9d6ac
  3. 25%
    #b1bd98
  4. 35%
    #99a483
  5. 45%
    #828b6f
  6. 55%
    #6a715b
  7. 65%
    #535847
  8. 75%
    #3b3f33
  9. 85%
    #23261e
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
lightgoldenrodyellow#fafad22.3
lemonchiffon#fffacd2.6
beige#f5f5dc3.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-100#fef9c22.4
amber-100#fef3c63.1
green-100#dcfce74.0

Code snippets

Tailwind CSS
<div class="bg-lime-100 text-black">...</div>
<p class="text-lime-100 border-lime-100">...</p>
CSS
.element {
  color: var(--color-lime-100);
  background-color: oklch(96.7% 0.067 122.328);
  border-color: #ecfcca;
  outline-color: rgb(236 252 202);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime100 = Color(red: 0.925, green: 0.988, blue: 0.792)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Lime100 = Color(0xFFECFCCA)
Flutter
import 'package:flutter/material.dart';

const lime100 = Color(0xFFECFCCA);
Android XML
<!-- 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.