Skip to content

Tailwind CSS v4 default palette

Tailwind lime-500: #7CCF00

In Tailwind CSS v4, lime-500 is defined as --color-lime-500: oklch(76.8% 0.233 130.85), which is #7CCF00 in hex and rgb(124, 207, 0): a light, vivid yellow-green. In Tailwind v3, lime-500 was #84CC16.

lime-500#7CCF00

In OKLCH, lime-500 has a lightness of 76.8%, chroma 0.233 and hue 130.8°.

This OKLCH value lies outside sRGB. The hex #7CCF00 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.5627 0.8018 0.1312).

In v3, lime-500 was #84CC16. The v4 value is ΔE OK 2.9 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-500

Color codes for lime-500
Tailwind v4 token--color-lime-500
OKLCH (source value)oklch(76.8% 0.233 130.85)
HEX#7CCF00
RGBrgb(124, 207, 0)
HSLhsl(84, 100%, 41%)
HWBhwb(84 0% 19%)
CMYK (naive, no ICC profile)cmyk(40%, 0%, 100%, 19%)
Decimal8,179,456
Display P3color(display-p3 0.5627 0.8018 0.1312)
Tailwind v3 hex#84CC16
Utility classesbg-lime-500, text-lime-500, border-lime-500

Tailwind lime scale

Contrast and accessibility

On lime-500, black text has a contrast ratio of 10.78:1 and passes AAA at any text size; white text reaches 1.94: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-50010.78:1PassPassPassPass66.8
White text on lime-5001.94:1FailFailFailFail−41.4
Lime-500 text on white1.94:1FailFailFailFail37.1
Lime-500 text on black10.78:1PassPassPassPass−65.4

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #83d10d
  2. 15%
    #90d626
  3. 25%
    #9ddb40
  4. 35%
    #aae059
  5. 45%
    #b7e573
  6. 55%
    #c4e98c
  7. 65%
    #d1eea6
  8. 75%
    #def3bf
  9. 85%
    #ebf8d9
  10. 95%
    #f8fdf2

Shades (mixed with black)

  1. 5%
    #76c500
  2. 15%
    #69b000
  3. 25%
    #5d9b00
  4. 35%
    #518700
  5. 45%
    #447200
  6. 55%
    #385d00
  7. 65%
    #2b4800
  8. 75%
    #1f3400
  9. 85%
    #131f00
  10. 95%
    #060a00

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lime-500's complementary color is #DA8BFF (close to violet), its analogous colors are #CDB500 and #00D889, and its triadic partners are #67B9FF and #FF829A. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#da8bff
Analogous−30°, +30°#cdb500#00d889
Triadic+120°, +240°#67b9ff#ff829a
Split-complementary+150°, +210°#a4a7ff#ff71dc

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-500 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
yellowgreen#9acd325.4
limegreen#32cd325.5
lawngreen#7cfc0012.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-400#9ae6007.4
green-400#05df728.7
green-500#00c9508.7

Code snippets

Tailwind CSS
<div class="bg-lime-500 text-black">...</div>
<p class="text-lime-500 border-lime-500">...</p>
CSS
.element {
  color: var(--color-lime-500);
  background-color: oklch(76.8% 0.233 130.85);
  border-color: #7ccf00;
  outline-color: rgb(124 207 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime500 = Color(red: 0.486, green: 0.812, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const lime500 = Color(0xFF7CCF00);
Android XML
<!-- res/values/colors.xml -->
<color name="lime_500">#7CCF00</color>

Frequently asked questions

What is the hex code for Tailwind lime-500?
In Tailwind CSS v4, lime-500 is oklch(76.8% 0.233 130.85), which converts to #7CCF00 (rgb(124, 207, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #84CC16.
What is the difference between lime-500 in Tailwind v3 and v4?
v3 used the hex #84CC16; v4 redefined the palette in OKLCH as oklch(76.8% 0.233 130.85). In v3, lime-500 was #84CC16. The v4 value is ΔE OK 2.9 away; v4 is more saturated.
How do I use lime-500 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on lime-500?
White text on lime-500 has a contrast ratio of 1.94:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.78:1 and passes both AA and AAA. In APCA terms that is Lc −41.4 for white and Lc 66.8 for black.
Which CSS named color is closest to lime-500?
The closest is yellowgreen (#9ACD32) at ΔE OK 5.4, followed by limegreen and lawngreen.

Last reviewed by Arielton Oberek.