Tailwind CSS v4 default palette
Tailwind lime-50: #F7FEE7
In Tailwind CSS v4, lime-50 is defined as --color-lime-50: oklch(98.6% 0.031 120.757), which is #F7FEE7 in hex and rgb(247, 254, 231): an off-white with a yellow-green tint. In Tailwind v3, lime-50 was #F7FEE7.
In OKLCH, lime-50 has a lightness of 98.6%, chroma 0.031 and hue 120.8°.
The value fits inside sRGB, so the hex #F7FEE7 represents it without loss on any screen.
In v3, lime-50 was #F7FEE7. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
Tailwind lime is a yellow-green between yellow and green, bright and acidic in its mid shades.
Color codes for lime-50
| Tailwind v4 token | --color-lime-50 |
|---|---|
| OKLCH (source value) | oklch(98.6% 0.031 120.757) |
| HEX | #F7FEE7 |
| RGB | rgb(247, 254, 231) |
| HSL | hsl(78, 92%, 95%) |
| HWB | hwb(78 91% 0%) |
| CMYK (naive, no ICC profile) | cmyk(3%, 0%, 9%, 0%) |
| Decimal | 16,252,647 |
| Tailwind v3 hex | #F7FEE7 |
| Utility classes | bg-lime-50, text-lime-50, border-lime-50 |
Tailwind lime scale
Contrast and accessibility
On lime-50, black text has a contrast ratio of 20.28:1 and passes AAA at any text size; white text reaches 1.03: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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on lime-50 | 20.28:1 | Pass | Pass | Pass | Pass | 103.6 |
| White text on lime-50 | 1.03:1 | Fail | Fail | Fail | Fail | 0.0 |
| Lime-50 text on white | 1.03:1 | Fail | Fail | Fail | Fail | 0.0 |
| Lime-50 text on black | 20.28:1 | Pass | Pass | Pass | Pass | −105.2 |
Tints and shades
Each step mixes var(--color-lime-50) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-lime-50), white 25%) in CSS.
Tints (mixed with white)
- 5%
#f7fee8 - 15%
#f8feeb - 25%
#f9feed - 35%
#fafeef - 45%
#fbfef2 - 55%
#fbfff4 - 65%
#fcfff7 - 75%
#fdfff9 - 85%
#fefffb - 95%
#fffffe
Shades (mixed with black)
- 5%
#ebf1db - 15%
#d2d8c4 - 25%
#b9bfad - 35%
#a1a596 - 45%
#888c7f - 55%
#6f7268 - 65%
#565951 - 75%
#3e403a - 85%
#252623 - 95%
#0c0d0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, lime-50's complementary color is #FEF6FF (close to ghostwhite), its analogous colors are #FFFAE3 and #ECFFF0, and its triadic partners are #E9FEFF and #FFF2F9. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #fef6ff |
| Analogous | −30°, +30° | #fffae3#ecfff0 |
| Triadic | +120°, +240° | #e9feff#fff2f9 |
| Split-complementary | +150°, +210° | #f3faff#fff3ff |
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-50 sits on the boundary: its hue of 78° 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.
Code snippets
<div class="bg-lime-50 text-black">...</div>
<p class="text-lime-50 border-lime-50">...</p>.element {
color: var(--color-lime-50);
background-color: oklch(98.6% 0.031 120.757);
border-color: #f7fee7;
outline-color: rgb(247 254 231);
}import SwiftUI
extension Color {
static let lime50 = Color(red: 0.969, green: 0.996, blue: 0.906)
}import androidx.compose.ui.graphics.Color
val Lime50 = Color(0xFFF7FEE7)import 'package:flutter/material.dart';
const lime50 = Color(0xFFF7FEE7);<!-- res/values/colors.xml -->
<color name="lime_50">#F7FEE7</color>Frequently asked questions
- What is the hex code for Tailwind lime-50?
- In Tailwind CSS v4, lime-50 is oklch(98.6% 0.031 120.757), which converts to #F7FEE7 (rgb(247, 254, 231)) in sRGB. In Tailwind v3 the same name was #F7FEE7.
- What is the difference between lime-50 in Tailwind v3 and v4?
- v3 used the hex #F7FEE7; v4 redefined the palette in OKLCH as oklch(98.6% 0.031 120.757). In v3, lime-50 was #F7FEE7. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use lime-50 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on lime-50?
- White text on lime-50 has a contrast ratio of 1.03:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.28:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 103.6 for black.
- Which CSS named color is closest to lime-50?
- The closest is honeydew (#F0FFF0) at ΔE OK 1.3, followed by lightyellow and ivory.
Last reviewed by Arielton Oberek.