A vivid dark green, white text passes AA
Tailwind green-900
The hex code of Tailwind green-900 is #0d542b (rgb(13 84 43)), from its Tailwind CSS 4.3.3 value oklch(39.3% 0.095 152.535). White text on it reaches 9.05:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-green-900), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(39.3% 0.095 152.535) |
| Hex | #0d542b |
| RGB | rgb(13 84 43) |
| HSL | hsl(145 73% 19%) |
| CSS variable | var(--color-green-900) |
| Nearest CSS name | darkgreen #006400, 0.071 away in OKLab |
| White text | 9.05:1: AA passes, AAA passes, large text passes |
| Black text | 2.32:1: AA fails, AAA fails, large text fails |
About green-900
Read as numbers, green-900 is lightness 39.3%, chroma 0.095 and hue 152.5 degrees; read by eye, it is a vivid dark green. Its neighbors on the green scale are green-800, 5.5 points lighter, and green-950, 12.7 points darker.
HSL puts its lightness at 19% and OKLCH at 39.3%, 20 points apart: HSL's lightness does not follow what the eye sees, OKLCH's is built to. No gamut mapping is needed here: oklch(39.3% 0.095 152.535) sits inside sRGB and #0d542b matches it.
White on green-900 reads at 9.05:1, enough for AAA body text; black reaches 2.32:1 and should stay off it. White text passes on every green shade from green-700 down, so green-900 is 2 shades past the line.
The nearest CSS named color, darkgreen (#006400), is 0.071 away in OKLab: related, but plainly a different color.
Tints and shades
- #d6e1d9
- #afc3b3
- #88a68f
- #628a6c
- #3c6f4b
- #0d542b
- #08401f
- #042d14
- #021b0a
- #000b03
- #000100
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
- #0d542b
- #b1beff
- #211713
- #6c7cce
- #c3f1d2
Around green-900 as swatch 1, Recolor's generator made a triadic palette, three hues a third of the wheel apart: #b1beff, #211713, #6c7cce, #c3f1d2, drawn from a seed fixed by its hex. Open it in Recolor.
Using green-900
Pair it with text-white, 9.05:1; green-900 as text on a white page measures the same ratio. In CSS it is var(--color-green-900).
<a class="bg-green-900 text-white" href="/start">Get started</a>
<p class="text-green-900">Text in green-900</p>Common questions
Does white text pass WCAG AA on Tailwind green-900?
Yes. White text measures 9.05:1 on green-900, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind green-900 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-green-900: oklch(39.3% 0.095 152.535); #0d542b is its conversion to sRGB.
Is there a CSS named color for Tailwind green-900?
No. The nearest CSS named color is darkgreen (#006400), 0.071 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org