#CD40D9

Closest named color: Purple Pink (#D725DE). oklch(63.2% 0.243 324.5), rgb(205, 64, 217).

Aa

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

About this color

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

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

Values

HEX#CD40D9
RGBrgb(205, 64, 217)
HSLhsl(295, 67%, 55%)
OKLCHoklch(63.2% 0.243 324.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 #CD40D9 3.93:1 AA large text Lc -71.1 Content text, not long reading
Black text on #CD40D9 5.33:1 AA Lc 38.4 Non-text elements, placeholder text
#CD40D9 text on white 3.93:1 AA large text Lc 65.6 Content text, not long reading
#CD40D9 text on black 5.33:1 AA Lc -36.0 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

    #FBF2FC

    oklch(97.1% 0.016 322.7)

  2. Step 100

    100

    #F6E3F7

    oklch(93.7% 0.033 324.3)

  3. Step 200

    200

    #F0CBF2

    oklch(88.5% 0.066 324.5)

  4. Step 300

    300

    #E7A6EB

    oklch(80.9% 0.118 324.6)

  5. Step 400

    400

    #D971E1

    oklch(70.7% 0.189 324.6)

  6. Step 500

    500 (this color)

    #CD40D9

    oklch(63.2% 0.243 324.5)

  7. Step 600

    600

    #B700C5

    oklch(55.6% 0.261 324.4)

  8. Step 700

    700

    #9B00A6

    oklch(49.1% 0.23 324.7)

  9. Step 800

    800

    #80008A

    oklch(42.8% 0.201 324.5)

  10. Step 900

    900

    #68136F

    oklch(37.8% 0.158 324.6)

  11. Step 950

    950

    #3D0E41

    oklch(27% 0.101 324.5)

Export this scale for Tailwind in the Tailwind colors tool

#CD40D9 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)#0F75DD0.255
Deuteranopia (no green cones)#5D86D50.215
Tritanopia (no blue cones)#D15A890.141
Achromatopsia (no color)#8080800.245

Harmonies

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

Complementary

The opposite hue (180°).

  • #CD40D9

    #CD40D9

    oklch(63.2% 0.243 324.5)

  • #00A728

    #00A728

    oklch(63.3% 0.202 144.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CD40D9

    #CD40D9

    oklch(63.2% 0.243 324.5)

  • #9762FF

    #9762FF

    oklch(63.2% 0.222 294.8)

  • #EE2492

    #EE2492

    oklch(63.1% 0.243 354.6)

Open the analogous palette in the generator

Split complementary

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

  • #CD40D9

    #CD40D9

    oklch(63.2% 0.243 324.5)

  • #899300

    #899300

    oklch(63.3% 0.143 114.5)

  • #00A185

    #00A185

    oklch(63.3% 0.12 174.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CD40D9

    #CD40D9

    oklch(63.2% 0.243 324.5)

  • #AE8200

    #AE8200

    oklch(63.2% 0.13 84.6)

  • #009CA8

    #009CA8

    oklch(63.2% 0.108 204.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CD40D9

    #CD40D9

    oklch(63.2% 0.243 324.5)

  • #D06A00

    #D06A00

    oklch(63.2% 0.158 54.4)

  • #00A728

    #00A728

    oklch(63.3% 0.202 144.5)

  • #0095CE

    #0095CE

    oklch(63.2% 0.133 234.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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