#A166E4#A166E4
#A166E4 is a light, vivid violet. Relative luminance 0.227; OKLCH L 63.0% C 0.187 H 303.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #A166E4 |
|---|---|
| RGB | rgb(161, 102, 228) |
| HSL | hsl(268, 70%, 65%) |
| HSV | hsv(268, 55%, 89%) |
| CMYK | cmyk(29.4%, 55.3%, 0%, 10.6%) |
| CIE-LAB | lab(54.74, 48.09, -55.44) |
| CIE-LCH | lch(54.74, 73.39, 310.94°) |
| OKLab | oklab(63.01% 0.1018 -0.1565) |
| OKLCH | oklch(63.01% 0.187 303) |
| XYZ | xyz(33.4497, 22.6813, 75.9994) |
| Luminance | 0.2268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 3.32
Mediumpurple
#9370DB
ΔE00 3.92
Lightish Purple
#A552E6
ΔE00 4.54
Light Urple
#B36FF6
ΔE00 4.54
Amethyst
#9B5FC0
ΔE00 6.25
Purpley
#8756E4
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A166E4 #A9E466
analogous
#666AE4 #A166E4 #E066E4
triadic
#A166E4 #E4A166 #66E4A1
tetradic
#A166E4 #E4666A #A9E466 #66E4E0
square
#A166E4 #E4666A #A9E466 #66E4E0
split-complementary
#A166E4 #E4E066 #6AE466
monochromatic
#631FB0 #8132DB #A166E4 #C19AED #E1CEF6
Accessibility & contrast
On white
3.79
#A166E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#A166E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A166E4
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A166E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A166E4 | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3582E8
Deuteranopia (green-blind)
#4A83E1
Tritanopia (blue-blind)
#957E9B
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #a166e4; /* rgb */ color: rgb(161, 102, 228); /* oklch */ color: oklch(63.0% 0.187 303.0);
Tailwind
colors: {
custom: {
50: '#c094ed',
500: '#a166e4',
950: '#000000',
},
}SCSS
$custom: #a166e4; $custom-light: #c094ed; $custom-dark: #000000;
JSON
{
"hex": "#a166e4",
"rgb": {
"r": 161,
"g": 102,
"b": 228
},
"hsl": {
"h": 268.095,
"s": 70,
"l": 64.706
},
"oklch": {
"l": 0.63011,
"c": 0.18668,
"h": 303
},
"luminance": 0.22681
}Semantic roles & 50–950 ramp
primary
#A166E4
secondary
#D4E9BD
accent
#D21479
background
#FCF9FE
surface
#F8F1FD
border
#D1CBD5
text
#130D16
muted
#827E84