#D171F0#D171F0
#D171F0 is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.6% C 0.199 H 317.3°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #D171F0 |
|---|---|
| RGB | rgb(209, 113, 240) |
| HSL | hsl(285, 81%, 69%) |
| HSV | hsv(285, 53%, 94%) |
| CMYK | cmyk(12.9%, 52.9%, 0%, 5.9%) |
| CIE-LAB | lab(63.06, 57.19, -48.57) |
| CIE-LCH | lch(63.06, 75.03, 319.66°) |
| OKLab | oklab(70.56% 0.1466 -0.1352) |
| OKLCH | oklch(70.56% 0.199 317.3) |
| XYZ | xyz(47.9256, 31.6585, 86.0073) |
| Luminance | 0.3166 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.85
Easter Purple
#C071FE
ΔE00 4.35
Bright Lilac
#C95EFB
ΔE00 4.76
Bright Lavender
#C760FF
ΔE00 4.96
Orchid
#DA70D6
ΔE00 5.36
Heliotrope
#D94FF5
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D171F0 #90F071
analogous
#9271F0 #D171F0 #F071D0
triadic
#D171F0 #F0D171 #71F0D1
tetradic
#D171F0 #F09271 #90F071 #71D0F0
square
#D171F0 #F09271 #90F071 #71D0F0
split-complementary
#D171F0 #D0F071 #71F092
monochromatic
#A316D1 #BF3AEA #D171F0 #E3A8F6 #F5E0FC
Accessibility & contrast
On white
2.86
#D171F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.33
#D171F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D171F0
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D171F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D171F0 | 1.00 | 2.86 | 7.33 | 7.33 |
| #FFFFFF | 2.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5692F4
Deuteranopia (green-blind)
#759CED
Tritanopia (blue-blind)
#D084A6
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d171f0; /* rgb */ color: rgb(209, 113, 240); /* oklch */ color: oklch(70.6% 0.199 317.3);
Tailwind
colors: {
custom: {
50: '#e29df5',
500: '#d171f0',
950: '#000000',
},
}SCSS
$custom: #d171f0; $custom-light: #e29df5; $custom-dark: #000000;
JSON
{
"hex": "#d171f0",
"rgb": {
"r": 209,
"g": 113,
"b": 240
},
"hsl": {
"h": 285.354,
"s": 80.892,
"l": 69.216
},
"oklch": {
"l": 0.70555,
"c": 0.19943,
"h": 317.3
},
"luminance": 0.31657
}Semantic roles & 50–950 ramp
primary
#D171F0
secondary
#D5F1CC
accent
#DD083C
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85