#D172F2#D172F2
#D172F2 is a light, vivid purple. Relative luminance 0.320; OKLCH L 70.8% C 0.200 H 316.7°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #D172F2 |
|---|---|
| RGB | rgb(209, 114, 242) |
| HSL | hsl(285, 83%, 70%) |
| HSV | hsv(285, 53%, 95%) |
| CMYK | cmyk(13.6%, 52.9%, 0%, 5.1%) |
| CIE-LAB | lab(63.34, 57.10, -49.22) |
| CIE-LCH | lch(63.34, 75.39, 319.23°) |
| OKLab | oklab(70.8% 0.1455 -0.1371) |
| OKLCH | oklch(70.8% 0.2 316.7) |
| XYZ | xyz(48.3365, 32.0024, 87.6181) |
| Luminance | 0.3200 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.64
Easter Purple
#C071FE
ΔE00 4.15
Bright Lilac
#C95EFB
ΔE00 4.80
Bright Lavender
#C760FF
ΔE00 4.94
Orchid
#DA70D6
ΔE00 5.65
Heliotrope
#D94FF5
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D172F2 #93F272
analogous
#9172F2 #D172F2 #F272D3
triadic
#D172F2 #F2D172 #72F2D1
tetradic
#D172F2 #F29172 #93F272 #72D3F2
square
#D172F2 #F29172 #93F272 #72D3F2
split-complementary
#D172F2 #D3F272 #72F291
monochromatic
#A414D6 #BF3AED #D172F2 #E3AAF7 #F6E2FC
Accessibility & contrast
On white
2.84
#D172F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.40
#D172F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D172F2
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D172F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D172F2 | 1.00 | 2.84 | 7.40 | 7.40 |
| #FFFFFF | 2.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5693F6
Deuteranopia (green-blind)
#759CEF
Tritanopia (blue-blind)
#D086A8
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d172f2; /* rgb */ color: rgb(209, 114, 242); /* oklch */ color: oklch(70.8% 0.200 316.7);
Tailwind
colors: {
custom: {
50: '#e29ef7',
500: '#d172f2',
950: '#000000',
},
}SCSS
$custom: #d172f2; $custom-light: #e29ef7; $custom-dark: #000000;
JSON
{
"hex": "#d172f2",
"rgb": {
"r": 209,
"g": 114,
"b": 242
},
"hsl": {
"h": 284.531,
"s": 83.117,
"l": 69.804
},
"oklch": {
"l": 0.70797,
"c": 0.19991,
"h": 316.7
},
"luminance": 0.32001
}Semantic roles & 50–950 ramp
primary
#D172F2
secondary
#D7F2CE
accent
#E0063E
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85