#D40042

Closest named color: Lipstick (#D5174E). oklch(55.2% 0.221 16.5), rgb(212, 0, 66).

Aa

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

About this color

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

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

Values

HEX#D40042
RGBrgb(212, 0, 66)
HSLhsl(341, 100%, 42%)
OKLCHoklch(55.2% 0.221 16.5)

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 #D40042 5.41:1 AA Lc -79.6 Fine for body text
Black text on #D40042 3.87:1 AA large text Lc 29.8 Dividers and decoration only
#D40042 text on white 5.41:1 AA Lc 74.2 Content text, not long reading
#D40042 text on black 3.87:1 AA large text Lc -27.5 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

    #FDE3E3

    oklch(93.7% 0.029 17.7)

  3. Step 200

    200

    #FCCBCC

    oklch(88.5% 0.056 16.9)

  4. Step 300

    300

    #FAA6AA

    oklch(80.8% 0.1 16.4)

  5. Step 400

    400

    #F3727D

    oklch(70.8% 0.159 16.8)

  6. Step 500

    500

    #EA425D

    oklch(63.1% 0.203 16.4)

  7. Step 600

    600 (this color)

    #D40042

    oklch(55.2% 0.221 16.5)

  8. Step 700

    700

    #B50037

    oklch(49.1% 0.196 16.5)

  9. Step 800

    800

    #96012C

    oklch(42.8% 0.171 16.6)

  10. Step 900

    900

    #781528

    oklch(37.7% 0.132 16.4)

  11. Step 950

    950

    #470F17

    oklch(27% 0.084 16.9)

Export this scale for Tailwind in the Tailwind colors tool

#D40042 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)#5450420.249
Deuteranopia (no green cones)#84783C0.225
Tritanopia (no blue cones)#E900260.053
Achromatopsia (no color)#6A6A6A0.223

Harmonies

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

Complementary

The opposite hue (180°).

  • #D40042

    #D40042

    oklch(55.2% 0.221 16.5)

  • #008385

    #008385

    oklch(55.3% 0.094 196.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D40042

    #D40042

    oklch(55.2% 0.221 16.5)

  • #C4198C

    #C4198C

    oklch(55.3% 0.221 346.4)

  • #B74E00

    #B74E00

    oklch(55.2% 0.154 46.7)

Open the analogous palette in the generator

Split complementary

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

  • #D40042

    #D40042

    oklch(55.2% 0.221 16.5)

  • #008763

    #008763

    oklch(55.3% 0.114 166.2)

  • #007EA2

    #007EA2

    oklch(55.3% 0.106 226.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D40042

    #D40042

    oklch(55.2% 0.221 16.5)

  • #3D8600

    #3D8600

    oklch(55.1% 0.165 136.5)

  • #006DDF

    #006DDF

    oklch(55.1% 0.193 256.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D40042

    #D40042

    oklch(55.2% 0.221 16.5)

  • #7B7600

    #7B7600

    oklch(55.2% 0.118 106.7)

  • #008385

    #008385

    oklch(55.3% 0.094 196.7)

  • #704FE9

    #704FE9

    oklch(55.3% 0.22 286.6)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #D40042.

Similar named colors

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

Use #D40042 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.