#8A52AA#8A52AA
#8A52AA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.0% C 0.143 H 311.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52AA |
|---|---|
| RGB | rgb(138, 82, 170) |
| HSL | hsl(278, 35%, 49%) |
| HSV | hsv(278, 52%, 67%) |
| CMYK | cmyk(18.8%, 51.8%, 0%, 33.3%) |
| CIE-LAB | lab(44.72, 39.37, -38.19) |
| CIE-LCH | lch(44.72, 54.85, 315.87°) |
| OKLab | oklab(53.98% 0.0957 -0.1067) |
| OKLCH | oklch(53.98% 0.143 311.9) |
| XYZ | xyz(20.7529, 14.3406, 39.6972) |
| Luminance | 0.1434 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.05
Deep Lavender
#8D5EB7
ΔE00 4.06
Purply
#983FB2
ΔE00 4.90
Medium Purple
#9E43A2
ΔE00 5.70
Amethyst
#9B5FC0
ΔE00 5.96
Ugly Purple
#A442A0
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52AA #72AA52
analogous
#5E52AA #8A52AA #AA529E
triadic
#8A52AA #AA8A52 #52AA8A
tetradic
#8A52AA #AA5E52 #72AA52 #529EAA
square
#8A52AA #AA5E52 #72AA52 #529EAA
split-complementary
#8A52AA #9EAA52 #52AA5E
monochromatic
#472A57 #683E81 #8A52AA #A67ABF #C2A4D3
Accessibility & contrast
On white
5.43
#8A52AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#8A52AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52AA
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52AA | 1.00 | 5.43 | 3.87 | 5.43 |
| #FFFFFF | 5.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#4D6BA8
Tritanopia (blue-blind)
#876076
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a52aa; /* rgb */ color: rgb(138, 82, 170); /* oklch */ color: oklch(54.0% 0.143 311.9);
Tailwind
colors: {
custom: {
50: '#ae84c4',
500: '#8a52aa',
950: '#000000',
},
}SCSS
$custom: #8a52aa; $custom-light: #ae84c4; $custom-dark: #000000;
JSON
{
"hex": "#8a52aa",
"rgb": {
"r": 138,
"g": 82,
"b": 170
},
"hsl": {
"h": 278.182,
"s": 34.921,
"l": 49.412
},
"oklch": {
"l": 0.53983,
"c": 0.14327,
"h": 311.9
},
"luminance": 0.1434
}Semantic roles & 50–950 ramp
primary
#8A52AA
secondary
#A6C098
accent
#CB5D85
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#100B12
muted
#7F7C81