#D170F2#D170F2
#D170F2 is a light, highly saturated purple. Relative luminance 0.316; OKLCH L 70.5% C 0.203 H 316.9°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).
Color values
| HEX | #D170F2 |
|---|---|
| RGB | rgb(209, 112, 242) |
| HSL | hsl(285, 83%, 69%) |
| HSV | hsv(285, 54%, 95%) |
| CMYK | cmyk(13.6%, 53.7%, 0%, 5.1%) |
| CIE-LAB | lab(62.97, 58.08, -49.81) |
| CIE-LCH | lch(62.97, 76.51, 319.38°) |
| OKLab | oklab(70.52% 0.1481 -0.1388) |
| OKLCH | oklch(70.52% 0.203 316.9) |
| XYZ | xyz(48.1133, 31.5561, 87.5437) |
| Luminance | 0.3155 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.71
Easter Purple
#C071FE
ΔE00 4.08
Bright Lilac
#C95EFB
ΔE00 4.43
Bright Lavender
#C760FF
ΔE00 4.62
Heliotrope
#D94FF5
ΔE00 5.43
Orchid
#DA70D6
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D170F2 #91F270
analogous
#9070F2 #D170F2 #F270D2
triadic
#D170F2 #F2D170 #70F2D1
tetradic
#D170F2 #F29070 #91F270 #70D2F2
square
#D170F2 #F29070 #91F270 #70D2F2
split-complementary
#D170F2 #D2F270 #70F290
monochromatic
#A313D4 #BF38ED #D170F2 #E3A8F7 #F5E0FC
Accessibility & contrast
On white
2.87
#D170F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.31
#D170F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D170F2
7.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D170F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D170F2 | 1.00 | 2.87 | 7.31 | 7.31 |
| #FFFFFF | 2.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5392F6
Deuteranopia (green-blind)
#739BEF
Tritanopia (blue-blind)
#D084A7
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #d170f2; /* rgb */ color: rgb(209, 112, 242); /* oklch */ color: oklch(70.5% 0.203 316.9);
Tailwind
colors: {
custom: {
50: '#e29df7',
500: '#d170f2',
950: '#000000',
},
}SCSS
$custom: #d170f2; $custom-light: #e29df7; $custom-dark: #000000;
JSON
{
"hex": "#d170f2",
"rgb": {
"r": 209,
"g": 112,
"b": 242
},
"hsl": {
"h": 284.769,
"s": 83.333,
"l": 69.412
},
"oklch": {
"l": 0.70524,
"c": 0.20295,
"h": 316.9
},
"luminance": 0.31554
}Semantic roles & 50–950 ramp
primary
#D170F2
secondary
#D6F2CC
accent
#E0063D
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85