A pale gray, black text passes AA
Tailwind gray-50
Tailwind gray-50 is oklch(98.5% 0.002 247.839) in Tailwind CSS 4.3.3, which is #f9fafb in hex and rgb(249 250 251). Black text on it reaches 20.10:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-gray-50), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(98.5% 0.002 247.839) |
| Hex | #f9fafb |
| RGB | rgb(249 250 251) |
| HSL | hsl(210 20% 98%) |
| CSS variable | var(--color-gray-50) |
| Nearest CSS name | snow #fffafa, 0.008 away in OKLab |
| White text | 1.05:1: AA fails, AAA fails, large text fails |
| Black text | 20.10:1: AA passes, AAA passes, large text passes |
About gray-50
Tailwind gray-50 is a pale gray: OKLCH lightness 98.5%, chroma 0.002, hue 247.8 degrees. It opens the gray scale as its lightest shade, 1.8 points of lightness above gray-100.
HSL and OKLCH agree on how light it is, 98% and 98.5%. Its value fits inside sRGB, so #f9fafb is the same color, not an approximation.
Black text on gray-50 measures 20.10:1, past the 7:1 of WCAG AAA, while white text manages only 1.05:1. Black text passes on every gray shade from gray-50 to gray-400, 4 shades darker than gray-50.
Its nearest CSS named color, snow (#fffafa), is 0.008 away in OKLab, too close to tell apart by eye.
Tints and shades
- #fefefe
- #fefdfd
- #fdfcfc
- #fcfbfc
- #fcfafb
- #f9fafb
- #c5c4c4
- #929191
- #616161
- #353535
- #0e0e0e
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
- #f9fafb
- #6b5a28
- #d4beee
- #271313
- #828aaf
Recolor's generator, with gray-50 locked as swatch 1 and the seed taken from its hex, drew a free palette, hues spread around the wheel: #6b5a28, #d4beee, #271313, #828aaf. Open it in Recolor.
Using gray-50
Pair it with text-black, 20.10:1; gray-50 as text on a black page measures the same ratio. In CSS it is var(--color-gray-50).
<a class="bg-gray-50 text-black" href="/start">Get started</a>
<p class="text-gray-50">Text in gray-50</p>Common questions
Does white text pass WCAG AA on Tailwind gray-50?
No. White text measures 1.05:1 on gray-50, under AA's 4.5:1; black text measures 20.10:1 and passes. The lightest gray shade for white text is gray-500.
Is Tailwind gray-50 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-gray-50: oklch(98.5% 0.002 247.839); #f9fafb is its conversion to sRGB.
Is there a CSS named color for Tailwind gray-50?
Yes, nearly: snow (#fffafa) is 0.008 away in OKLab, too close to tell apart by eye.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org