#D172EC#D172EC
#D172EC is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.5% C 0.194 H 318.4°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #D172EC |
|---|---|
| RGB | rgb(209, 114, 236) |
| HSL | hsl(287, 76%, 69%) |
| HSV | hsv(287, 52%, 93%) |
| CMYK | cmyk(11.4%, 51.7%, 0%, 7.5%) |
| CIE-LAB | lab(63.05, 55.91, -46.37) |
| CIE-LCH | lch(63.05, 72.64, 320.33°) |
| OKLab | oklab(70.48% 0.1449 -0.1288) |
| OKLCH | oklch(70.48% 0.194 318.4) |
| XYZ | xyz(47.4501, 31.6478, 82.9498) |
| Luminance | 0.3165 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.24
Orchid
#DA70D6
ΔE00 4.73
Easter Purple
#C071FE
ΔE00 4.91
Bright Lilac
#C95EFB
ΔE00 5.28
Bright Lavender
#C760FF
ΔE00 5.54
Heliotrope
#D94FF5
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D172EC #8DEC72
analogous
#9472EC #D172EC #EC72CA
triadic
#D172EC #ECD172 #72ECD1
tetradic
#D172EC #EC9472 #8DEC72 #72CAEC
square
#D172EC #EC9472 #8DEC72 #72CAEC
split-complementary
#D172EC #CAEC72 #72EC94
monochromatic
#A21BC9 #BF3CE5 #D172EC #E3A8F3 #F4DEFB
Accessibility & contrast
On white
2.87
#D172EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.33
#D172EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D172EC
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D172EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D172EC | 1.00 | 2.87 | 7.33 | 7.33 |
| #FFFFFF | 2.87 | 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)
#5A92F0
Deuteranopia (green-blind)
#789CE9
Tritanopia (blue-blind)
#D184A5
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d172ec; /* rgb */ color: rgb(209, 114, 236); /* oklch */ color: oklch(70.5% 0.194 318.4);
Tailwind
colors: {
custom: {
50: '#e19ef2',
500: '#d172ec',
950: '#000000',
},
}SCSS
$custom: #d172ec; $custom-light: #e19ef2; $custom-dark: #000000;
JSON
{
"hex": "#d172ec",
"rgb": {
"r": 209,
"g": 114,
"b": 236
},
"hsl": {
"h": 286.721,
"s": 76.25,
"l": 68.627
},
"oklch": {
"l": 0.70484,
"c": 0.19389,
"h": 318.4
},
"luminance": 0.31646
}Semantic roles & 50–950 ramp
primary
#D172EC
secondary
#D3EFCB
accent
#D80D3A
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85