#A172E5#A172E5
#A172E5 is a light, vivid violet. Relative luminance 0.253; OKLCH L 64.9% C 0.170 H 300.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #A172E5 |
|---|---|
| RGB | rgb(161, 114, 229) |
| HSL | hsl(265, 69%, 67%) |
| HSV | hsv(265, 50%, 90%) |
| CMYK | cmyk(29.7%, 50.2%, 0%, 10.2%) |
| CIE-LAB | lab(57.34, 41.78, -51.86) |
| CIE-LCH | lch(57.34, 66.60, 308.86°) |
| OKLab | oklab(64.95% 0.0865 -0.146) |
| OKLCH | oklch(64.95% 0.17 300.6) |
| XYZ | xyz(34.8548, 25.2687, 77.1546) |
| Luminance | 0.2527 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.92
Light Urple
#B36FF6
ΔE00 3.74
Light Purple
#BF77F6
ΔE00 5.74
Easter Purple
#C071FE
ΔE00 5.95
Lighter Purple
#A55AF4
ΔE00 6.00
Deep Lilac
#966EBD
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172E5 #B6E572
analogous
#727DE5 #A172E5 #DB72E5
triadic
#A172E5 #E5A172 #72E5A1
tetradic
#A172E5 #E5727D #B6E572 #72E5DB
square
#A172E5 #E5727D #B6E572 #72E5DB
split-complementary
#A172E5 #E5DB72 #7DE572
monochromatic
#6022BA #7F3EDB #A172E5 #C3A6EF #E6D9F8
Accessibility & contrast
On white
3.47
#A172E5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.05
#A172E5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172E5
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172E5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172E5 | 1.00 | 3.47 | 6.05 | 6.05 |
| #FFFFFF | 3.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B89E9
Deuteranopia (green-blind)
#5889E2
Tritanopia (blue-blind)
#9488A1
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #a172e5; /* rgb */ color: rgb(161, 114, 229); /* oklch */ color: oklch(64.9% 0.170 300.6);
Tailwind
colors: {
custom: {
50: '#c09cee',
500: '#a172e5',
950: '#000000',
},
}SCSS
$custom: #a172e5; $custom-light: #c09cee; $custom-dark: #000000;
JSON
{
"hex": "#a172e5",
"rgb": {
"r": 161,
"g": 114,
"b": 229
},
"hsl": {
"h": 264.522,
"s": 68.862,
"l": 67.255
},
"oklch": {
"l": 0.64948,
"c": 0.16972,
"h": 300.6
},
"luminance": 0.25269
}Semantic roles & 50–950 ramp
primary
#A172E5
secondary
#DDECC7
accent
#D11584
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84