#D787F1
Closest named color: Liliac (#C48EFD). oklch(74.5% 0.168 317.5), rgb(215, 135, 241).
Aa
Black text reads best on this color (8.62:1).
About this color
#D787F1 is a medium-light, vivid purple. In OKLCH its lightness is 74%, its chroma 0.168 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.036 away. Black text reads best on it, at 8.62:1.
| Hue family | Purples |
| Lightness | medium-light (74%) |
| Chroma | vivid (0.168) |
| Temperature | in between |
| Nearest name | Liliac (#C48EFD) |
| Black text | 8.62:1 |
| White text | 2.43:1 |
Values
| HEX | #D787F1 |
| RGB | rgb(215, 135, 241) |
| HSL | hsl(285, 79%, 74%) |
| OKLCH | oklch(74.5% 0.168 317.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #D787F1 | 2.43:1 | Fails | Lc -52.7 | Large or bold text, headings |
| Black text on #D787F1 | 8.62:1 | AAA | Lc 56.3 | Large or bold text, headings |
| #D787F1 text on white | 2.43:1 | Fails | Lc 47.7 | Large or bold text, headings |
| #D787F1 text on black | 8.62:1 | AAA | Lc -54.4 | Large or bold text, headings |
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 400.
-
Step 50
50
#F9F3FC
oklch(97.1% 0.013 314.8)
-
Step 100
100
#F3E4F8
oklch(93.7% 0.031 317.7)
-
Step 200
200
#E9CEF3
oklch(88.5% 0.058 316.9)
-
Step 300
300
#DDABED
oklch(80.9% 0.105 317.8)
-
Step 400
400 (this color)
#D787F1
oklch(74.5% 0.168 317.5)
-
Step 500
500
#BC53DC
oklch(63.1% 0.215 317.5)
-
Step 600
600
#A82ECA
oklch(55.7% 0.234 317.5)
-
Step 700
700
#901EAE
oklch(49.2% 0.217 317.7)
-
Step 800
800
#751D8D
oklch(42.7% 0.18 317.7)
-
Step 900
900
#5E2071
oklch(37.6% 0.141 317.2)
-
Step 950
950
#371542
oklch(27% 0.088 317.1)
#D787F1 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) | #75A1F5 | 0.146 |
| Deuteranopia (no green cones) | #8BA9EE | 0.132 |
| Tritanopia (no blue cones) | #D795B1 | 0.109 |
| Achromatopsia (no color) | #A6A6A6 | 0.169 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #D787F1
#D787F1
oklch(74.5% 0.168 317.5)
- #74C453
#74C453
oklch(74.4% 0.168 137.6)
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 #D787F1, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Liliac #C48EFD ΔE 0.036
- Lavender Pink #DD85D7 ΔE 0.039
- Violet #EE82EE ΔE 0.039
- Baby Purple #CA9BF7 ΔE 0.048
- Purply Pink #F075E6 ΔE 0.053
- Orchid #DA70D6 ΔE 0.056
- Pastel Purple #CAA0FF ΔE 0.059
- Light Purple #BF77F6 ΔE 0.059
Use #D787F1 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.