#D786EC#D786EC
#D786EC is a light, vivid purple. Relative luminance 0.376; OKLCH L 74.1% C 0.165 H 319.2°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #D786EC |
|---|---|
| RGB | rgb(215, 134, 236) |
| HSL | hsl(288, 73%, 73%) |
| HSV | hsv(288, 43%, 93%) |
| CMYK | cmyk(8.9%, 43.2%, 0%, 7.5%) |
| CIE-LAB | lab(67.69, 47.38, -39.04) |
| CIE-LCH | lch(67.69, 61.39, 320.51°) |
| OKLab | oklab(74.08% 0.1245 -0.1076) |
| OKLCH | oklch(74.08% 0.165 319.2) |
| XYZ | xyz(51.6878, 37.5551, 83.8667) |
| Luminance | 0.3755 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.04
Lavender Pink
#DD85D7
ΔE00 4.67
Purply Pink
#F075E6
ΔE00 5.51
Orchid
#DA70D6
ΔE00 5.76
Liliac
#C48EFD
ΔE00 5.84
Baby Purple
#CA9BF7
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786EC #9BEC86
analogous
#A486EC #D786EC #EC86CE
triadic
#D786EC #ECD786 #86ECD7
tetradic
#D786EC #ECA486 #9BEC86 #86CEEC
square
#D786EC #ECA486 #9BEC86 #86CEEC
split-complementary
#D786EC #CEEC86 #86ECA4
monochromatic
#B122D6 #C651E4 #D786EC #E8BBF4 #F6E5FB
Accessibility & contrast
On white
2.47
#D786EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.51
#D786EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786EC
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786EC | 1.00 | 2.47 | 8.51 | 8.51 |
| #FFFFFF | 2.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#769FF0
Deuteranopia (green-blind)
#8CA8E9
Tritanopia (blue-blind)
#D893AE
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #d786ec; /* rgb */ color: rgb(215, 134, 236); /* oklch */ color: oklch(74.1% 0.165 319.2);
Tailwind
colors: {
custom: {
50: '#e5abf2',
500: '#d786ec',
950: '#000000',
},
}SCSS
$custom: #d786ec; $custom-light: #e5abf2; $custom-dark: #000000;
JSON
{
"hex": "#d786ec",
"rgb": {
"r": 215,
"g": 134,
"b": 236
},
"hsl": {
"h": 287.647,
"s": 72.857,
"l": 72.549
},
"oklch": {
"l": 0.74083,
"c": 0.16459,
"h": 319.2
},
"luminance": 0.37553
}Semantic roles & 50–950 ramp
primary
#D786EC
secondary
#DEF3D8
accent
#D51139
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85