#8A66A2#8A66A2
#8A66A2 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 57.0% C 0.098 H 311.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #8A66A2 |
|---|---|
| RGB | rgb(138, 102, 162) |
| HSL | hsl(276, 24%, 52%) |
| HSV | hsv(276, 37%, 64%) |
| CMYK | cmyk(14.8%, 37%, 0%, 36.5%) |
| CIE-LAB | lab(48.90, 26.09, -26.92) |
| CIE-LCH | lch(48.90, 37.49, 314.10°) |
| OKLab | oklab(56.99% 0.0646 -0.0742) |
| OKLCH | oklch(56.99% 0.098 311) |
| XYZ | xyz(21.7530, 17.5150, 36.4102) |
| Luminance | 0.1752 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Lavender
#856798
ΔE00 2.69
Dark Lilac
#9C6DA5
ΔE00 4.90
Faded Purple
#916E99
ΔE00 5.13
Deep Lavender
#8D5EB7
ΔE00 5.63
Deep Lilac
#966EBD
ΔE00 5.81
Dusty Purple
#825F87
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A66A2 #7EA266
analogous
#6C66A2 #8A66A2 #A2669C
triadic
#8A66A2 #A28A66 #66A28A
tetradic
#8A66A2 #A26C66 #7EA266 #669CA2
square
#8A66A2 #A26C66 #7EA266 #669CA2
split-complementary
#8A66A2 #9CA266 #66A26C
monochromatic
#4A3658 #6A4D7E #8A66A2 #A78CB9 #C4B2D0
Accessibility & contrast
On white
4.66
#8A66A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.50
#8A66A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #8A66A2
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A66A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A66A2 | 1.00 | 4.66 | 4.50 | 4.66 |
| #FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B72A4
Deuteranopia (green-blind)
#6375A0
Tritanopia (blue-blind)
#886E7C
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #8a66a2; /* rgb */ color: rgb(138, 102, 162); /* oklch */ color: oklch(57.0% 0.098 311.0);
Tailwind
colors: {
custom: {
50: '#ad92bd',
500: '#8a66a2',
950: '#000000',
},
}SCSS
$custom: #8a66a2; $custom-light: #ad92bd; $custom-dark: #000000;
JSON
{
"hex": "#8a66a2",
"rgb": {
"r": 138,
"g": 102,
"b": 162
},
"hsl": {
"h": 276,
"s": 24.39,
"l": 51.765
},
"oklch": {
"l": 0.56993,
"c": 0.09839,
"h": 311
},
"luminance": 0.17515
}Semantic roles & 50–950 ramp
primary
#8A66A2
secondary
#AFBFA5
accent
#C1678B
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D12
muted
#7F7E81