#D42A9E

Closest named color: Medium Violet Red (#C71585). oklch(59.6% 0.228 344.7), rgb(212, 42, 158).

Aa

Black text reads best on this color (4.62:1).

About this color

#D42A9E is a medium-dark, vivid pink. In OKLCH its lightness is 60%, its chroma 0.228 and its hue 345°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.048 away. Black text reads best on it, at 4.62:1.

Hue familyPinks
Lightnessmedium-dark (60%)
Chromavivid (0.228)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text4.62:1
White text4.54:1

Values

HEX#D42A9E
RGBrgb(212, 42, 158)
HSLhsl(319, 67%, 50%)
OKLCHoklch(59.6% 0.228 344.7)

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 #D42A9E 4.54:1 AA Lc -75.4 Fine for body text
Black text on #D42A9E 4.62:1 AA Lc 34.1 Non-text elements, placeholder text
#D42A9E text on white 4.54:1 AA Lc 69.9 Content text, not long reading
#D42A9E text on black 4.62:1 AA Lc -31.7 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #FDF2F8

    oklch(97.1% 0.014 343.2)

  2. Step 100

    100

    #FBE2EF

    oklch(93.7% 0.032 345)

  3. Step 200

    200

    #F8C9E3

    oklch(88.4% 0.063 344.1)

  4. Step 300

    300

    #F4A3D1

    oklch(80.8% 0.111 344.8)

  5. Step 400

    400

    #EB6CBA

    oklch(70.7% 0.179 344.9)

  6. Step 500

    500 (this color)

    #D42A9E

    oklch(59.6% 0.228 344.7)

  7. Step 600

    600

    #C80093

    oklch(55.6% 0.237 344.5)

  8. Step 700

    700

    #A9007C

    oklch(49.1% 0.209 344.4)

  9. Step 800

    800

    #8C0065

    oklch(42.7% 0.182 344.9)

  10. Step 900

    900

    #730E53

    oklch(37.8% 0.148 345.2)

  11. Step 950

    950

    #440C31

    oklch(27% 0.095 344.8)

Export this scale for Tailwind in the Tailwind colors tool

#D42A9E 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)#4264A10.256
Deuteranopia (no green cones)#77809A0.221
Tritanopia (no blue cones)#E227620.097
Achromatopsia (no color)#7676760.230

Harmonies

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

Complementary

The opposite hue (180°).

  • #D42A9E

    #D42A9E

    oklch(59.6% 0.228 344.7)

  • #00966C

    #00966C

    oklch(59.6% 0.126 164.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D42A9E

    #D42A9E

    oklch(59.6% 0.228 344.7)

  • #AF43DA

    #AF43DA

    oklch(59.6% 0.228 314.6)

  • #E61A52

    #E61A52

    oklch(59.5% 0.228 14.7)

Open the analogous palette in the generator

Split complementary

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

  • #D42A9E

    #D42A9E

    oklch(59.6% 0.228 344.7)

  • #4D9400

    #4D9400

    oklch(59.6% 0.173 134.8)

  • #009292

    #009292

    oklch(59.8% 0.102 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D42A9E

    #D42A9E

    oklch(59.6% 0.228 344.7)

  • #8B8200

    #8B8200

    oklch(59.6% 0.126 104.7)

  • #008CB1

    #008CB1

    oklch(59.5% 0.113 224.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D42A9E

    #D42A9E

    oklch(59.6% 0.228 344.7)

  • #AA7200

    #AA7200

    oklch(59.6% 0.126 74.9)

  • #00966C

    #00966C

    oklch(59.6% 0.126 164.9)

  • #007DEF

    #007DEF

    oklch(59.7% 0.194 254.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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