#D40162

Closest named color: Dark Hot Pink (#D90166). oklch(56% 0.224 5.2), rgb(212, 1, 98).

Aa

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

About this color

#D40162 is a medium-dark, vivid red. In OKLCH its lightness is 56%, its chroma 0.224 and its hue 5°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Hot Pink (#D90166), ΔE 0.011 away. White text reads best on it, at 5.27:1.

Hue familyReds
Lightnessmedium-dark (56%)
Chromavivid (0.224)
Temperaturewarm
Nearest nameDark Hot Pink (#D90166)
Black text3.98:1
White text5.27:1

Values

HEX#D40162
RGBrgb(212, 1, 98)
HSLhsl(332, 99%, 42%)
OKLCHoklch(56% 0.224 5.2)

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 #D40162 5.27:1 AA Lc -79.0 Fine for body text
Black text on #D40162 3.98:1 AA large text Lc 30.5 Non-text elements, placeholder text
#D40162 text on white 5.27:1 AA Lc 73.6 Content text, not long reading
#D40162 text on black 3.98:1 AA large text Lc -28.1 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

    #FEF2F4

    oklch(97.1% 0.013 5.8)

  2. Step 100

    100

    #FCE2E7

    oklch(93.5% 0.029 4.5)

  3. Step 200

    200

    #FBCAD4

    oklch(88.4% 0.057 4.6)

  4. Step 300

    300

    #F9A5B7

    oklch(80.9% 0.101 5.6)

  5. Step 400

    400

    #F17093

    oklch(70.8% 0.162 5.1)

  6. Step 500

    500

    #E84078

    oklch(63.2% 0.206 5.4)

  7. Step 600

    600 (this color)

    #D40162

    oklch(56% 0.224 5.2)

  8. Step 700

    700

    #B20051

    oklch(49.1% 0.197 5.2)

  9. Step 800

    800

    #930042

    oklch(42.7% 0.171 5.1)

  10. Step 900

    900

    #771338

    oklch(37.8% 0.135 5)

  11. Step 950

    950

    #460E21

    oklch(27% 0.086 4.5)

Export this scale for Tailwind in the Tailwind colors tool

#D40162 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)#4E54630.256
Deuteranopia (no green cones)#80795D0.229
Tritanopia (no blue cones)#E800390.070
Achromatopsia (no color)#6C6C6C0.226

Harmonies

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

Complementary

The opposite hue (180°).

  • #D40162

    #D40162

    oklch(56% 0.224 5.2)

  • #00877C

    #00877C

    oklch(56% 0.099 184.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D40162

    #D40162

    oklch(56% 0.224 5.2)

  • #BD25A6

    #BD25A6

    oklch(56% 0.224 335.5)

  • #CD3500

    #CD3500

    oklch(56% 0.195 35.3)

Open the analogous palette in the generator

Split complementary

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

  • #D40162

    #D40162

    oklch(56% 0.224 5.2)

  • #008B4F

    #008B4F

    oklch(55.9% 0.138 155.2)

  • #008299

    #008299

    oklch(55.9% 0.099 215.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D40162

    #D40162

    oklch(56% 0.224 5.2)

  • #618200

    #618200

    oklch(56% 0.142 125.4)

  • #007AC1

    #007AC1

    oklch(56% 0.141 245.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D40162

    #D40162

    oklch(56% 0.224 5.2)

  • #897300

    #897300

    oklch(56% 0.115 95.7)

  • #00877C

    #00877C

    oklch(56% 0.099 184.9)

  • #565AF4

    #565AF4

    oklch(55.9% 0.225 275.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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