Skip to content

Tailwind CSS v4 default palette

Tailwind lime-800: #3C6300

In Tailwind CSS v4, lime-800 is defined as --color-lime-800: oklch(45.3% 0.124 130.933), which is #3C6300 in hex and rgb(60, 99, 0): a medium-dark, moderately saturated yellow-green. In Tailwind v3, lime-800 was #3F6212.

lime-800#3C6300

In OKLCH, lime-800 has a lightness of 45.3%, chroma 0.124 and hue 130.9°.

This OKLCH value lies outside sRGB. The hex #3C6300 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.2715 0.3842 0.0975).

In v3, lime-800 was #3F6212. The v4 value is ΔE OK 1.1 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-800

Color codes for lime-800
Tailwind v4 token--color-lime-800
OKLCH (source value)oklch(45.3% 0.124 130.933)
HEX#3C6300
RGBrgb(60, 99, 0)
HSLhsl(84, 100%, 19%)
HWBhwb(84 0% 61%)
CMYK (naive, no ICC profile)cmyk(39%, 0%, 100%, 61%)
Decimal3,957,504
Display P3color(display-p3 0.2715 0.3842 0.0975)
Tailwind v3 hex#3F6212
Utility classesbg-lime-800, text-lime-800, border-lime-800

Tailwind lime scale

Contrast and accessibility

On lime-800, white text has a contrast ratio of 7.05:1 and passes AAA at any text size; black text reaches 2.97: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-8002.97:1FailFailFailFail19.8
White text on lime-8007.05:1PassPassPassPass−89.1
Lime-800 text on white7.05:1PassPassPassPass84.2
Lime-800 text on black2.97:1FailFailFailFail−17.8

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #466b0d
  2. 15%
    #597a26
  3. 25%
    #6d8a40
  4. 35%
    #809a59
  5. 45%
    #94a973
  6. 55%
    #a7b98c
  7. 65%
    #bbc8a6
  8. 75%
    #ced8bf
  9. 85%
    #e2e8d9
  10. 95%
    #f5f7f2

Shades (mixed with black)

  1. 5%
    #395e00
  2. 15%
    #335400
  3. 25%
    #2d4a00
  4. 35%
    #274000
  5. 45%
    #213600
  6. 55%
    #1b2d00
  7. 65%
    #152300
  8. 75%
    #0f1900
  9. 85%
    #090f00
  10. 95%
    #030500

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lime-800's complementary color is #6C3E88 (close to rebeccapurple), its analogous colors are #645700 and #006A3E, and its triadic partners are #0E5898 and #8D3245. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#6c3e88
Analogous−30°, +30°#645700#006a3e
Triadic+120°, +240°#0e5898#8d3245
Split-complementary+150°, +210°#4c4a98#82356a

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-800 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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
darkgreen#0064004.0
darkolivegreen#556b2f5.5
green#0080009.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
green-800#0166304.4
lime-900#35530e5.3
emerald-800#0060457.6

Code snippets

Tailwind CSS
<div class="bg-lime-800 text-white">...</div>
<p class="text-lime-800 border-lime-800">...</p>
CSS
.element {
  color: var(--color-lime-800);
  background-color: oklch(45.3% 0.124 130.933);
  border-color: #3c6300;
  outline-color: rgb(60 99 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime800 = Color(red: 0.235, green: 0.388, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const lime800 = Color(0xFF3C6300);
Android XML
<!-- res/values/colors.xml -->
<color name="lime_800">#3C6300</color>

Frequently asked questions

What is the hex code for Tailwind lime-800?
In Tailwind CSS v4, lime-800 is oklch(45.3% 0.124 130.933), which converts to #3C6300 (rgb(60, 99, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #3F6212.
What is the difference between lime-800 in Tailwind v3 and v4?
v3 used the hex #3F6212; v4 redefined the palette in OKLCH as oklch(45.3% 0.124 130.933). In v3, lime-800 was #3F6212. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use lime-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on lime-800?
White text on lime-800 has a contrast ratio of 7.05:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.97:1 and fails AA even for large text. In APCA terms that is Lc −89.1 for white and Lc 19.8 for black.
Which CSS named color is closest to lime-800?
The closest is darkgreen (#006400) at ΔE OK 4.0, followed by darkolivegreen and green.

Last reviewed by Arielton Oberek.