A vivid light green, black text passes AA
Tailwind green-400
Tailwind green-400 is oklch(79.2% 0.209 151.711) in Tailwind CSS 4.3.3, which is #05df72 in hex and rgb(5 223 114). Black text on it reaches 11.80:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-green-400), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(79.2% 0.209 151.711) |
| Hex | #05df72 |
| RGB | rgb(5 223 114) |
| HSL | hsl(150 96% 45%) |
| CSS variable | var(--color-green-400) |
| Nearest CSS name | limegreen #32cd32, 0.063 away in OKLab |
| White text | 1.78:1: AA fails, AAA fails, large text fails |
| Black text | 11.80:1: AA passes, AAA passes, large text passes |
About green-400
Tailwind green-400 is a vivid light green: OKLCH lightness 79.2%, chroma 0.209, hue 151.7 degrees. On Tailwind's green scale it sits between green-300 at 87.1% and green-500 at 72.3%.
Its HSL lightness, 45%, says little about how light green-400 looks; OKLCH, made to match the eye, measures 79.2%, 34 points away. Its value fits inside sRGB, so #05df72 is the same color, not an approximation.
Black text on green-400 measures 11.80:1, past the 7:1 of WCAG AAA, while white text manages only 1.78:1. On the green scale black text works down to green-600, which leaves green-400 2 shades of margin.
No CSS keyword matches it; limegreen (#32cd32) is the nearest, 0.063 away in OKLab, a clear step off.
Tints and shades
- #e3fbe8
- #c7f6d1
- #a8f1ba
- #86eba3
- #5de58b
- #05df72
- #03af58
- #01813f
- #015628
- #002e12
- #000b03
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
- #05df72
- #00702b
- #ffd2fb
- #00a03e
- #003513
Recolor's generator, with green-400 locked as swatch 1 and the seed taken from its hex, drew a complementary palette, built on the hue opposite: #00702b, #ffd2fb, #00a03e, #003513. Open it in Recolor.
Using green-400
Pair it with text-black, 11.80:1; green-400 as text on a black page measures the same ratio. In CSS it is var(--color-green-400).
<a class="bg-green-400 text-black" href="/start">Get started</a>
<p class="text-green-400">Text in green-400</p>Common questions
Does white text pass WCAG AA on Tailwind green-400?
No. White text measures 1.78:1 on green-400, under AA's 4.5:1; black text measures 11.80:1 and passes. The lightest green shade for white text is green-700.
Is Tailwind green-400 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-green-400: oklch(79.2% 0.209 151.711); #05df72 is its conversion to sRGB.
Is there a CSS named color for Tailwind green-400?
No. The nearest CSS named color is limegreen (#32cd32), 0.063 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org