#D172EF#D172EF
#D172EF is a light, vivid purple. Relative luminance 0.318; OKLCH L 70.6% C 0.197 H 317.5°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).
Color values
| HEX | #D172EF |
|---|---|
| RGB | rgb(209, 114, 239) |
| HSL | hsl(286, 80%, 69%) |
| HSV | hsv(286, 52%, 94%) |
| CMYK | cmyk(12.6%, 52.3%, 0%, 6.3%) |
| CIE-LAB | lab(63.20, 56.50, -47.80) |
| CIE-LCH | lch(63.20, 74.01, 319.77°) |
| OKLab | oklab(70.64% 0.1452 -0.133) |
| OKLCH | oklch(70.64% 0.197 317.5) |
| XYZ | xyz(47.8896, 31.8236, 85.2645) |
| Luminance | 0.3182 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.92
Easter Purple
#C071FE
ΔE00 4.52
Bright Lilac
#C95EFB
ΔE00 5.02
Orchid
#DA70D6
ΔE00 5.19
Bright Lavender
#C760FF
ΔE00 5.22
Heliotrope
#D94FF5
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D172EF #90EF72
analogous
#9372EF #D172EF #EF72CF
triadic
#D172EF #EFD172 #72EFD1
tetradic
#D172EF #EF9372 #90EF72 #72CFEF
square
#D172EF #EF9372 #90EF72 #72CFEF
split-complementary
#D172EF #CFEF72 #72EF93
monochromatic
#A318CF #BF3BE9 #D172EF #E3A9F5 #F5E0FB
Accessibility & contrast
On white
2.85
#D172EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.36
#D172EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D172EF
7.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D172EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D172EF | 1.00 | 2.85 | 7.36 | 7.36 |
| #FFFFFF | 2.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5893F3
Deuteranopia (green-blind)
#769CEC
Tritanopia (blue-blind)
#D085A6
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d172ef; /* rgb */ color: rgb(209, 114, 239); /* oklch */ color: oklch(70.6% 0.197 317.5);
Tailwind
colors: {
custom: {
50: '#e19ef5',
500: '#d172ef',
950: '#000000',
},
}SCSS
$custom: #d172ef; $custom-light: #e19ef5; $custom-dark: #000000;
JSON
{
"hex": "#d172ef",
"rgb": {
"r": 209,
"g": 114,
"b": 239
},
"hsl": {
"h": 285.6,
"s": 79.618,
"l": 69.216
},
"oklch": {
"l": 0.7064,
"c": 0.19689,
"h": 317.5
},
"luminance": 0.31822
}Semantic roles & 50–950 ramp
primary
#D172EF
secondary
#D5F1CC
accent
#DC0A3C
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85