#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 family | Purples |
| Lightness | medium-light (63%) |
| Chroma | vivid (0.238) |
| Temperature | in between |
| Nearest name | Purple Pink (#D725DE) |
| Black text | 5.33:1 |
| White text | 3.93:1 |
Values
| HEX | #D040D1 |
| RGB | rgb(208, 64, 209) |
| HSL | hsl(300, 61%, 54%) |
| OKLCH | oklch(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.
| Pair | WCAG 2 | Result | APCA | APCA 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.
-
Step 50
50
#FCF2FB
oklch(97.1% 0.016 328.8)
-
Step 100
100
#F7E2F6
oklch(93.6% 0.035 327.3)
-
Step 200
200
#F1CBEF
oklch(88.5% 0.064 327.8)
-
Step 300
300
#E9A6E7
oklch(80.9% 0.115 327.6)
-
Step 400
400
#DC70DB
oklch(70.7% 0.187 327.7)
-
Step 500
500 (this color)
#D040D1
oklch(63.2% 0.238 327.7)
-
Step 600
600
#BA00BD
oklch(55.5% 0.256 327.5)
-
Step 700
700
#9E00A0
oklch(49.2% 0.227 327.7)
-
Step 800
800
#820084
oklch(42.7% 0.197 327.6)
-
Step 900
900
#69136A
oklch(37.7% 0.155 327.6)
-
Step 950
950
#3E0E3E
oklch(26.9% 0.099 327.9)
#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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #2674D5 | 0.252 |
| Deuteranopia (no green cones) | #6587CD | 0.214 |
| Tritanopia (no blue cones) | #D65684 | 0.134 |
| Achromatopsia (no color) | #808080 | 0.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)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
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.
- Purple Pink #D725DE ΔE 0.036
- Pinky Purple #C94CBE ΔE 0.037
- Purpley Pink #C83CB9 ΔE 0.038
- Medium Orchid #BA55D3 ΔE 0.049
- Heliotrope #D94FF5 ΔE 0.058
- Pink Purple #EF1DE7 ΔE 0.068
- Hot Magenta #F504C9 ΔE 0.075
- Bright Lilac #C95EFB ΔE 0.075
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.