#D166EC#D166EC
#D166EC is a light, highly saturated purple. Relative luminance 0.291; OKLCH L 68.9% C 0.212 H 319.1°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #D166EC |
|---|---|
| RGB | rgb(209, 102, 236) |
| HSL | hsl(288, 78%, 66%) |
| HSV | hsv(288, 57%, 93%) |
| CMYK | cmyk(11.4%, 56.8%, 0%, 7.5%) |
| CIE-LAB | lab(60.88, 61.69, -49.79) |
| CIE-LCH | lch(60.88, 79.28, 321.09°) |
| OKLab | oklab(68.89% 0.1603 -0.1387) |
| OKLCH | oklch(68.89% 0.212 319.1) |
| XYZ | xyz(46.1842, 29.1161, 82.5278) |
| Luminance | 0.2911 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Bright Lilac
#C95EFB
ΔE00 3.53
Heliotrope
#D94FF5
ΔE00 3.65
Bright Lavender
#C760FF
ΔE00 4.06
Easter Purple
#C071FE
ΔE00 4.98
Light Purple
#BF77F6
ΔE00 5.04
Orchid
#DA70D6
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D166EC #81EC66
analogous
#8E66EC #D166EC #EC66C4
triadic
#D166EC #ECD166 #66ECD1
tetradic
#D166EC #EC8E66 #81EC66 #66C4EC
square
#D166EC #EC8E66 #81EC66 #66C4EC
split-complementary
#D166EC #C4EC66 #66EC8E
monochromatic
#9E18C0 #C130E5 #D166EC #E19CF3 #F2D3FA
Accessibility & contrast
On white
3.08
#D166EC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.82
#D166EC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #D166EC
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D166EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D166EC | 1.00 | 3.08 | 6.82 | 6.82 |
| #FFFFFF | 3.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#488CF0
Deuteranopia (green-blind)
#6E97E8
Tritanopia (blue-blind)
#D17BA0
Achromatopsia (no color)
#939393
Design tokens & code
CSS
--color: #d166ec; /* rgb */ color: rgb(209, 102, 236); /* oklch */ color: oklch(68.9% 0.212 319.1);
Tailwind
colors: {
custom: {
50: '#e297f3',
500: '#d166ec',
950: '#000000',
},
}SCSS
$custom: #d166ec; $custom-light: #e297f3; $custom-dark: #000000;
JSON
{
"hex": "#d166ec",
"rgb": {
"r": 209,
"g": 102,
"b": 236
},
"hsl": {
"h": 287.91,
"s": 77.907,
"l": 66.275
},
"oklch": {
"l": 0.68894,
"c": 0.21199,
"h": 319.1
},
"luminance": 0.29114
}Semantic roles & 50–950 ramp
primary
#D166EC
secondary
#CAEDC1
accent
#DA0B35
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E17
muted
#847E85