Skip to content

Tailwind CSS v4 default palette

Tailwind lime-900: #35530E

In Tailwind CSS v4, lime-900 is defined as --color-lime-900: oklch(40.5% 0.101 131.063), which is #35530E in hex and rgb(53, 83, 14): a dark, moderately saturated green. In Tailwind v3, lime-900 was #365314.

lime-900#35530E

In OKLCH, lime-900 has a lightness of 40.5%, chroma 0.101 and hue 131.1°.

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

In v3, lime-900 was #365314. 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-900

Color codes for lime-900
Tailwind v4 token--color-lime-900
OKLCH (source value)oklch(40.5% 0.101 131.063)
HEX#35530E
RGBrgb(53, 83, 14)
HSLhsl(86, 71%, 19%)
HWBhwb(86 5% 67%)
CMYK (naive, no ICC profile)cmyk(36%, 0%, 83%, 67%)
Decimal3,494,670
Tailwind v3 hex#365314
Utility classesbg-lime-900, text-lime-900, border-lime-900

Tailwind lime scale

Contrast and accessibility

On lime-900, white text has a contrast ratio of 8.76:1 and passes AAA at any text size; black text reaches 2.39: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-9002.39:1FailFailFailFail14.1
White text on lime-9008.76:1PassPassPassPass−94.3
Lime-900 text on white8.76:1PassPassPassPass89.9
Lime-900 text on black2.39:1FailFailFailFail−12.4

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #3f5c1a
  2. 15%
    #536d32
  3. 25%
    #687e4a
  4. 35%
    #7c8f62
  5. 45%
    #90a07a
  6. 55%
    #a4b293
  7. 65%
    #b8c3ab
  8. 75%
    #cdd4c3
  9. 85%
    #e1e5db
  10. 95%
    #f5f6f3

Shades (mixed with black)

  1. 5%
    #324f0d
  2. 15%
    #2d470c
  3. 25%
    #283e0b
  4. 35%
    #223609
  5. 45%
    #1d2e08
  6. 55%
    #182506
  7. 65%
    #131d05
  8. 75%
    #0d1504
  9. 85%
    #080c02
  10. 95%
    #030401

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lime-900's complementary color is #5A3771 (close to darkslateblue), its analogous colors are #554900 and #005937, and its triadic partners are #164B7D and #752E3B. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#5a3771
Analogous−30°, +30°#554900#005937
Triadic+120°, +240°#164b7d#752e3b
Split-complementary+150°, +210°#41407e#6c3059

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-900 sits on the boundary: its hue of 86° 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
darkgreen#0064006.2
darkslategray#2f4f4f9.1
darkolivegreen#556b2f9.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
green-900#0d542b3.9
lime-800#3c63005.3
green-800#0166306.1

Code snippets

Tailwind CSS
<div class="bg-lime-900 text-white">...</div>
<p class="text-lime-900 border-lime-900">...</p>
CSS
.element {
  color: var(--color-lime-900);
  background-color: oklch(40.5% 0.101 131.063);
  border-color: #35530e;
  outline-color: rgb(53 83 14);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime900 = Color(red: 0.208, green: 0.325, blue: 0.055)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const lime900 = Color(0xFF35530E);
Android XML
<!-- res/values/colors.xml -->
<color name="lime_900">#35530E</color>

Frequently asked questions

What is the hex code for Tailwind lime-900?
In Tailwind CSS v4, lime-900 is oklch(40.5% 0.101 131.063), which converts to #35530E (rgb(53, 83, 14)) in sRGB. In Tailwind v3 the same name was #365314.
What is the difference between lime-900 in Tailwind v3 and v4?
v3 used the hex #365314; v4 redefined the palette in OKLCH as oklch(40.5% 0.101 131.063). In v3, lime-900 was #365314. 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-900 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on lime-900?
White text on lime-900 has a contrast ratio of 8.76:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.39:1 and fails AA even for large text. In APCA terms that is Lc −94.3 for white and Lc 14.1 for black.
Which CSS named color is closest to lime-900?
The closest is darkgreen (#006400) at ΔE OK 6.2, followed by darkslategray and darkolivegreen.

Last reviewed by Arielton Oberek.