#D040D3

Closest named color: Purple Pink (#D725DE). oklch(63.3% 0.24 327.1), rgb(208, 64, 211).

Aa

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

About this color

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

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

Values

HEX#D040D3
RGBrgb(208, 64, 211)
HSLhsl(299, 63%, 54%)
OKLCHoklch(63.3% 0.24 327.1)

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 #D040D3 3.92:1 AA large text Lc -71.0 Content text, not long reading
Black text on #D040D3 5.35:1 AA Lc 38.6 Non-text elements, placeholder text
#D040D3 text on white 3.92:1 AA large text Lc 65.5 Content text, not long reading
#D040D3 text on black 5.35:1 AA Lc -36.2 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

    #FBF2FB

    oklch(97.1% 0.015 325.7)

  2. Step 100

    100

    #F7E2F6

    oklch(93.6% 0.035 327.3)

  3. Step 200

    200

    #F1CBF0

    oklch(88.6% 0.065 326.9)

  4. Step 300

    300

    #E9A5E8

    oklch(80.8% 0.118 327.1)

  5. Step 400

    400

    #DC70DC

    oklch(70.7% 0.188 327.3)

  6. Step 500

    500 (this color)

    #D040D3

    oklch(63.3% 0.24 327.1)

  7. Step 600

    600

    #BA00BE

    oklch(55.6% 0.257 327.2)

  8. Step 700

    700

    #9D00A1

    oklch(49.1% 0.227 327)

  9. Step 800

    800

    #820085

    oklch(42.8% 0.198 327.2)

  10. Step 900

    900

    #69126B

    oklch(37.6% 0.157 327.1)

  11. Step 950

    950

    #3E0E3F

    oklch(27% 0.1 327.1)

Export this scale for Tailwind in the Tailwind colors tool

#D040D3 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)#2375D70.254
Deuteranopia (no green cones)#6487CF0.214
Tritanopia (no blue cones)#D657850.136
Achromatopsia (no color)#8181810.241

Harmonies

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

Complementary

The opposite hue (180°).

  • #D040D3

    #D040D3

    oklch(63.3% 0.24 327.1)

  • #00A63C

    #00A63C

    oklch(63.2% 0.188 147.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D040D3

    #D040D3

    oklch(63.3% 0.24 327.1)

  • #9C5FFF

    #9C5FFF

    oklch(63.3% 0.227 297)

  • #EF278C

    #EF278C

    oklch(63.3% 0.239 357)

Open the analogous palette in the generator

Split complementary

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

  • #D040D3

    #D040D3

    oklch(63.3% 0.24 327.1)

  • #859400

    #859400

    oklch(63.2% 0.145 116.7)

  • #00A189

    #00A189

    oklch(63.4% 0.118 177.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D040D3

    #D040D3

    oklch(63.3% 0.24 327.1)

  • #AC8400

    #AC8400

    oklch(63.4% 0.13 87.1)

  • #009CAB

    #009CAB

    oklch(63.3% 0.108 206.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D040D3

    #D040D3

    oklch(63.3% 0.24 327.1)

  • #CD6D00

    #CD6D00

    oklch(63.3% 0.153 56.9)

  • #00A63C

    #00A63C

    oklch(63.2% 0.188 147.1)

  • #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 #D040D3, closest first.

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

Similar named colors

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

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