A vivid dark green, white text passes AA
Tailwind green-800
In Tailwind CSS 4.3.3, green-800 is defined as oklch(44.8% 0.119 151.328); in hex that is #016630, or rgb(1 102 48). White text on it reaches 7.13:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.
Last updated
--color-green-800), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(44.8% 0.119 151.328) |
| Hex | #016630 |
| RGB | rgb(1 102 48) |
| HSL | hsl(148 98% 20%) |
| CSS variable | var(--color-green-800) |
| Nearest CSS name | darkgreen #006400, 0.038 away in OKLab |
| White text | 7.13:1: AA passes, AAA passes, large text passes |
| Black text | 2.94:1: AA fails, AAA fails, large text fails |
About green-800
In OKLCH, green-800 has a lightness of 44.8%, a chroma of 0.119 and a hue of 151.3 degrees, which makes it a vivid dark green. The step up to green-700 is 7.9 points of lightness, and the step down to green-900 5.5 points.
Its HSL lightness, 20%, says little about how light green-800 looks; OKLCH, made to match the eye, measures 44.8%, 25 points away. The value lies inside sRGB, the gamut of a hex code, so green-800 converts to #016630 without losing chroma.
For text, green-800 wants white: 7.13:1 clears even AAA's 7:1, and black at 2.94:1 fails AA. On the green scale white text works from green-700 to green-950; green-800 has 1 shade of margin.
Among the CSS keywords, darkgreen (#006400) comes closest at 0.038 in OKLab, close enough to stand in for it in a sketch.
Tints and shades
- #d8e5da
- #b1cab6
- #8bb193
- #659771
- #3d7f50
- #016630
- #014e23
- #003817
- #00230c
- #000f04
- #000200
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
- #016630
- #95be9a
- #162b1d
- #649167
- #bffdc5
Locked as the first of five swatches, green-800 gets #95be9a, #162b1d, #649167, #bffdc5 from Recolor's generator, a monochromatic palette, one hue in five lightnesses. The seed is its hex, so the palette stays the same. Open it in Recolor.
Using green-800
Pair it with text-white, 7.13:1; green-800 as text on a white page measures the same ratio. In CSS it is var(--color-green-800).
<a class="bg-green-800 text-white" href="/start">Get started</a>
<p class="text-green-800">Text in green-800</p>Common questions
Does white text pass WCAG AA on Tailwind green-800?
Yes. White text measures 7.13:1 on green-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind green-800 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-green-800: oklch(44.8% 0.119 151.328); #016630 is its conversion to sRGB.
Is there a CSS named color for Tailwind green-800?
No. The nearest CSS named color is darkgreen (#006400), 0.038 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org