Tailwind CSS v4 default palette
Tailwind lime-700: #497D00
In Tailwind CSS v4, lime-700 is defined as --color-lime-700: oklch(53.2% 0.157 131.589), which is #497D00 in hex and rgb(73, 125, 0): a medium-dark, vivid yellow-green. In Tailwind v3, lime-700 was #4D7C0F.
In OKLCH, lime-700 has a lightness of 53.2%, chroma 0.157 and hue 131.6°.
This OKLCH value lies outside sRGB. The hex #497D00 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.3334 0.4863 0.0944).
In v3, lime-700 was #4D7C0F. The v4 value is ΔE OK 1.6 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-700
| Tailwind v4 token | --color-lime-700 |
|---|---|
| OKLCH (source value) | oklch(53.2% 0.157 131.589) |
| HEX | #497D00 |
| RGB | rgb(73, 125, 0) |
| HSL | hsl(85, 100%, 25%) |
| HWB | hwb(85 0% 51%) |
| CMYK (naive, no ICC profile) | cmyk(42%, 0%, 100%, 51%) |
| Decimal | 4,816,128 |
| Display P3 | color(display-p3 0.3334 0.4863 0.0944) |
| Tailwind v3 hex | #4D7C0F |
| Utility classes | bg-lime-700, text-lime-700, border-lime-700 |
Tailwind lime scale
Contrast and accessibility
On lime-700, white text has a contrast ratio of 4.98:1 and passes AA for normal text; black text reaches 4.21: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-700 | 4.21:1 | Fail | Pass | Fail | Fail | 29.9 |
| White text on lime-700 | 4.98:1 | Pass | Pass | Fail | Pass | −79.6 |
| Lime-700 text on white | 4.98:1 | Pass | Pass | Fail | Pass | 74.2 |
| Lime-700 text on black | 4.21:1 | Fail | Pass | Fail | Fail | −27.5 |
Tints and shades
Each step mixes var(--color-lime-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-lime-700), white 25%) in CSS.
Tints (mixed with white)
- 5%
#52840d - 15%
#649126 - 25%
#779e40 - 35%
#89ab59 - 45%
#9bb873 - 55%
#adc58c - 65%
#bfd2a6 - 75%
#d2dfbf - 85%
#e4ecd9 - 95%
#f6f9f2
Shades (mixed with black)
- 5%
#457700 - 15%
#3e6a00 - 25%
#375e00 - 35%
#2f5100 - 45%
#284500 - 55%
#213800 - 65%
#1a2c00 - 75%
#121f00 - 85%
#0b1300 - 95%
#040600
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, lime-700's complementary color is #8A4CAD (close to darkorchid), its analogous colors are #7D6D00 and #008451, and its triadic partners are #016DC3 and #B43B54. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #8a4cad |
| Analogous | −30°, +30° | #7d6d00#008451 |
| Triadic | +120°, +240° | #016dc3#b43b54 |
| Split-complementary | +150°, +210° | #605cc3#a63f86 |
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-700 sits on the boundary: its hue of 85° 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
| Color | HEX | ΔE OK |
|---|---|---|
| green | #008000 | 3.9 |
| forestgreen | #228b22 | 4.3 |
| olivedrab | #6b8e23 | 7.2 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| green-700 | #008236 | 5.0 |
| lime-800 | #3c6300 | 8.6 |
| emerald-700 | #007a55 | 9.2 |
Code snippets
<div class="bg-lime-700 text-white">...</div>
<p class="text-lime-700 border-lime-700">...</p>.element {
color: var(--color-lime-700);
background-color: oklch(53.2% 0.157 131.589);
border-color: #497d00;
outline-color: rgb(73 125 0);
}import SwiftUI
extension Color {
static let lime700 = Color(red: 0.286, green: 0.490, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Lime700 = Color(0xFF497D00)import 'package:flutter/material.dart';
const lime700 = Color(0xFF497D00);<!-- res/values/colors.xml -->
<color name="lime_700">#497D00</color>Frequently asked questions
- What is the hex code for Tailwind lime-700?
- In Tailwind CSS v4, lime-700 is oklch(53.2% 0.157 131.589), which converts to #497D00 (rgb(73, 125, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #4D7C0F.
- What is the difference between lime-700 in Tailwind v3 and v4?
- v3 used the hex #4D7C0F; v4 redefined the palette in OKLCH as oklch(53.2% 0.157 131.589). In v3, lime-700 was #4D7C0F. The v4 value is ΔE OK 1.6 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use lime-700 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on lime-700?
- White text on lime-700 has a contrast ratio of 4.98:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.21:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −79.6 for white and Lc 29.9 for black.
- Which CSS named color is closest to lime-700?
- The closest is green (#008000) at ΔE OK 3.9, followed by forestgreen and olivedrab.
Last reviewed by Arielton Oberek.