#D040D1

Closest named color: Purple Pink (#D725DE). oklch(63.2% 0.238 327.7), rgb(208, 64, 209).

Aa

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

About this color

#D040D1 is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.238 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purple Pink (#D725DE), ΔE 0.036 away. Black text reads best on it, at 5.33:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromavivid (0.238)
Temperaturein between
Nearest namePurple Pink (#D725DE)
Black text5.33:1
White text3.93:1

Values

HEX#D040D1
RGBrgb(208, 64, 209)
HSLhsl(300, 61%, 54%)
OKLCHoklch(63.2% 0.238 327.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 #D040D1 3.93:1 AA large text Lc -71.1 Content text, not long reading
Black text on #D040D1 5.33:1 AA Lc 38.5 Non-text elements, placeholder text
#D040D1 text on white 3.93:1 AA large text Lc 65.6 Content text, not long reading
#D040D1 text on black 5.33:1 AA Lc -36.1 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

    #FCF2FB

    oklch(97.1% 0.016 328.8)

  2. Step 100

    100

    #F7E2F6

    oklch(93.6% 0.035 327.3)

  3. Step 200

    200

    #F1CBEF

    oklch(88.5% 0.064 327.8)

  4. Step 300

    300

    #E9A6E7

    oklch(80.9% 0.115 327.6)

  5. Step 400

    400

    #DC70DB

    oklch(70.7% 0.187 327.7)

  6. Step 500

    500 (this color)

    #D040D1

    oklch(63.2% 0.238 327.7)

  7. Step 600

    600

    #BA00BD

    oklch(55.5% 0.256 327.5)

  8. Step 700

    700

    #9E00A0

    oklch(49.2% 0.227 327.7)

  9. Step 800

    800

    #820084

    oklch(42.7% 0.197 327.6)

  10. Step 900

    900

    #69136A

    oklch(37.7% 0.155 327.6)

  11. Step 950

    950

    #3E0E3E

    oklch(26.9% 0.099 327.9)

Export this scale for Tailwind in the Tailwind colors tool

#D040D1 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)#2674D50.252
Deuteranopia (no green cones)#6587CD0.214
Tritanopia (no blue cones)#D656840.134
Achromatopsia (no color)#8080800.240

Harmonies

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

Complementary

The opposite hue (180°).

  • #D040D1

    #D040D1

    oklch(63.2% 0.238 327.7)

  • #00A640

    #00A640

    oklch(63.2% 0.184 147.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D040D1

    #D040D1

    oklch(63.2% 0.238 327.7)

  • #9D5DFF

    #9D5DFF

    oklch(63.1% 0.229 297.6)

  • #EF278A

    #EF278A

    oklch(63.2% 0.238 357.6)

Open the analogous palette in the generator

Split complementary

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

  • #D040D1

    #D040D1

    oklch(63.2% 0.238 327.7)

  • #839400

    #839400

    oklch(63.1% 0.146 117.6)

  • #00A089

    #00A089

    oklch(63.1% 0.116 177.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D040D1

    #D040D1

    oklch(63.2% 0.238 327.7)

  • #AB8400

    #AB8400

    oklch(63.3% 0.129 87.7)

  • #009CAC

    #009CAC

    oklch(63.3% 0.109 207.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D040D1

    #D040D1

    oklch(63.2% 0.238 327.7)

  • #CC6E00

    #CC6E00

    oklch(63.3% 0.152 57.8)

  • #00A640

    #00A640

    oklch(63.2% 0.184 147.7)

  • #0094D3

    #0094D3

    oklch(63.2% 0.139 237.5)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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