#A166B2#A166B2
#A166B2 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 60.3% C 0.129 H 318.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #A166B2 |
|---|---|
| RGB | rgb(161, 102, 178) |
| HSL | hsl(287, 33%, 55%) |
| HSV | hsv(287, 43%, 70%) |
| CMYK | cmyk(9.6%, 42.7%, 0%, 30.2%) |
| CIE-LAB | lab(52.17, 36.80, -30.98) |
| CIE-LCH | lch(52.17, 48.11, 319.91°) |
| OKLab | oklab(60.27% 0.0963 -0.0854) |
| OKLCH | oklch(60.27% 0.129 318.4) |
| XYZ | xyz(27.4841, 20.2950, 44.5804) |
| Luminance | 0.2029 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 2.90
Dark Lilac
#9C6DA5
ΔE00 4.11
Amethyst
#9B5FC0
ΔE00 4.42
Deep Lilac
#966EBD
ΔE00 4.53
Deep Lavender
#8D5EB7
ΔE00 5.90
Wisteria
#A87DC2
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A166B2 #77B266
analogous
#7B66B2 #A166B2 #B2669D
triadic
#A166B2 #B2A166 #66B2A1
tetradic
#A166B2 #B27B66 #77B266 #669DB2
square
#A166B2 #B27B66 #77B266 #669DB2
split-complementary
#A166B2 #9DB266 #66B27B
monochromatic
#5D3569 #814992 #A166B2 #BA8FC6 #D3B7DB
Accessibility & contrast
On white
4.15
#A166B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#A166B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A166B2
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A166B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A166B2 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A78B5
Deuteranopia (green-blind)
#6A7EB0
Tritanopia (blue-blind)
#A17083
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #a166b2; /* rgb */ color: rgb(161, 102, 178); /* oklch */ color: oklch(60.3% 0.129 318.4);
Tailwind
colors: {
custom: {
50: '#be93c9',
500: '#a166b2',
950: '#000000',
},
}SCSS
$custom: #a166b2; $custom-light: #be93c9; $custom-dark: #000000;
JSON
{
"hex": "#a166b2",
"rgb": {
"r": 161,
"g": 102,
"b": 178
},
"hsl": {
"h": 286.579,
"s": 33.043,
"l": 54.902
},
"oklch": {
"l": 0.60265,
"c": 0.12869,
"h": 318.4
},
"luminance": 0.20294
}Semantic roles & 50–950 ramp
primary
#A166B2
secondary
#B1CAAA
accent
#C95F76
background
#FBF9FC
surface
#F7F1F8
border
#D0CBD1
text
#120D13
muted
#817E82