#D40047

Closest named color: Lipstick (#D5174E). oklch(55.3% 0.221 14.8), rgb(212, 0, 71).

Aa

White text reads best on this color (5.39:1).

About this color

#D40047 is a medium-dark, vivid red. In OKLCH its lightness is 55%, its chroma 0.221 and its hue 15°. Its hue sits on the warm side of the wheel. The nearest named color is Lipstick (#D5174E), ΔE 0.012 away. White text reads best on it, at 5.39:1.

Hue familyReds
Lightnessmedium-dark (55%)
Chromavivid (0.221)
Temperaturewarm
Nearest nameLipstick (#D5174E)
Black text3.89:1
White text5.39:1

Values

HEX#D40047
RGBrgb(212, 0, 71)
HSLhsl(340, 100%, 42%)
OKLCHoklch(55.3% 0.221 14.8)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #D40047 5.39:1 AA Lc -79.6 Fine for body text
Black text on #D40047 3.89:1 AA large text Lc 29.9 Dividers and decoration only
#D40047 text on white 5.39:1 AA Lc 74.1 Content text, not long reading
#D40047 text on black 3.89:1 AA large text Lc -27.6 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #FEF2F2

    oklch(97.1% 0.013 17.4)

  2. Step 100

    100

    #FDE3E4

    oklch(93.7% 0.029 15)

  3. Step 200

    200

    #FCCBCD

    oklch(88.5% 0.056 15.5)

  4. Step 300

    300

    #FAA6AC

    oklch(80.9% 0.1 14.8)

  5. Step 400

    400

    #F37180

    oklch(70.7% 0.16 15)

  6. Step 500

    500

    #EA4261

    oklch(63.2% 0.203 14.9)

  7. Step 600

    600 (this color)

    #D40047

    oklch(55.3% 0.221 14.8)

  8. Step 700

    700

    #B5003B

    oklch(49.1% 0.196 15)

  9. Step 800

    800

    #950130

    oklch(42.6% 0.17 14.6)

  10. Step 900

    900

    #78142A

    oklch(37.7% 0.133 14.8)

  11. Step 950

    950

    #470F19

    oklch(27% 0.084 14.7)

Export this scale for Tailwind in the Tailwind colors tool

#D40047 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#5351470.250
Deuteranopia (no green cones)#8378410.226
Tritanopia (no blue cones)#E900290.055
Achromatopsia (no color)#6A6A6A0.223

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #D40047

    #D40047

    oklch(55.3% 0.221 14.8)

  • #008383

    #008383

    oklch(55.2% 0.094 194.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D40047

    #D40047

    oklch(55.3% 0.221 14.8)

  • #C31B8F

    #C31B8F

    oklch(55.3% 0.221 345.1)

  • #BA4B00

    #BA4B00

    oklch(55.3% 0.159 44.7)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #D40047

    #D40047

    oklch(55.3% 0.221 14.8)

  • #008761

    #008761

    oklch(55.2% 0.116 165)

  • #007EA0

    #007EA0

    oklch(55.2% 0.105 225.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D40047

    #D40047

    oklch(55.3% 0.221 14.8)

  • #458600

    #458600

    oklch(55.5% 0.161 134.8)

  • #0070D8

    #0070D8

    oklch(55.3% 0.181 254.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D40047

    #D40047

    oklch(55.3% 0.221 14.8)

  • #7D7500

    #7D7500

    oklch(55.2% 0.117 104.8)

  • #008383

    #008383

    oklch(55.2% 0.094 194.8)

  • #6C50EB

    #6C50EB

    oklch(55.2% 0.222 284.8)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #D40047, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #D40047 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.