Eleven shades, from olive-50 to olive-950
Tailwind olive colors
Tailwind CSS 4.3.3 defines eleven olive shades in OKLCH, from olive-50 (#fbfbf9) to olive-950 (#0c0c09). On them white text passes WCAG AA from olive-600 to olive-950, and black text from olive-50 to olive-500. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#fbfbf9
- 100#f4f4f0
- 200#e8e8e3
- 300#d8d8d0
- 400#abab9c
- 500#7c7c67
- 600#5b5b4b
- 700#474739
- 800#2b2b22
- 900#1d1d16
- 950#0c0c09
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| olive-50 | oklch(98.8% 0.003 106.5) | #fbfbf9 | 1.04:1 fails | 20.27:1 passes |
| olive-100 | oklch(96.6% 0.005 106.5) | #f4f4f0 | 1.10:1 fails | 19.05:1 passes |
| olive-200 | oklch(93% 0.007 106.5) | #e8e8e3 | 1.23:1 fails | 17.08:1 passes |
| olive-300 | oklch(88% 0.011 106.6) | #d8d8d0 | 1.43:1 fails | 14.65:1 passes |
| olive-400 | oklch(73.7% 0.021 106.9) | #abab9c | 2.32:1 fails | 9.04:1 passes |
| olive-500 | oklch(58% 0.031 107.3) | #7c7c67 | 4.25:1 fails | 4.94:1 passes |
| olive-600 | oklch(46.6% 0.025 107.3) | #5b5b4b | 6.90:1 passes | 3.04:1 fails |
| olive-700 | oklch(39.4% 0.023 107.4) | #474739 | 9.42:1 passes | 2.23:1 fails |
| olive-800 | oklch(28.6% 0.016 107.4) | #2b2b22 | 14.27:1 passes | 1.47:1 fails |
| olive-900 | oklch(22.8% 0.013 107.4) | #1d1d16 | 16.94:1 passes | 1.24:1 fails |
| olive-950 | oklch(15.3% 0.006 107.1) | #0c0c09 | 19.59:1 passes | 1.07:1 fails |
Text on olive, and olive as text
For olive text the same lines hold in reverse: on white, use olive-600 or darker; on black, olive-500 or lighter. Contrast does not care which color sits behind.
Tailwind ships nine grays, and olive is the one with a yellow hint: its chroma never passes 0.031.
None of the eleven leaves sRGB, so each hex matches its OKLCH value.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org