#D172F0#D172F0
#D172F0 is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.7% C 0.198 H 317.2°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #D172F0 |
|---|---|
| RGB | rgb(209, 114, 240) |
| HSL | hsl(285, 81%, 69%) |
| HSV | hsv(285, 53%, 94%) |
| CMYK | cmyk(12.9%, 52.5%, 0%, 5.9%) |
| CIE-LAB | lab(63.25, 56.70, -48.28) |
| CIE-LCH | lch(63.25, 74.47, 319.59°) |
| OKLab | oklab(70.69% 0.1453 -0.1343) |
| OKLCH | oklch(70.69% 0.198 317.2) |
| XYZ | xyz(48.0377, 31.8829, 86.0447) |
| Luminance | 0.3188 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.82
Easter Purple
#C071FE
ΔE00 4.39
Bright Lilac
#C95EFB
ΔE00 4.94
Bright Lavender
#C760FF
ΔE00 5.13
Orchid
#DA70D6
ΔE00 5.34
Heliotrope
#D94FF5
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D172F0 #91F072
analogous
#9272F0 #D172F0 #F072D0
triadic
#D172F0 #F0D172 #72F0D1
tetradic
#D172F0 #F09272 #91F072 #72D0F0
square
#D172F0 #F09272 #91F072 #72D0F0
split-complementary
#D172F0 #D0F072 #72F092
monochromatic
#A316D1 #BF3BEA #D172F0 #E3A9F6 #F5E1FC
Accessibility & contrast
On white
2.85
#D172F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.38
#D172F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D172F0
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D172F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D172F0 | 1.00 | 2.85 | 7.38 | 7.38 |
| #FFFFFF | 2.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5793F4
Deuteranopia (green-blind)
#769CED
Tritanopia (blue-blind)
#D085A7
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d172f0; /* rgb */ color: rgb(209, 114, 240); /* oklch */ color: oklch(70.7% 0.198 317.2);
Tailwind
colors: {
custom: {
50: '#e29ef5',
500: '#d172f0',
950: '#000000',
},
}SCSS
$custom: #d172f0; $custom-light: #e29ef5; $custom-dark: #000000;
JSON
{
"hex": "#d172f0",
"rgb": {
"r": 209,
"g": 114,
"b": 240
},
"hsl": {
"h": 285.238,
"s": 80.769,
"l": 69.412
},
"oklch": {
"l": 0.70692,
"c": 0.19789,
"h": 317.2
},
"luminance": 0.31881
}Semantic roles & 50–950 ramp
primary
#D172F0
secondary
#D6F1CD
accent
#DD083D
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85