Inspect DeepPink (#FF1493) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DeepPink
#FF1493
Black text reads best on this background, at 5.77:1.
DeepPink is one of the 148 CSS named colors, and resolves to #FF1493 in every browser. In numbers that is rgb(255, 20, 147) and hsl(328, 100%, 54%). Perceptually it is a mid-toned, vivid color: OKLCH puts its lightness at 65% and its chroma at 0.261. It sits in the pinks at 357 degrees of OKLCH hue, and reads as a cool color.
White text only reaches 3.64:1 here, so black text is the safer pairing at 5.77:1. At this chroma it is loud enough to be an accent or a call to action, but it will fight anything else vivid placed next to it.
The closest CSS named colors to DeepPink, measured with CIEDE2000, are HotPink (#FF69B4), PaleVioletRed (#DB7093), MediumVioletRed (#C71585). If DeepPink is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#FF1493
RGB
rgb(255, 20, 147)
HSL
hsl(328, 100%, 54%)
HWB
hwb(328 8% 0%)
CMYK
cmyk(0%, 92%, 42%, 0%)
LAB
lab(56.6 83.45 -4.12)
LCH
lch(56.6 83.55 357.17)
OKLCH
oklch(65.49% 0.2613 356.94)
WCAG asks for 4.5:1 between body text and its background. On #FF1493 white text measures 3.64:1 and black text 5.77:1, so black clears it and white does not.
White text on DeepPink
WCAG 2.2
3.64:1
APCA
Lc 67
Fails AA body text
Fails AAA body text
Passes AA large text
Black text on DeepPink
WCAG 2.2
5.77:1
APCA
Lc 42
Passes AA body text
Fails AAA body text
Passes AA large text
Check DeepPink against any other color in the contrast checker.
DeepPink sits at 65% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF6F8 and down to #120006, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#FF66A6
20% lighter
#FF91BA
40% lighter
#FFB5CF
60% lighter
#FFD6E3
80% lighter
#FFF6F8
100% lighter
#CB0073
20% darker
#970054
40% darker
#670037
60% darker
#3A001D
80% darker
#120006
100% darker
Build a full accessible scale from #FF1493 in the shade generator.
Hues rotated around #FF1493 in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
DeepPink sits at 357 degrees. Rotating it a half turn lands on 177 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of DeepPink at 327 and 27 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
357, 117 and 237 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 177 degrees, this pair flanks it at 147 and 207. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around DeepPink on the color wheel.
The biggest shift is under protanopia, where #FF1493 reads as #1E3C99, 41 CIEDE2000 units away. If DeepPink is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#1E3C99
Deuteranopia
#4D5C8C
Tritanopia
#FF143C
Achromatopsia
#4F4F4F
The nearest CSS keywords to #FF1493, ranked by perceptual distance rather than by how close their hex digits happen to look.