#D787FC#D787FC
#D787FC is a light, vivid purple. Relative luminance 0.388; OKLCH L 75.0% C 0.180 H 314.3°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #D787FC |
|---|---|
| RGB | rgb(215, 135, 252) |
| HSL | hsl(281, 95%, 76%) |
| HSV | hsv(281, 46%, 99%) |
| CMYK | cmyk(14.7%, 46.4%, 0%, 1.2%) |
| CIE-LAB | lab(68.61, 50.07, -46.37) |
| CIE-LCH | lch(68.61, 68.25, 317.20°) |
| OKLab | oklab(75% 0.1257 -0.1288) |
| OKLCH | oklch(75% 0.18 314.3) |
| XYZ | xyz(54.2562, 38.8047, 96.7085) |
| Luminance | 0.3880 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 4.11
Violet (CSS)
#EE82EE
ΔE00 5.56
Light Purple
#BF77F6
ΔE00 5.68
Baby Purple
#CA9BF7
ΔE00 5.69
Easter Purple
#C071FE
ΔE00 6.77
Pastel Purple
#CAA0FF
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D787FC #ACFC87
analogous
#9C87FC #D787FC #FC87E6
triadic
#D787FC #FCD787 #87FCD7
tetradic
#D787FC #FC9C87 #ACFC87 #87E6FC
square
#D787FC #FC9C87 #ACFC87 #87E6FC
split-complementary
#D787FC #E6FC87 #87FC9C
monochromatic
#AF10F9 #C34BFB #D787FC #EBC3FD #F5E1FE
Accessibility & contrast
On white
2.40
#D787FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.76
#D787FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D787FC
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D787FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D787FC | 1.00 | 2.40 | 8.76 | 8.76 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6FA3FF
Deuteranopia (green-blind)
#85AAF9
Tritanopia (blue-blind)
#D498B6
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #d787fc; /* rgb */ color: rgb(215, 135, 252); /* oklch */ color: oklch(75.0% 0.180 314.3);
Tailwind
colors: {
custom: {
50: '#e5acfe',
500: '#d787fc',
950: '#000000',
},
}SCSS
$custom: #d787fc; $custom-light: #e5acfe; $custom-dark: #000000;
JSON
{
"hex": "#d787fc",
"rgb": {
"r": 215,
"g": 135,
"b": 252
},
"hsl": {
"h": 281.026,
"s": 95.122,
"l": 75.882
},
"oklch": {
"l": 0.75002,
"c": 0.17994,
"h": 314.3
},
"luminance": 0.38803
}Semantic roles & 50–950 ramp
primary
#D787FC
secondary
#DFF6D5
accent
#E60049
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86