#D786FC#D786FC
#D786FC is a light, vivid purple. Relative luminance 0.385; OKLCH L 74.9% C 0.182 H 314.4°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #D786FC |
|---|---|
| RGB | rgb(215, 134, 252) |
| HSL | hsl(281, 95%, 76%) |
| HSV | hsv(281, 47%, 99%) |
| CMYK | cmyk(14.7%, 46.8%, 0%, 1.2%) |
| CIE-LAB | lab(68.41, 50.59, -46.69) |
| CIE-LCH | lch(68.41, 68.84, 317.30°) |
| OKLab | oklab(74.85% 0.127 -0.1297) |
| OKLCH | oklch(74.85% 0.182 314.4) |
| XYZ | xyz(54.1173, 38.5269, 96.6622) |
| Luminance | 0.3853 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 4.20
Light Purple
#BF77F6
ΔE00 5.53
Violet (CSS)
#EE82EE
ΔE00 5.56
Baby Purple
#CA9BF7
ΔE00 5.89
Easter Purple
#C071FE
ΔE00 6.60
Pastel Purple
#CAA0FF
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786FC #ABFC86
analogous
#9C86FC #D786FC #FC86E6
triadic
#D786FC #FCD786 #86FCD7
tetradic
#D786FC #FC9C86 #ABFC86 #86E6FC
square
#D786FC #FC9C86 #ABFC86 #86E6FC
split-complementary
#D786FC #E6FC86 #86FC9C
monochromatic
#B00FF9 #C34AFB #D786FC #EBC2FD #F5E1FE
Accessibility & contrast
On white
2.41
#D786FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.71
#D786FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786FC
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786FC | 1.00 | 2.41 | 8.71 | 8.71 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6EA2FF
Deuteranopia (green-blind)
#85A9F9
Tritanopia (blue-blind)
#D498B5
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #d786fc; /* rgb */ color: rgb(215, 134, 252); /* oklch */ color: oklch(74.9% 0.182 314.4);
Tailwind
colors: {
custom: {
50: '#e5abfe',
500: '#d786fc',
950: '#000000',
},
}SCSS
$custom: #d786fc; $custom-light: #e5abfe; $custom-dark: #000000;
JSON
{
"hex": "#d786fc",
"rgb": {
"r": 215,
"g": 134,
"b": 252
},
"hsl": {
"h": 281.186,
"s": 95.161,
"l": 75.686
},
"oklch": {
"l": 0.74851,
"c": 0.18154,
"h": 314.4
},
"luminance": 0.38526
}Semantic roles & 50–950 ramp
primary
#D786FC
secondary
#DFF6D5
accent
#E60048
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86