#D171F5#D171F5
#D171F5 is a light, highly saturated purple. Relative luminance 0.320; OKLCH L 70.8% C 0.204 H 316.0°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #D171F5 |
|---|---|
| RGB | rgb(209, 113, 245) |
| HSL | hsl(284, 87%, 70%) |
| HSV | hsv(284, 54%, 96%) |
| CMYK | cmyk(14.7%, 53.9%, 0%, 3.9%) |
| CIE-LAB | lab(63.31, 58.19, -50.94) |
| CIE-LCH | lch(63.31, 77.33, 318.80°) |
| OKLab | oklab(70.82% 0.147 -0.1421) |
| OKLCH | oklch(70.82% 0.204 316) |
| XYZ | xyz(48.6785, 31.9597, 89.9731) |
| Luminance | 0.3196 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.45
Easter Purple
#C071FE
ΔE00 3.78
Bright Lilac
#C95EFB
ΔE00 4.43
Bright Lavender
#C760FF
ΔE00 4.53
Heliotrope
#D94FF5
ΔE00 5.63
Light Urple
#B36FF6
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D171F5 #95F571
analogous
#8F71F5 #D171F5 #F571D7
triadic
#D171F5 #F5D171 #71F5D1
tetradic
#D171F5 #F58F71 #95F571 #71D7F5
square
#D171F5 #F58F71 #95F571 #71D7F5
split-complementary
#D171F5 #D7F571 #71F58F
monochromatic
#A410DC #BE38F1 #D171F5 #E4AAF9 #F6E2FD
Accessibility & contrast
On white
2.84
#D171F5 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.39
#D171F5 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D171F5
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D171F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D171F5 | 1.00 | 2.84 | 7.39 | 7.39 |
| #FFFFFF | 2.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5293F9
Deuteranopia (green-blind)
#729CF2
Tritanopia (blue-blind)
#CF86A9
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d171f5; /* rgb */ color: rgb(209, 113, 245); /* oklch */ color: oklch(70.8% 0.204 316.0);
Tailwind
colors: {
custom: {
50: '#e29df9',
500: '#d171f5',
950: '#000000',
},
}SCSS
$custom: #d171f5; $custom-light: #e29df9; $custom-dark: #000000;
JSON
{
"hex": "#d171f5",
"rgb": {
"r": 209,
"g": 113,
"b": 245
},
"hsl": {
"h": 283.636,
"s": 86.842,
"l": 70.196
},
"oklch": {
"l": 0.7082,
"c": 0.20445,
"h": 316
},
"luminance": 0.31958
}Semantic roles & 50–950 ramp
primary
#D171F5
secondary
#D9F3CF
accent
#E30240
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85