Toolman

Tailwind pink colours

The eleven pink shades in the default Tailwind CSS palette, with the contrast figures that decide which of them you can actually put text on.

Every pink shade

ClassHexRGBOn whiteText colourAs text
pink-50#FDF2F8253, 242, 2481.09:1black
pink-100#FCE7F3252, 231, 2431.18:1black
pink-200#FBCFE8251, 207, 2321.38:1black
pink-300#F9A8D4249, 168, 2121.81:1black
pink-400#F472B6244, 114, 1822.65:1black
pink-500#EC4899236, 72, 1533.53:1blacklarge only
pink-600#DB2777219, 39, 1194.6:1whiteAA
pink-700#BE185D190, 24, 936.04:1whiteAA
pink-800#9D174D157, 23, 777.88:1whiteAA
pink-900#831843131, 24, 679.65:1whiteAA
pink-950#50072480, 7, 3615.03:1whiteAA

"On white" is the contrast ratio against a white page. "As text" is whether that ratio passes WCAG AA for normal text, which needs 4.5:1; large text needs only 3:1.

Where the scale turns over

pink-600 is the lightest shade that reaches 4.5:1 against white, so it is the first one usable for body text on a white page. It is also where a background of this hue stops taking black text and starts needing white — the two thresholds are 4.5:1 and 4.58:1, and on this scale they fall on the same step.

Using pink in Tailwind

<div class="bg-pink-500 text-black">
<p class="text-pink-600">

The text class above is the lightest pink that still passes AA on a white background.

Frequently asked questions

What is the hex code for Tailwind pink-500?

#EC4899 — RGB 236, 72, 153. Full values and contrast for #EC4899.

Which Tailwind pink shades can I use for text?

pink-600, pink-700, pink-800, pink-900, pink-950 reach 4.5:1 against white and pass AA for normal text. Anything lighter fails, whatever it looks like on your monitor.

Should text on a pink background be black or white?

Black up to pink-500, white from pink-600 down. The two are never both comfortable: at the crossover neither reaches 4.5:1.

All Tailwind colours · Colour reference