Skip to content

Tailwind CSS v4 default palette

Tailwind lime-600: #5EA500

In Tailwind CSS v4, lime-600 is defined as --color-lime-600: oklch(64.8% 0.2 131.684), which is #5EA500 in hex and rgb(94, 165, 0): a medium, vivid green. In Tailwind v3, lime-600 was #65A30D.

lime-600#5EA500

In OKLCH, lime-600 has a lightness of 64.8%, chroma 0.200 and hue 131.7°.

This OKLCH value lies outside sRGB. The hex #5EA500 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.4354 0.6406 0.0909).

In v3, lime-600 was #65A30D. The v4 value is ΔE OK 2.5 away; 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-600

Color codes for lime-600
Tailwind v4 token--color-lime-600
OKLCH (source value)oklch(64.8% 0.2 131.684)
HEX#5EA500
RGBrgb(94, 165, 0)
HSLhsl(86, 100%, 32%)
HWBhwb(86 0% 35%)
CMYK (naive, no ICC profile)cmyk(43%, 0%, 100%, 35%)
Decimal6,202,624
Display P3color(display-p3 0.4354 0.6406 0.0909)
Tailwind v3 hex#65A30D
Utility classesbg-lime-600, text-lime-600, border-lime-600

Tailwind lime scale

Contrast and accessibility

On lime-600, black text has a contrast ratio of 6.85:1 and passes AA for normal text; white text reaches 3.06: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-6006.85:1PassPassFailPass46.9
White text on lime-6003.06:1FailPassFailFail−62.5
Lime-600 text on white3.06:1FailPassFailFail57.1
Lime-600 text on black6.85:1PassPassFailPass−44.6

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #66aa0d
  2. 15%
    #76b326
  3. 25%
    #86bc40
  4. 35%
    #96c559
  5. 45%
    #a6ce73
  6. 55%
    #b7d78c
  7. 65%
    #c7e0a6
  8. 75%
    #d7e9bf
  9. 85%
    #e7f2d9
  10. 95%
    #f7fbf2

Shades (mixed with black)

  1. 5%
    #599d00
  2. 15%
    #508c00
  3. 25%
    #477c00
  4. 35%
    #3d6b00
  5. 45%
    #345b00
  6. 55%
    #2a4a00
  7. 65%
    #213a00
  8. 75%
    #182900
  9. 85%
    #0e1900
  10. 95%
    #050800

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lime-600's complementary color is #B662E5 (close to mediumorchid), its analogous colors are #A39000 and #00AC6D, and its triadic partners are #008FFF and #EE4A6E. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#b662e5
Analogous−30°, +30°#a39000#00ac6d
Triadic+120°, +240°#008fff#ee4a6e
Split-complementary+150°, +210°#7f77ff#db51b1

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-600 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
olivedrab#6b8e238.1
mediumseagreen#3cb3719.6
forestgreen#228b2210.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
green-600#00a63e6.4
green-500#00c95010.1
emerald-500#00bc7d11.3

Code snippets

Tailwind CSS
<div class="bg-lime-600 text-black">...</div>
<p class="text-lime-600 border-lime-600">...</p>
CSS
.element {
  color: var(--color-lime-600);
  background-color: oklch(64.8% 0.2 131.684);
  border-color: #5ea500;
  outline-color: rgb(94 165 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime600 = Color(red: 0.369, green: 0.647, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const lime600 = Color(0xFF5EA500);
Android XML
<!-- res/values/colors.xml -->
<color name="lime_600">#5EA500</color>

Frequently asked questions

What is the hex code for Tailwind lime-600?
In Tailwind CSS v4, lime-600 is oklch(64.8% 0.2 131.684), which converts to #5EA500 (rgb(94, 165, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #65A30D.
What is the difference between lime-600 in Tailwind v3 and v4?
v3 used the hex #65A30D; v4 redefined the palette in OKLCH as oklch(64.8% 0.2 131.684). In v3, lime-600 was #65A30D. The v4 value is ΔE OK 2.5 away; v4 is more saturated.
How do I use lime-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on lime-600?
White text on lime-600 has a contrast ratio of 3.06:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 6.85:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −62.5 for white and Lc 46.9 for black.
Which CSS named color is closest to lime-600?
The closest is olivedrab (#6B8E23) at ΔE OK 8.1, followed by mediumseagreen and forestgreen.

Last reviewed by Arielton Oberek.