#A171FB#A171FB
#A171FB is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.198 H 296.7°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #A171FB |
|---|---|
| RGB | rgb(161, 113, 251) |
| HSL | hsl(261, 95%, 71%) |
| HSV | hsv(261, 55%, 98%) |
| CMYK | cmyk(35.9%, 55%, 0%, 1.6%) |
| CIE-LAB | lab(58.37, 47.82, -62.44) |
| CIE-LCH | lch(58.37, 78.65, 307.45°) |
| OKLab | oklab(66.11% 0.0889 -0.177) |
| OKLCH | oklch(66.11% 0.198 296.7) |
| XYZ | xyz(38.0112, 26.3518, 94.3318) |
| Luminance | 0.2635 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.62
Mediumpurple
#9370DB
ΔE00 4.98
Easter Purple
#C071FE
ΔE00 5.56
Lighter Purple
#A55AF4
ΔE00 5.62
Light Purple
#BF77F6
ΔE00 6.08
Periwinkle (survey)
#8E82FE
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A171FB #CBFB71
analogous
#7186FB #A171FB #E671FB
triadic
#A171FB #FBA171 #71FBA1
tetradic
#A171FB #FB7186 #CBFB71 #71FBE6
square
#A171FB #FB7186 #CBFB71 #71FBE6
split-complementary
#A171FB #FBE671 #86FB71
monochromatic
#5607EB #7A35F9 #A171FB #C8ADFD #EBE1FE
Accessibility & contrast
On white
3.35
#A171FB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#A171FB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A171FB
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A171FB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A171FB | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#318DFF
Deuteranopia (green-blind)
#418BF8
Tritanopia (blue-blind)
#8C8DAB
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a171fb; /* rgb */ color: rgb(161, 113, 251); /* oklch */ color: oklch(66.1% 0.198 296.7);
Tailwind
colors: {
custom: {
50: '#c19bfd',
500: '#a171fb',
950: '#000000',
},
}SCSS
$custom: #a171fb; $custom-light: #c19bfd; $custom-dark: #000000;
JSON
{
"hex": "#a171fb",
"rgb": {
"r": 161,
"g": 113,
"b": 251
},
"hsl": {
"h": 260.87,
"s": 94.521,
"l": 71.373
},
"oklch": {
"l": 0.66115,
"c": 0.19808,
"h": 296.7
},
"luminance": 0.26352
}Semantic roles & 50–950 ramp
primary
#A171FB
secondary
#E9F6D2
accent
#E60096
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86