#A171FC#A171FC
#A171FC is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.2% C 0.199 H 296.5°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #A171FC |
|---|---|
| RGB | rgb(161, 113, 252) |
| HSL | hsl(261, 96%, 72%) |
| HSV | hsv(261, 55%, 99%) |
| CMYK | cmyk(36.1%, 55.2%, 0%, 1.2%) |
| CIE-LAB | lab(58.43, 48.07, -62.89) |
| CIE-LCH | lch(58.43, 79.16, 307.39°) |
| OKLab | oklab(66.18% 0.0889 -0.1784) |
| OKLCH | oklch(66.18% 0.199 296.5) |
| XYZ | xyz(38.1693, 26.4150, 95.1642) |
| Luminance | 0.2642 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.68
Mediumpurple
#9370DB
ΔE00 5.10
Easter Purple
#C071FE
ΔE00 5.58
Lighter Purple
#A55AF4
ΔE00 5.66
Light Purple
#BF77F6
ΔE00 6.12
Periwinkle (survey)
#8E82FE
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A171FC #CCFC71
analogous
#7187FC #A171FC #E671FC
triadic
#A171FC #FCA171 #71FCA1
tetradic
#A171FC #FC7187 #CCFC71 #71FCE6
square
#A171FC #FC7187 #CCFC71 #71FCE6
split-complementary
#A171FC #FCE671 #87FC71
monochromatic
#5505EE #7935FB #A171FC #C9ADFD #EBE1FE
Accessibility & contrast
On white
3.34
#A171FC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.28
#A171FC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A171FC
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A171FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A171FC | 1.00 | 3.34 | 6.28 | 6.28 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F8DFF
Deuteranopia (green-blind)
#408BF9
Tritanopia (blue-blind)
#8C8EAC
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a171fc; /* rgb */ color: rgb(161, 113, 252); /* oklch */ color: oklch(66.2% 0.199 296.5);
Tailwind
colors: {
custom: {
50: '#c19bfe',
500: '#a171fc',
950: '#000000',
},
}SCSS
$custom: #a171fc; $custom-light: #c19bfe; $custom-dark: #000000;
JSON
{
"hex": "#a171fc",
"rgb": {
"r": 161,
"g": 113,
"b": 252
},
"hsl": {
"h": 260.719,
"s": 95.862,
"l": 71.569
},
"oklch": {
"l": 0.66178,
"c": 0.19929,
"h": 296.5
},
"luminance": 0.26416
}Semantic roles & 50–950 ramp
primary
#A171FC
secondary
#EAF6D3
accent
#E60096
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86