#A166B7#A166B7
#A166B7 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 60.5% C 0.134 H 316.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #A166B7 |
|---|---|
| RGB | rgb(161, 102, 183) |
| HSL | hsl(284, 36%, 56%) |
| HSV | hsv(284, 44%, 72%) |
| CMYK | cmyk(12%, 44.3%, 0%, 28.2%) |
| CIE-LAB | lab(52.40, 37.86, -33.52) |
| CIE-LCH | lch(52.40, 50.56, 318.48°) |
| OKLab | oklab(60.51% 0.0972 -0.0927) |
| OKLCH | oklch(60.51% 0.134 316.4) |
| XYZ | xyz(27.9953, 20.4995, 47.2726) |
| Luminance | 0.2050 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 3.23
Amethyst
#9B5FC0
ΔE00 3.55
Deep Lilac
#966EBD
ΔE00 3.90
Dark Lilac
#9C6DA5
ΔE00 5.00
Deep Lavender
#8D5EB7
ΔE00 5.38
Mediumorchid
#BA55D3
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A166B7 #7CB766
analogous
#7866B7 #A166B7 #B766A4
triadic
#A166B7 #B7A166 #66B7A1
tetradic
#A166B7 #B77866 #7CB766 #66A4B7
square
#A166B7 #B77866 #7CB766 #66A4B7
split-complementary
#A166B7 #A4B766 #66B778
monochromatic
#5F346F #824898 #A166B7 #BB90CB #D4B9DE
Accessibility & contrast
On white
4.12
#A166B7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#A166B7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A166B7
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A166B7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A166B7 | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5879BA
Deuteranopia (green-blind)
#687FB5
Tritanopia (blue-blind)
#A07186
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #a166b7; /* rgb */ color: rgb(161, 102, 183); /* oklch */ color: oklch(60.5% 0.134 316.4);
Tailwind
colors: {
custom: {
50: '#be93cd',
500: '#a166b7',
950: '#000000',
},
}SCSS
$custom: #a166b7; $custom-light: #be93cd; $custom-dark: #000000;
JSON
{
"hex": "#a166b7",
"rgb": {
"r": 161,
"g": 102,
"b": 183
},
"hsl": {
"h": 283.704,
"s": 36,
"l": 55.882
},
"oklch": {
"l": 0.6051,
"c": 0.13431,
"h": 316.4
},
"luminance": 0.20499
}Semantic roles & 50–950 ramp
primary
#A166B7
secondary
#B5CDAC
accent
#CC5C7A
background
#FBF9FC
surface
#F7F1F9
border
#D0CBD2
text
#120D13
muted
#817E82