#D171EF#D171EF
#D171EF is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.5% C 0.198 H 317.6°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #D171EF |
|---|---|
| RGB | rgb(209, 113, 239) |
| HSL | hsl(286, 80%, 69%) |
| HSV | hsv(286, 53%, 94%) |
| CMYK | cmyk(12.6%, 52.7%, 0%, 6.3%) |
| CIE-LAB | lab(63.01, 56.99, -48.09) |
| CIE-LCH | lch(63.01, 74.57, 319.84°) |
| OKLab | oklab(70.5% 0.1465 -0.1338) |
| OKLCH | oklch(70.5% 0.198 317.6) |
| XYZ | xyz(47.7774, 31.5993, 85.2272) |
| Luminance | 0.3160 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.94
Easter Purple
#C071FE
ΔE00 4.48
Bright Lilac
#C95EFB
ΔE00 4.84
Bright Lavender
#C760FF
ΔE00 5.06
Orchid
#DA70D6
ΔE00 5.21
Heliotrope
#D94FF5
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D171EF #8FEF71
analogous
#9271EF #D171EF #EF71CE
triadic
#D171EF #EFD171 #71EFD1
tetradic
#D171EF #EF9271 #8FEF71 #71CEEF
square
#D171EF #EF9271 #8FEF71 #71CEEF
split-complementary
#D171EF #CEEF71 #71EF92
monochromatic
#A317CE #BF3AE9 #D171EF #E3A8F5 #F5DFFB
Accessibility & contrast
On white
2.87
#D171EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.32
#D171EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D171EF
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D171EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D171EF | 1.00 | 2.87 | 7.32 | 7.32 |
| #FFFFFF | 2.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5692F3
Deuteranopia (green-blind)
#769CEC
Tritanopia (blue-blind)
#D084A6
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #d171ef; /* rgb */ color: rgb(209, 113, 239); /* oklch */ color: oklch(70.5% 0.198 317.6);
Tailwind
colors: {
custom: {
50: '#e29df5',
500: '#d171ef',
950: '#000000',
},
}SCSS
$custom: #d171ef; $custom-light: #e29df5; $custom-dark: #000000;
JSON
{
"hex": "#d171ef",
"rgb": {
"r": 209,
"g": 113,
"b": 239
},
"hsl": {
"h": 285.714,
"s": 79.747,
"l": 69.02
},
"oklch": {
"l": 0.70502,
"c": 0.19843,
"h": 317.6
},
"luminance": 0.31598
}Semantic roles & 50–950 ramp
primary
#D171EF
secondary
#D4F0CB
accent
#DC093C
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85