#A172E2#A172E2
#A172E2 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.8% C 0.166 H 301.3°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #A172E2 |
|---|---|
| RGB | rgb(161, 114, 226) |
| HSL | hsl(265, 66%, 67%) |
| HSV | hsv(265, 50%, 89%) |
| CMYK | cmyk(28.8%, 49.6%, 0%, 11.4%) |
| CIE-LAB | lab(57.18, 41.05, -50.44) |
| CIE-LCH | lch(57.18, 65.03, 309.14°) |
| OKLab | oklab(64.78% 0.0862 -0.1419) |
| OKLCH | oklch(64.78% 0.166 301.3) |
| XYZ | xyz(34.4396, 25.1026, 74.9677) |
| Luminance | 0.2510 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.84
Light Urple
#B36FF6
ΔE00 3.98
Light Purple
#BF77F6
ΔE00 5.84
Easter Purple
#C071FE
ΔE00 6.14
Lighter Purple
#A55AF4
ΔE00 6.18
Deep Lilac
#966EBD
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172E2 #B3E272
analogous
#727BE2 #A172E2 #D972E2
triadic
#A172E2 #E2A172 #72E2A1
tetradic
#A172E2 #E2727B #B3E272 #72E2D9
square
#A172E2 #E2727B #B3E272 #72E2D9
split-complementary
#A172E2 #E2D972 #7BE272
monochromatic
#6125B4 #7F3FD8 #A172E2 #C3A5EC #E5D8F7
Accessibility & contrast
On white
3.49
#A172E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.02
#A172E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172E2
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172E2 | 1.00 | 3.49 | 6.02 | 6.02 |
| #FFFFFF | 3.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E89E6
Deuteranopia (green-blind)
#5A89DF
Tritanopia (blue-blind)
#9587A0
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #a172e2; /* rgb */ color: rgb(161, 114, 226); /* oklch */ color: oklch(64.8% 0.166 301.3);
Tailwind
colors: {
custom: {
50: '#c09beb',
500: '#a172e2',
950: '#000000',
},
}SCSS
$custom: #a172e2; $custom-light: #c09beb; $custom-dark: #000000;
JSON
{
"hex": "#a172e2",
"rgb": {
"r": 161,
"g": 114,
"b": 226
},
"hsl": {
"h": 265.179,
"s": 65.882,
"l": 66.667
},
"oklch": {
"l": 0.64776,
"c": 0.16601,
"h": 301.3
},
"luminance": 0.25103
}Semantic roles & 50–950 ramp
primary
#A172E2
secondary
#DBEAC6
accent
#CE1881
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84