A vivid dark green, white text passes AA
Tailwind emerald-900
Tailwind emerald-900 is oklch(37.8% 0.077 168.94) in Tailwind CSS 4.3.3, which is #004f3b as the nearest sRGB hex and rgb(0 79 59). White text on it reaches 9.63:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-emerald-900), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(37.8% 0.077 168.94) |
| Hex | #004f3b, the nearest color in sRGB |
| RGB | rgb(0 79 59) |
| HSL | hsl(165 100% 15%) |
| OKLCH of the hex | oklch(38.0% 0.076 168.7) |
| CSS variable | var(--color-emerald-900) |
| Nearest CSS name | darkslategray #2f4f4f, 0.051 away in OKLab |
| White text | 9.63:1: AA passes, AAA passes, large text passes |
| Black text | 2.18:1: AA fails, AAA fails, large text fails |
About emerald-900
Tailwind emerald-900 is a vivid dark green: OKLCH lightness 37.8%, chroma 0.077, hue 168.9 degrees. On Tailwind's emerald scale it sits between emerald-800 at 43.2% and emerald-950 at 26.2%.
Its HSL lightness, 15%, says little about how light emerald-900 looks; OKLCH, made to match the eye, measures 37.8%, 22 points away. Its value lies outside sRGB, the colors a hex code can name: #004f3b is what CSS Color 4's gamut mapping makes of it, chroma 0.076 instead of 0.077, moving 0.2 points of lightness and 0.2 degrees of hue. A wide-gamut screen shows the stronger original.
White text on emerald-900 measures 9.63:1, past the 7:1 of WCAG AAA, while black text manages only 2.18:1. On the emerald scale white text works from emerald-700 to emerald-950; emerald-900 has 2 shades of margin.
No CSS keyword matches it; darkslategray (#2f4f4f) is the nearest, 0.051 away in OKLab, a clear step off.
Tints and shades
- #d5e0db
- #adc1b9
- #85a397
- #5e8677
- #376a58
- #004f3b
- #003c2c
- #002a1e
- #001911
- #000a05
- #000101
From light to dark: 5 toward white and 5 toward black, mixed in OKLCH a sixth of the way at a time with the hue kept. A step that would repeat its neighbor is left out.
A palette around it
- #004f3b
- #71e2b2
- #12211b
- #00a67e
- #baffe3
Recolor's generator, with emerald-900 locked as swatch 1 and the seed taken from its hex, drew a monochromatic palette, one hue in five lightnesses: #71e2b2, #12211b, #00a67e, #baffe3. Open it in Recolor.
Using emerald-900
Pair it with text-white, 9.63:1; emerald-900 as text on a white page measures the same ratio. In CSS it is var(--color-emerald-900).
<a class="bg-emerald-900 text-white" href="/start">Get started</a>
<p class="text-emerald-900">Text in emerald-900</p>Common questions
Does white text pass WCAG AA on Tailwind emerald-900?
Yes. White text measures 9.63:1 on emerald-900, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind emerald-900 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-emerald-900: oklch(37.8% 0.077 168.94); #004f3b is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind emerald-900?
No. The nearest CSS named color is darkslategray (#2f4f4f), 0.051 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org
- CSS Color Module Level 4: gamut mapping w3.org