#A171F5#A171F5
#A171F5 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.191 H 297.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A171F5 |
|---|---|
| RGB | rgb(161, 113, 245) |
| HSL | hsl(262, 87%, 70%) |
| HSV | hsv(262, 54%, 96%) |
| CMYK | cmyk(34.3%, 53.9%, 0%, 3.9%) |
| CIE-LAB | lab(58.02, 46.31, -59.68) |
| CIE-LCH | lch(58.02, 75.54, 307.81°) |
| OKLab | oklab(65.74% 0.0887 -0.1689) |
| OKLCH | oklch(65.74% 0.191 297.7) |
| XYZ | xyz(37.0804, 25.9794, 89.4294) |
| Luminance | 0.2598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.36
Mediumpurple
#9370DB
ΔE00 4.29
Lighter Purple
#A55AF4
ΔE00 5.46
Easter Purple
#C071FE
ΔE00 5.50
Light Purple
#BF77F6
ΔE00 5.86
Periwinkle (survey)
#8E82FE
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A171F5 #C5F571
analogous
#7183F5 #A171F5 #E371F5
triadic
#A171F5 #F5A171 #71F5A1
tetradic
#A171F5 #F57183 #C5F571 #71F5E3
square
#A171F5 #F57183 #C5F571 #71F5E3
split-complementary
#A171F5 #F5E371 #83F571
monochromatic
#5A10DC #7B38F1 #A171F5 #C7AAF9 #ECE2FD
Accessibility & contrast
On white
3.39
#A171F5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.20
#A171F5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A171F5
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A171F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A171F5 | 1.00 | 3.39 | 6.20 | 6.20 |
| #FFFFFF | 3.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#398CF9
Deuteranopia (green-blind)
#488AF2
Tritanopia (blue-blind)
#8E8CA8
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #a171f5; /* rgb */ color: rgb(161, 113, 245); /* oklch */ color: oklch(65.7% 0.191 297.7);
Tailwind
colors: {
custom: {
50: '#c19bf9',
500: '#a171f5',
950: '#000000',
},
}SCSS
$custom: #a171f5; $custom-light: #c19bf9; $custom-dark: #000000;
JSON
{
"hex": "#a171f5",
"rgb": {
"r": 161,
"g": 113,
"b": 245
},
"hsl": {
"h": 261.818,
"s": 86.842,
"l": 70.196
},
"oklch": {
"l": 0.65742,
"c": 0.19081,
"h": 297.7
},
"luminance": 0.2598
}Semantic roles & 50–950 ramp
primary
#A171F5
secondary
#E6F3CF
accent
#E30291
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85