#A171E7#A171E7
#A171E7 is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.9% C 0.174 H 300.4°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #A171E7 |
|---|---|
| RGB | rgb(161, 113, 231) |
| HSL | hsl(264, 71%, 67%) |
| HSV | hsv(264, 51%, 91%) |
| CMYK | cmyk(30.3%, 51.1%, 0%, 9.4%) |
| CIE-LAB | lab(57.23, 42.83, -53.15) |
| CIE-LCH | lch(57.23, 68.26, 308.86°) |
| OKLab | oklab(64.9% 0.0879 -0.1498) |
| OKLCH | oklch(64.9% 0.174 300.4) |
| XYZ | xyz(35.0235, 25.1567, 78.5964) |
| Luminance | 0.2516 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.00
Light Urple
#B36FF6
ΔE00 3.57
Lighter Purple
#A55AF4
ΔE00 5.65
Light Purple
#BF77F6
ΔE00 5.76
Easter Purple
#C071FE
ΔE00 5.85
Deep Lilac
#966EBD
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A171E7 #B7E771
analogous
#717CE7 #A171E7 #DC71E7
triadic
#A171E7 #E7A171 #71E7A1
tetradic
#A171E7 #E7717C #B7E771 #71E7DC
square
#A171E7 #E7717C #B7E771 #71E7DC
split-complementary
#A171E7 #E7DC71 #7CE771
monochromatic
#6020BE #7E3DDE #A171E7 #C4A5F0 #E6DAF9
Accessibility & contrast
On white
3.48
#A171E7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.03
#A171E7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A171E7
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A171E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A171E7 | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4889EB
Deuteranopia (green-blind)
#5589E4
Tritanopia (blue-blind)
#9387A1
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #a171e7; /* rgb */ color: rgb(161, 113, 231); /* oklch */ color: oklch(64.9% 0.174 300.4);
Tailwind
colors: {
custom: {
50: '#c09bef',
500: '#a171e7',
950: '#000000',
},
}SCSS
$custom: #a171e7; $custom-light: #c09bef; $custom-dark: #000000;
JSON
{
"hex": "#a171e7",
"rgb": {
"r": 161,
"g": 113,
"b": 231
},
"hsl": {
"h": 264.407,
"s": 71.084,
"l": 67.451
},
"oklch": {
"l": 0.64902,
"c": 0.17371,
"h": 300.4
},
"luminance": 0.25157
}Semantic roles & 50–950 ramp
primary
#A171E7
secondary
#DDECC7
accent
#D31285
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84