#D787EF#D787EF
#D787EF is a light, vivid purple. Relative luminance 0.380; OKLCH L 74.4% C 0.166 H 318.1°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #D787EF |
|---|---|
| RGB | rgb(215, 135, 239) |
| HSL | hsl(286, 76%, 73%) |
| HSV | hsv(286, 44%, 94%) |
| CMYK | cmyk(10%, 43.5%, 0%, 6.3%) |
| CIE-LAB | lab(68.03, 47.45, -40.16) |
| CIE-LCH | lch(68.03, 62.17, 319.75°) |
| OKLab | oklab(74.38% 0.1236 -0.1109) |
| OKLCH | oklch(74.38% 0.166 318.1) |
| XYZ | xyz(52.2662, 38.0087, 86.2278) |
| Luminance | 0.3801 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.27
Lavender Pink
#DD85D7
ΔE00 5.17
Liliac
#C48EFD
ΔE00 5.40
Purply Pink
#F075E6
ΔE00 5.85
Baby Purple
#CA9BF7
ΔE00 5.96
Orchid
#DA70D6
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D787EF #9FEF87
analogous
#A387EF #D787EF #EF87D3
triadic
#D787EF #EFD787 #87EFD7
tetradic
#D787EF #EFA387 #9FEF87 #87D3EF
square
#D787EF #EFA387 #9FEF87 #87D3EF
split-complementary
#D787EF #D3EF87 #87EFA3
monochromatic
#B21EDE #C551E8 #D787EF #E9BDF6 #F6E4FB
Accessibility & contrast
On white
2.44
#D787EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.60
#D787EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D787EF
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D787EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D787EF | 1.00 | 2.44 | 8.60 | 8.60 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#76A0F3
Deuteranopia (green-blind)
#8CA9EC
Tritanopia (blue-blind)
#D795B0
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d787ef; /* rgb */ color: rgb(215, 135, 239); /* oklch */ color: oklch(74.4% 0.166 318.1);
Tailwind
colors: {
custom: {
50: '#e5acf4',
500: '#d787ef',
950: '#000000',
},
}SCSS
$custom: #d787ef; $custom-light: #e5acf4; $custom-dark: #000000;
JSON
{
"hex": "#d787ef",
"rgb": {
"r": 215,
"g": 135,
"b": 239
},
"hsl": {
"h": 286.154,
"s": 76.471,
"l": 73.333
},
"oklch": {
"l": 0.74377,
"c": 0.16608,
"h": 318.1
},
"luminance": 0.38007
}Semantic roles & 50–950 ramp
primary
#D787EF
secondary
#DEF3D8
accent
#D90D3C
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85