#A166E7#A166E7
#A166E7 is a light, vivid violet. Relative luminance 0.228; OKLCH L 63.2% C 0.190 H 302.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #A166E7 |
|---|---|
| RGB | rgb(161, 102, 231) |
| HSL | hsl(267, 73%, 65%) |
| HSV | hsv(267, 56%, 91%) |
| CMYK | cmyk(30.3%, 55.8%, 0%, 9.4%) |
| CIE-LAB | lab(54.92, 48.81, -56.85) |
| CIE-LCH | lch(54.92, 74.92, 310.65°) |
| OKLab | oklab(63.2% 0.1019 -0.1606) |
| OKLCH | oklch(63.2% 0.19 302.4) |
| XYZ | xyz(33.8698, 22.8493, 78.2118) |
| Luminance | 0.2285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 3.07
Mediumpurple
#9370DB
ΔE00 4.00
Light Urple
#B36FF6
ΔE00 4.36
Lightish Purple
#A552E6
ΔE00 4.58
Easter Purple
#C071FE
ΔE00 6.66
Amethyst
#9B5FC0
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A166E7 #ACE766
analogous
#666BE7 #A166E7 #E166E7
triadic
#A166E7 #E7A166 #66E7A1
tetradic
#A166E7 #E7666B #ACE766 #66E7E1
square
#A166E7 #E7666B #ACE766 #66E7E1
split-complementary
#A166E7 #E7E166 #6BE766
monochromatic
#631DB6 #8031DF #A166E7 #C29BEF #E2D0F8
Accessibility & contrast
On white
3.77
#A166E7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.57
#A166E7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A166E7
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A166E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A166E7 | 1.00 | 3.77 | 5.57 | 5.57 |
| #FFFFFF | 3.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.57 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.57 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3182EB
Deuteranopia (green-blind)
#4783E4
Tritanopia (blue-blind)
#947F9D
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #a166e7; /* rgb */ color: rgb(161, 102, 231); /* oklch */ color: oklch(63.2% 0.190 302.4);
Tailwind
colors: {
custom: {
50: '#c094ef',
500: '#a166e7',
950: '#000000',
},
}SCSS
$custom: #a166e7; $custom-light: #c094ef; $custom-dark: #000000;
JSON
{
"hex": "#a166e7",
"rgb": {
"r": 161,
"g": 102,
"b": 231
},
"hsl": {
"h": 267.442,
"s": 72.881,
"l": 65.294
},
"oklch": {
"l": 0.63196,
"c": 0.19018,
"h": 302.4
},
"luminance": 0.22849
}Semantic roles & 50–950 ramp
primary
#A166E7
secondary
#D6EABF
accent
#D5117B
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130D16
muted
#827E84