Skip to content

Tailwind CSS v4 default palette

Tailwind lime-200: #D8F999

In Tailwind CSS v4, lime-200 is defined as --color-lime-200: oklch(93.8% 0.127 124.321), which is #D8F999 in hex and rgb(216, 249, 153): a very light, moderately saturated yellow-green. In Tailwind v3, lime-200 was #D9F99D.

lime-200#D8F999

In OKLCH, lime-200 has a lightness of 93.8%, chroma 0.127 and hue 124.3°.

The value fits inside sRGB, so the hex #D8F999 represents it without loss on any screen.

In v3, lime-200 was #D9F99D. The v4 value is ΔE OK 0.5 away, below the point where most people can tell them apart; 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-200

Color codes for lime-200
Tailwind v4 token--color-lime-200
OKLCH (source value)oklch(93.8% 0.127 124.321)
HEX#D8F999
RGBrgb(216, 249, 153)
HSLhsl(81, 89%, 79%)
HWBhwb(81 60% 2%)
CMYK (naive, no ICC profile)cmyk(13%, 0%, 39%, 2%)
Decimal14,219,673
Tailwind v3 hex#D9F99D
Utility classesbg-lime-200, text-lime-200, border-lime-200

Tailwind lime scale

Contrast and accessibility

On lime-200, black text has a contrast ratio of 17.93:1 and passes AAA at any text size; white text reaches 1.17: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-20017.93:1PassPassPassPass95.4
White text on lime-2001.17:1FailFailFailFail−9.6
Lime-200 text on white1.17:1FailFailFailFail8.1
Lime-200 text on black17.93:1PassPassPassPass−96.2

Tints and shades

Each step mixes var(--color-lime-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-lime-200), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #daf99e
  2. 15%
    #defaa8
  3. 25%
    #e2fbb3
  4. 35%
    #e6fbbd
  5. 45%
    #eafcc7
  6. 55%
    #edfcd1
  7. 65%
    #f1fddb
  8. 75%
    #f5fee6
  9. 85%
    #f9fef0
  10. 95%
    #fdfffa

Shades (mixed with black)

  1. 5%
    #cded91
  2. 15%
    #b8d482
  3. 25%
    #a2bb73
  4. 35%
    #8ca263
  5. 45%
    #778954
  6. 55%
    #617045
  7. 65%
    #4c5736
  8. 75%
    #363e26
  9. 85%
    #202517
  10. 95%
    #0b0c08

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lime-200's complementary color is #F4E1FF (close to lavender), its analogous colors are #FFE982 and #A3FFC4, and its triadic partners are #CDEFFF and #FFDCE6. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f4e1ff
Analogous−30°, +30°#ffe982#a3ffc4
Triadic+120°, +240°#cdefff#ffdce6
Split-complementary+150°, +210°#e0e9ff#ffd7ff

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-200 sits on the boundary: its hue of 81° 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
khaki#f0e68c5.3
palegoldenrod#eee8aa6.2
palegreen#98fb987.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-200#fff0855.1
amber-200#fee6856.3
lime-100#ecfcca6.7

Code snippets

Tailwind CSS
<div class="bg-lime-200 text-black">...</div>
<p class="text-lime-200 border-lime-200">...</p>
CSS
.element {
  color: var(--color-lime-200);
  background-color: oklch(93.8% 0.127 124.321);
  border-color: #d8f999;
  outline-color: rgb(216 249 153);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime200 = Color(red: 0.847, green: 0.976, blue: 0.600)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const lime200 = Color(0xFFD8F999);
Android XML
<!-- res/values/colors.xml -->
<color name="lime_200">#D8F999</color>

Frequently asked questions

What is the hex code for Tailwind lime-200?
In Tailwind CSS v4, lime-200 is oklch(93.8% 0.127 124.321), which converts to #D8F999 (rgb(216, 249, 153)) in sRGB. In Tailwind v3 the same name was #D9F99D.
What is the difference between lime-200 in Tailwind v3 and v4?
v3 used the hex #D9F99D; v4 redefined the palette in OKLCH as oklch(93.8% 0.127 124.321). In v3, lime-200 was #D9F99D. The v4 value is ΔE OK 0.5 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use lime-200 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on lime-200?
White text on lime-200 has a contrast ratio of 1.17:1, which fails AA even for large text under WCAG 2.2. Black text reaches 17.93:1 and passes both AA and AAA. In APCA terms that is Lc −9.6 for white and Lc 95.4 for black.
Which CSS named color is closest to lime-200?
The closest is khaki (#F0E68C) at ΔE OK 5.3, followed by palegoldenrod and palegreen.

Last reviewed by Arielton Oberek.