#A171CD#A171CD
#A171CD is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.5% C 0.142 H 306.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #A171CD |
|---|---|
| RGB | rgb(161, 113, 205) |
| HSL | hsl(271, 48%, 62%) |
| HSV | hsv(271, 45%, 80%) |
| CMYK | cmyk(21.5%, 44.9%, 0%, 19.6%) |
| CIE-LAB | lab(55.88, 36.62, -40.64) |
| CIE-LCH | lch(55.88, 54.71, 312.02°) |
| OKLab | oklab(63.46% 0.085 -0.1133) |
| OKLCH | oklch(63.46% 0.142 306.9) |
| XYZ | xyz(31.6203, 23.7954, 60.6729) |
| Luminance | 0.2379 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.29
Mediumpurple
#9370DB
ΔE00 4.56
Wisteria
#A87DC2
ΔE00 5.22
Soft Purple
#A66FB5
ΔE00 5.53
Amethyst
#9B5FC0
ΔE00 5.54
Light Urple
#B36FF6
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A171CD #9DCD71
analogous
#7371CD #A171CD #CD71CB
triadic
#A171CD #CDA171 #71CDA1
tetradic
#A171CD #CD7371 #9DCD71 #71CBCD
square
#A171CD #CD7371 #9DCD71 #71CBCD
split-complementary
#A171CD #CBCD71 #71CD73
monochromatic
#643391 #8344BD #A171CD #BF9EDD #DDCCED
Accessibility & contrast
On white
3.65
#A171CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.76
#A171CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A171CD
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A171CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A171CD | 1.00 | 3.65 | 5.76 | 5.76 |
| #FFFFFF | 3.65 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A84D0
Deuteranopia (green-blind)
#6686CB
Tritanopia (blue-blind)
#9B8095
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #a171cd; /* rgb */ color: rgb(161, 113, 205); /* oklch */ color: oklch(63.5% 0.142 306.9);
Tailwind
colors: {
custom: {
50: '#be9bdc',
500: '#a171cd',
950: '#000000',
},
}SCSS
$custom: #a171cd; $custom-light: #be9bdc; $custom-dark: #000000;
JSON
{
"hex": "#a171cd",
"rgb": {
"r": 161,
"g": 113,
"b": 205
},
"hsl": {
"h": 271.304,
"s": 47.917,
"l": 62.353
},
"oklch": {
"l": 0.63461,
"c": 0.14167,
"h": 306.9
},
"luminance": 0.23795
}Semantic roles & 50–950 ramp
primary
#A171CD
secondary
#CCDEBC
accent
#BB2A70
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83