A vivid medium blue, black text passes AA
Tailwind sky-500
The hex code of Tailwind sky-500 is #00a6f4 (rgb(0 166 244)), from its Tailwind CSS 4.3.3 value oklch(68.5% 0.169 237.323). Black text on it reaches 7.76:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-sky-500), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(68.5% 0.169 237.323) |
| Hex | #00a6f4, the nearest color in sRGB |
| RGB | rgb(0 166 244) |
| HSL | hsl(199 100% 48%) |
| OKLCH of the hex | oklch(69.2% 0.160 240.4) |
| CSS variable | var(--color-sky-500) |
| Nearest CSS name | cornflowerblue #6495ed, 0.060 away in OKLab |
| White text | 2.71:1: AA fails, AAA fails, large text fails |
| Black text | 7.76:1: AA passes, AAA passes, large text passes |
About sky-500
Read as numbers, sky-500 is lightness 68.5%, chroma 0.169 and hue 237.3 degrees; read by eye, it is a vivid medium blue. Its neighbors on the sky scale are sky-400, 6.1 points lighter, and sky-600, 9.7 points darker.
HSL puts its lightness at 48% and OKLCH at 68.5%, 21 points apart: HSL's lightness does not follow what the eye sees, OKLCH's is built to. A hex code cannot hold sky-500 exactly: the value is outside sRGB, and #00a6f4 is the CSS Color 4 gamut mapping of it, chroma lowered by 0.009, 0.7 points of lightness and 3.1 degrees of hue away from the value.
Black on sky-500 reads at 7.76:1, enough for AAA body text; white reaches 2.71:1 and should stay off it. Black text passes on every sky shade from sky-50 to sky-600, 1 shade darker than sky-500.
The nearest CSS named color, cornflowerblue (#6495ed), is 0.060 away in OKLab: related, but plainly a different color.
Tints and shades
- #dff1ff
- #bee3fe
- #9dd4fc
- #7ac5fa
- #51b6f7
- #00a6f4
- #0081bf
- #005e8d
- #003e5e
- #002033
- #00060d
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
- #00a6f4
- #0d2436
- #88d0fd
- #005e98
- #ffe6ce
Around sky-500 as swatch 1, Recolor's generator made a complementary palette, built on the hue opposite: #0d2436, #88d0fd, #005e98, #ffe6ce, drawn from a seed fixed by its hex. Open it in Recolor.
Using sky-500
Pair it with text-black, 7.76:1; sky-500 as text on a black page measures the same ratio. In CSS it is var(--color-sky-500).
<a class="bg-sky-500 text-black" href="/start">Get started</a>
<p class="text-sky-500">Text in sky-500</p>Common questions
Does white text pass WCAG AA on Tailwind sky-500?
No. White text measures 2.71:1 on sky-500, under AA's 4.5:1; black text measures 7.76:1 and passes. The lightest sky shade for white text is sky-700.
Is Tailwind sky-500 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-sky-500: oklch(68.5% 0.169 237.323); #00a6f4 is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind sky-500?
No. The nearest CSS named color is cornflowerblue (#6495ed), 0.060 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