#A171F8#A171F8
#A171F8 is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.9% C 0.194 H 297.2°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #A171F8 |
|---|---|
| RGB | rgb(161, 113, 248) |
| HSL | hsl(261, 91%, 71%) |
| HSV | hsv(261, 54%, 97%) |
| CMYK | cmyk(35.1%, 54.4%, 0%, 2.7%) |
| CIE-LAB | lab(58.19, 47.06, -61.06) |
| CIE-LCH | lch(58.19, 77.09, 307.62°) |
| OKLab | oklab(65.93% 0.0888 -0.173) |
| OKLCH | oklch(65.93% 0.194 297.2) |
| XYZ | xyz(37.5421, 26.1641, 91.8610) |
| Luminance | 0.2616 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.47
Mediumpurple
#9370DB
ΔE00 4.63
Easter Purple
#C071FE
ΔE00 5.52
Lighter Purple
#A55AF4
ΔE00 5.52
Light Purple
#BF77F6
ΔE00 5.96
Periwinkle (survey)
#8E82FE
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A171F8 #C8F871
analogous
#7184F8 #A171F8 #E471F8
triadic
#A171F8 #F8A171 #71F8A1
tetradic
#A171F8 #F87184 #C8F871 #71F8E4
square
#A171F8 #F87184 #C8F871 #71F8E4
split-complementary
#A171F8 #F8E471 #84F871
monochromatic
#580BE3 #7A37F5 #A171F8 #C8ABFB #ECE2FE
Accessibility & contrast
On white
3.37
#A171F8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.23
#A171F8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A171F8
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A171F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A171F8 | 1.00 | 3.37 | 6.23 | 6.23 |
| #FFFFFF | 3.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#358CFD
Deuteranopia (green-blind)
#458AF5
Tritanopia (blue-blind)
#8D8DAA
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a171f8; /* rgb */ color: rgb(161, 113, 248); /* oklch */ color: oklch(65.9% 0.194 297.2);
Tailwind
colors: {
custom: {
50: '#c19bfb',
500: '#a171f8',
950: '#000000',
},
}SCSS
$custom: #a171f8; $custom-light: #c19bfb; $custom-dark: #000000;
JSON
{
"hex": "#a171f8",
"rgb": {
"r": 161,
"g": 113,
"b": 248
},
"hsl": {
"h": 261.333,
"s": 90.604,
"l": 70.784
},
"oklch": {
"l": 0.65928,
"c": 0.19445,
"h": 297.2
},
"luminance": 0.26165
}Semantic roles & 50–950 ramp
primary
#A171F8
secondary
#E8F5D0
accent
#E60094
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85