#E172F8#E172F8
#E172F8 is a light, highly saturated purple. Relative luminance 0.348; OKLCH L 73.0% C 0.213 H 320.5°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).
Color values
| HEX | #E172F8 |
|---|---|
| RGB | rgb(225, 114, 248) |
| HSL | hsl(290, 91%, 71%) |
| HSV | hsv(290, 54%, 97%) |
| CMYK | cmyk(9.3%, 54%, 0%, 2.7%) |
| CIE-LAB | lab(65.61, 62.38, -48.83) |
| CIE-LCH | lch(65.61, 79.21, 321.95°) |
| OKLab | oklab(72.98% 0.1645 -0.1355) |
| OKLCH | oklch(72.98% 0.213 320.5) |
| XYZ | xyz(54.0099, 34.8218, 92.6651) |
| Luminance | 0.3482 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet Pink
#FB5FFC
ΔE00 4.21
Light Magenta
#FA5FF7
ΔE00 4.32
Purply Pink
#F075E6
ΔE00 4.90
Violet (CSS)
#EE82EE
ΔE00 5.13
Orchid
#DA70D6
ΔE00 5.36
Light Purple
#BF77F6
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#E172F8 #89F872
analogous
#9E72F8 #E172F8 #F872CC
triadic
#E172F8 #F8E172 #72F8E1
tetradic
#E172F8 #F89E72 #89F872 #72CCF8
square
#E172F8 #F89E72 #89F872 #72CCF8
split-complementary
#E172F8 #CCF872 #72F89E
monochromatic
#BF0BE4 #D538F5 #E172F8 #EDACFB #F9E2FE
Accessibility & contrast
On white
2.64
#E172F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.96
#E172F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #E172F8
7.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##E172F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##E172F8 | 1.00 | 2.64 | 7.96 | 7.96 |
| #FFFFFF | 2.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5997FC
Deuteranopia (green-blind)
#7EA3F4
Tritanopia (blue-blind)
#E385AB
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #e172f8; /* rgb */ color: rgb(225, 114, 248); /* oklch */ color: oklch(73.0% 0.213 320.5);
Tailwind
colors: {
custom: {
50: '#ed9ffb',
500: '#e172f8',
950: '#000000',
},
}SCSS
$custom: #e172f8; $custom-light: #ed9ffb; $custom-dark: #000000;
JSON
{
"hex": "#e172f8",
"rgb": {
"r": 225,
"g": 114,
"b": 248
},
"hsl": {
"h": 289.701,
"s": 90.541,
"l": 70.98
},
"oklch": {
"l": 0.72977,
"c": 0.21312,
"h": 320.5
},
"luminance": 0.34819
}Semantic roles & 50–950 ramp
primary
#E172F8
secondary
#D7F5D1
accent
#E60027
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#170F17
muted
#857F85