Eleven shades, from yellow-50 to yellow-950
Tailwind yellow colors
Tailwind CSS 4.3.3 defines eleven yellow shades in OKLCH, from yellow-50 (#fefce8) to yellow-950 (#432004). On them white text passes WCAG AA from yellow-700 to yellow-950, and black text from yellow-50 to yellow-600. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#fefce8
- 100#fef9c2
- 200#fff085
- 300#ffdf20
- 400#fcc800
- 500#efb100
- 600#d08700
- 700#a65f00
- 800#894b00
- 900#733e0a
- 950#432004
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| yellow-50 | oklch(98.7% 0.026 102.212) | #fefce8 | 1.03:1 fails | 20.30:1 passes |
| yellow-100 | oklch(97.3% 0.071 103.193) | #fef9c2 | 1.07:1 fails | 19.54:1 passes |
| yellow-200 | oklch(94.5% 0.129 101.54) | #fff085 | 1.16:1 fails | 18.05:1 passes |
| yellow-300 | oklch(90.5% 0.182 98.111) | #ffdf20 | 1.33:1 fails | 15.83:1 passes |
| yellow-400 | oklch(85.2% 0.199 91.936) | #fcc800 | 1.57:1 fails | 13.40:1 passes |
| yellow-500 | oklch(79.5% 0.184 86.047) | #efb100 | 1.92:1 fails | 10.96:1 passes |
| yellow-600 | oklch(68.1% 0.162 75.834) | #d08700 | 2.94:1 fails | 7.15:1 passes |
| yellow-700 | oklch(55.4% 0.135 66.442) | #a65f00 | 4.93:1 passes | 4.26:1 fails |
| yellow-800 | oklch(47.6% 0.114 61.907) | #894b00 | 6.84:1 passes | 3.07:1 fails |
| yellow-900 | oklch(42.1% 0.095 57.708) | #733e0a | 8.67:1 passes | 2.42:1 fails |
| yellow-950 | oklch(28.6% 0.066 53.813) | #432004 | 14.51:1 passes | 1.45:1 fails |
Text on yellow, and yellow as text
For yellow text the same lines hold in reverse: on white, use yellow-700 or darker; on black, yellow-600 or lighter. Contrast does not care which color sits behind.
The most colorful shade is yellow-400, chroma 0.199; the hue moves 49.4 degrees between yellow-50 and yellow-950.
Of the eleven values, 6 reach beyond sRGB; for those the hex is a gamut-mapped stand-in with less chroma.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org