A vivid medium pink, black text passes AA
Tailwind pink-400
In Tailwind CSS 4.3.3, pink-400 is defined as oklch(71.8% 0.202 349.761); in hex that is #fb64b6, or rgb(251 100 182). Black text on it reaches 7.60:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.
Last updated
--color-pink-400), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(71.8% 0.202 349.761) |
| Hex | #fb64b6 |
| RGB | rgb(251 100 182) |
| HSL | hsl(327 95% 69%) |
| CSS variable | var(--color-pink-400) |
| Nearest CSS name | hotpink #ff69b4, 0.014 away in OKLab |
| White text | 2.76:1: AA fails, AAA fails, large text fails |
| Black text | 7.60:1: AA passes, AAA passes, large text passes |
About pink-400
In OKLCH, pink-400 has a lightness of 71.8%, a chroma of 0.202 and a hue of 349.8 degrees, which makes it a vivid medium pink. The step up to pink-300 is 10.5 points of lightness, and the step down to pink-500 6.2 points.
Here HSL's lightness, 69%, lands near OKLCH's 71.8%, which is not true of every color. The value lies inside sRGB, the gamut of a hex code, so pink-400 converts to #fb64b6 without losing chroma.
For text, pink-400 wants black: 7.60:1 clears even AAA's 7:1, and white at 2.76:1 fails AA. On the pink scale black text works down to pink-600, which leaves pink-400 2 shades of margin.
The CSS keyword hotpink (#ff69b4) is almost the same color: 0.014 apart in OKLab, under the step most people notice.
Tints and shades
- #ffe7f3
- #ffcee6
- #ffb6da
- #ff9cce
- #ff81c2
- #fb64b6
- #c54d8e
- #923768
- #612244
- #350f24
- #0e0207
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
- #fb64b6
- #391e2c
- #719870
- #74f3fe
- #416d33
Locked as the first of five swatches, pink-400 gets #391e2c, #719870, #74f3fe, #416d33 from Recolor's generator, a split-complementary palette, built on the two hues beside its opposite. The seed is its hex, so the palette stays the same. Open it in Recolor.
Using pink-400
Pair it with text-black, 7.60:1; pink-400 as text on a black page measures the same ratio. In CSS it is var(--color-pink-400).
<a class="bg-pink-400 text-black" href="/start">Get started</a>
<p class="text-pink-400">Text in pink-400</p>Common questions
Does white text pass WCAG AA on Tailwind pink-400?
No. White text measures 2.76:1 on pink-400, under AA's 4.5:1; black text measures 7.60:1 and passes. The lightest pink shade for white text is pink-600.
Is Tailwind pink-400 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-pink-400: oklch(71.8% 0.202 349.761); #fb64b6 is its conversion to sRGB.
Is there a CSS named color for Tailwind pink-400?
Yes, nearly: hotpink (#ff69b4) is 0.014 away in OKLab, too close to tell apart by eye.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org