#D786F8#D786F8
#D786F8 is a light, vivid purple. Relative luminance 0.383; OKLCH L 74.7% C 0.177 H 315.5°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #D786F8 |
|---|---|
| RGB | rgb(215, 134, 248) |
| HSL | hsl(283, 89%, 75%) |
| HSV | hsv(283, 46%, 97%) |
| CMYK | cmyk(13.3%, 46%, 0%, 2.7%) |
| CIE-LAB | lab(68.22, 49.78, -44.79) |
| CIE-LCH | lch(68.22, 66.96, 318.02°) |
| OKLab | oklab(74.66% 0.1264 -0.1242) |
| OKLCH | oklch(74.66% 0.177 315.5) |
| XYZ | xyz(53.4901, 38.2760, 93.3590) |
| Luminance | 0.3827 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 4.50
Violet (CSS)
#EE82EE
ΔE00 5.10
Light Purple
#BF77F6
ΔE00 5.72
Baby Purple
#CA9BF7
ΔE00 5.88
Purply Pink
#F075E6
ΔE00 6.62
Lavender Pink
#DD85D7
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786F8 #A7F886
analogous
#9E86F8 #D786F8 #F886E0
triadic
#D786F8 #F8D786 #86F8D7
tetradic
#D786F8 #F89E86 #A7F886 #86E0F8
square
#D786F8 #F89E86 #A7F886 #86E0F8
split-complementary
#D786F8 #E0F886 #86F89E
monochromatic
#B112F1 #C44CF5 #D786F8 #EAC0FB #F5E2FD
Accessibility & contrast
On white
2.43
#D786F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.65
#D786F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786F8
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786F8 | 1.00 | 2.43 | 8.65 | 8.65 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#70A1FC
Deuteranopia (green-blind)
#87A9F5
Tritanopia (blue-blind)
#D596B3
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d786f8; /* rgb */ color: rgb(215, 134, 248); /* oklch */ color: oklch(74.7% 0.177 315.5);
Tailwind
colors: {
custom: {
50: '#e5abfb',
500: '#d786f8',
950: '#000000',
},
}SCSS
$custom: #d786f8; $custom-light: #e5abfb; $custom-dark: #000000;
JSON
{
"hex": "#d786f8",
"rgb": {
"r": 215,
"g": 134,
"b": 248
},
"hsl": {
"h": 282.632,
"s": 89.063,
"l": 74.902
},
"oklch": {
"l": 0.74655,
"c": 0.17725,
"h": 315.5
},
"luminance": 0.38275
}Semantic roles & 50–950 ramp
primary
#D786F8
secondary
#DFF5D6
accent
#E60042
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85