#D787F2#D787F2
#D787F2 is a light, vivid purple. Relative luminance 0.382; OKLCH L 74.5% C 0.169 H 317.2°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #D787F2 |
|---|---|
| RGB | rgb(215, 135, 242) |
| HSL | hsl(285, 80%, 74%) |
| HSV | hsv(285, 44%, 95%) |
| CMYK | cmyk(11.2%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(68.16, 48.05, -41.60) |
| CIE-LCH | lch(68.16, 63.56, 319.11°) |
| OKLab | oklab(74.52% 0.1241 -0.115) |
| OKLCH | oklch(74.52% 0.169 317.2) |
| XYZ | xyz(52.7130, 38.1874, 88.5813) |
| Luminance | 0.3819 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.51
Liliac
#C48EFD
ΔE00 5.04
Lavender Pink
#DD85D7
ΔE00 5.68
Baby Purple
#CA9BF7
ΔE00 5.82
Purply Pink
#F075E6
ΔE00 6.11
Light Purple
#BF77F6
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D787F2 #A2F287
analogous
#A287F2 #D787F2 #F287D8
triadic
#D787F2 #F2D787 #87F2D7
tetradic
#D787F2 #F2A287 #A2F287 #87D8F2
square
#D787F2 #F2A287 #A2F287 #87D8F2
split-complementary
#D787F2 #D8F287 #87F2A2
monochromatic
#B219E6 #C550EC #D787F2 #E9BEF8 #F6E3FC
Accessibility & contrast
On white
2.43
#D787F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.64
#D787F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D787F2
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D787F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D787F2 | 1.00 | 2.43 | 8.64 | 8.64 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#75A1F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#D696B1
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d787f2; /* rgb */ color: rgb(215, 135, 242); /* oklch */ color: oklch(74.5% 0.169 317.2);
Tailwind
colors: {
custom: {
50: '#e5acf6',
500: '#d787f2',
950: '#000000',
},
}SCSS
$custom: #d787f2; $custom-light: #e5acf6; $custom-dark: #000000;
JSON
{
"hex": "#d787f2",
"rgb": {
"r": 215,
"g": 135,
"b": 242
},
"hsl": {
"h": 284.86,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.74518,
"c": 0.16925,
"h": 317.2
},
"luminance": 0.38186
}Semantic roles & 50–950 ramp
primary
#D787F2
secondary
#DEF4D7
accent
#DD093E
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85