A greenish white, black text passes AA
Tailwind green-50
The hex code of Tailwind green-50 is #f0fdf4 (rgb(240 253 244)), from its Tailwind CSS 4.3.3 value oklch(98.2% 0.018 155.826). Black text on it reaches 20.06:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-green-50), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(98.2% 0.018 155.826) |
| Hex | #f0fdf4 |
| RGB | rgb(240 253 244) |
| HSL | hsl(138 76% 97%) |
| CSS variable | var(--color-green-50) |
| Nearest CSS name | honeydew #f0fff0, 0.009 away in OKLab |
| White text | 1.05:1: AA fails, AAA fails, large text fails |
| Black text | 20.06:1: AA passes, AAA passes, large text passes |
About green-50
Read as numbers, green-50 is lightness 98.2%, chroma 0.018 and hue 155.8 degrees; read by eye, it is a greenish white. As the first of the eleven green shades it sits closest to white, 1.8 points below it and 2.0 points above green-100.
Here HSL's lightness, 97%, lands near OKLCH's 98.2%, which is not true of every color. No gamut mapping is needed here: oklch(98.2% 0.018 155.826) sits inside sRGB and #f0fdf4 matches it.
Black on green-50 reads at 20.06:1, enough for AAA body text; white reaches 1.05:1 and should stay off it. On the green scale black text works down to green-600, which leaves green-50 6 shades of margin.
The CSS keyword honeydew (#f0fff0) is almost the same color: 0.009 apart in OKLab, under the step most people notice.
Tints and shades
- #fffdfe
- #fffbfd
- #fffafc
- #fff8fb
- #f0fdf4
- #ccc0c3
- #978e90
- #655f60
- #373334
- #0f0d0e
From light to dark: 4 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
- #f0fdf4
- #5d92dc
- #2c1f09
- #9ec8ff
- #805700
Around green-50 as swatch 1, Recolor's generator made a complementary palette, built on the hue opposite: #5d92dc, #2c1f09, #9ec8ff, #805700, drawn from a seed fixed by its hex. Open it in Recolor.
Using green-50
Pair it with text-black, 20.06:1; green-50 as text on a black page measures the same ratio. In CSS it is var(--color-green-50).
<a class="bg-green-50 text-black" href="/start">Get started</a>
<p class="text-green-50">Text in green-50</p>Common questions
Does white text pass WCAG AA on Tailwind green-50?
No. White text measures 1.05:1 on green-50, under AA's 4.5:1; black text measures 20.06:1 and passes. The lightest green shade for white text is green-700.
Is Tailwind green-50 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-green-50: oklch(98.2% 0.018 155.826); #f0fdf4 is its conversion to sRGB.
Is there a CSS named color for Tailwind green-50?
Yes, nearly: honeydew (#f0fff0) is 0.009 away in OKLab, too close to tell apart by eye.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org