#D171EC#D171EC
#D171EC is a light, vivid purple. Relative luminance 0.314; OKLCH L 70.3% C 0.195 H 318.4°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #D171EC |
|---|---|
| RGB | rgb(209, 113, 236) |
| HSL | hsl(287, 76%, 68%) |
| HSV | hsv(287, 52%, 93%) |
| CMYK | cmyk(11.4%, 52.1%, 0%, 7.5%) |
| CIE-LAB | lab(62.86, 56.40, -46.66) |
| CIE-LCH | lch(62.86, 73.20, 320.40°) |
| OKLab | oklab(70.35% 0.1462 -0.1297) |
| OKLCH | oklch(70.35% 0.195 318.4) |
| XYZ | xyz(47.3379, 31.4235, 82.9124) |
| Luminance | 0.3142 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.26
Orchid
#DA70D6
ΔE00 4.75
Easter Purple
#C071FE
ΔE00 4.87
Bright Lilac
#C95EFB
ΔE00 5.11
Bright Lavender
#C760FF
ΔE00 5.38
Heliotrope
#D94FF5
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D171EC #8CEC71
analogous
#9371EC #D171EC #EC71CA
triadic
#D171EC #ECD171 #71ECD1
tetradic
#D171EC #EC9371 #8CEC71 #71CAEC
square
#D171EC #EC9371 #8CEC71 #71CAEC
split-complementary
#D171EC #CAEC71 #71EC93
monochromatic
#A21BC8 #C03BE5 #D171EC #E2A7F3 #F4DDFA
Accessibility & contrast
On white
2.88
#D171EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.28
#D171EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D171EC
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D171EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D171EC | 1.00 | 2.88 | 7.28 | 7.28 |
| #FFFFFF | 2.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5992F0
Deuteranopia (green-blind)
#779BE9
Tritanopia (blue-blind)
#D183A4
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #d171ec; /* rgb */ color: rgb(209, 113, 236); /* oklch */ color: oklch(70.3% 0.195 318.4);
Tailwind
colors: {
custom: {
50: '#e19df2',
500: '#d171ec',
950: '#000000',
},
}SCSS
$custom: #d171ec; $custom-light: #e19df2; $custom-dark: #000000;
JSON
{
"hex": "#d171ec",
"rgb": {
"r": 209,
"g": 113,
"b": 236
},
"hsl": {
"h": 286.829,
"s": 76.398,
"l": 68.431
},
"oklch": {
"l": 0.70346,
"c": 0.19544,
"h": 318.4
},
"luminance": 0.31422
}Semantic roles & 50–950 ramp
primary
#D171EC
secondary
#D2EFCA
accent
#D90D3A
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85