A vivid medium orange, black text passes AA
Tailwind yellow-600
Tailwind yellow-600 is oklch(68.1% 0.162 75.834) in Tailwind CSS 4.3.3, which is #d08700 as the nearest sRGB hex and rgb(208 135 0). Black text on it reaches 7.15:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-yellow-600), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(68.1% 0.162 75.834) |
| Hex | #d08700, the nearest color in sRGB |
| RGB | rgb(208 135 0) |
| HSL | hsl(39 100% 41%) |
| OKLCH of the hex | oklch(68.2% 0.146 71.5) |
| CSS variable | var(--color-yellow-600) |
| Nearest CSS name | peru #cd853f, 0.032 away in OKLab |
| White text | 2.94:1: AA fails, AAA fails, large text fails |
| Black text | 7.15:1: AA passes, AAA passes, large text passes |
About yellow-600
Tailwind yellow-600 is a vivid medium orange: OKLCH lightness 68.1%, chroma 0.162, hue 75.8 degrees. On Tailwind's yellow scale it sits between yellow-500 at 79.5% and yellow-700 at 55.4%. The name says yellow, the eye says orange: at 75.8 degrees, its hue lies nearer orange than yellow.
Its HSL lightness, 41%, says little about how light yellow-600 looks; OKLCH, made to match the eye, measures 68.1%, 27 points away. Its value lies outside sRGB, the colors a hex code can name: #d08700 is what CSS Color 4's gamut mapping makes of it, chroma 0.146 instead of 0.162, moving 0.1 points of lightness and 4.4 degrees of hue. A wide-gamut screen shows the stronger original.
Black text on yellow-600 measures 7.15:1, past the 7:1 of WCAG AAA, while white text manages only 2.94:1. Black text holds AA down to here on the yellow scale; at yellow-700 it falls to 4.26:1.
The closest CSS named color is peru (#cd853f), 0.032 away in OKLab: near, and still a visible step from it side by side.
Tints and shades
- #f8ebdc
- #f1d7ba
- #e9c497
- #e1b072
- #d99b4a
- #d08700
- #a36900
- #784c00
- #4f3100
- #2a1800
- #0a0400
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
- #d08700
- #142534
- #d6b161
- #684764
- #c9fffd
Recolor's generator, with yellow-600 locked as swatch 1 and the seed taken from its hex, drew a free palette, hues spread around the wheel: #142534, #d6b161, #684764, #c9fffd. Open it in Recolor.
Using yellow-600
Pair it with text-black, 7.15:1; yellow-600 as text on a black page measures the same ratio. In CSS it is var(--color-yellow-600).
<a class="bg-yellow-600 text-black" href="/start">Get started</a>
<p class="text-yellow-600">Text in yellow-600</p>Common questions
Does white text pass WCAG AA on Tailwind yellow-600?
No. White text measures 2.94:1 on yellow-600, under AA's 4.5:1; black text measures 7.15:1 and passes. The lightest yellow shade for white text is yellow-700.
Is Tailwind yellow-600 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-yellow-600: oklch(68.1% 0.162 75.834); #d08700 is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind yellow-600?
No. The nearest CSS named color is peru (#cd853f), 0.032 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org
- CSS Color Module Level 4: gamut mapping w3.org