A light green, black text passes AA
Tailwind green-300
The hex code of Tailwind green-300 is #7bf1a8 (rgb(123 241 168)), from its Tailwind CSS 4.3.3 value oklch(87.1% 0.15 154.449). Black text on it reaches 14.99:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-green-300), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(87.1% 0.15 154.449) |
| Hex | #7bf1a8 |
| RGB | rgb(123 241 168) |
| HSL | hsl(143 81% 71%) |
| CSS variable | var(--color-green-300) |
| Nearest CSS name | lightgreen #90ee90, 0.029 away in OKLab |
| White text | 1.40:1: AA fails, AAA fails, large text fails |
| Black text | 14.99:1: AA passes, AAA passes, large text passes |
About green-300
Read as numbers, green-300 is lightness 87.1%, chroma 0.150 and hue 154.4 degrees; read by eye, it is a light green. Its neighbors on the green scale are green-200, 5.4 points lighter, and green-400, 7.9 points darker.
HSL puts its lightness at 71% and OKLCH at 87.1%, 16 points apart: HSL's lightness does not follow what the eye sees, OKLCH's is built to. No gamut mapping is needed here: oklch(87.1% 0.15 154.449) sits inside sRGB and #7bf1a8 matches it.
Black on green-300 reads at 14.99:1, enough for AAA body text; white reaches 1.40:1 and should stay off it. Black text passes on every green shade from green-50 to green-600, 3 shades darker than green-300.
Of the named colors, lightgreen (#90ee90) is the nearest, 0.029 away in OKLab; next to each other the two still differ.
Tints and shades
- #ecfdf1
- #d8fbe2
- #c3f9d4
- #adf7c5
- #96f4b7
- #7bf1a8
- #5fbd83
- #458c60
- #2c5d3f
- #153320
- #030d06
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
- #7bf1a8
- #593975
- #ffa6c8
- #14241a
- #00a03a
Around green-300 as swatch 1, Recolor's generator made a split-complementary palette, built on the two hues beside its opposite: #593975, #ffa6c8, #14241a, #00a03a, drawn from a seed fixed by its hex. Open it in Recolor.
Using green-300
Pair it with text-black, 14.99:1; green-300 as text on a black page measures the same ratio. In CSS it is var(--color-green-300).
<a class="bg-green-300 text-black" href="/start">Get started</a>
<p class="text-green-300">Text in green-300</p>Common questions
Does white text pass WCAG AA on Tailwind green-300?
No. White text measures 1.40:1 on green-300, under AA's 4.5:1; black text measures 14.99:1 and passes. The lightest green shade for white text is green-700.
Is Tailwind green-300 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-green-300: oklch(87.1% 0.15 154.449); #7bf1a8 is its conversion to sRGB.
Is there a CSS named color for Tailwind green-300?
No. The nearest CSS named color is lightgreen (#90ee90), 0.029 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org