#8A52B0#8A52B0
#8A52B0 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.3% C 0.150 H 309.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52B0 |
|---|---|
| RGB | rgb(138, 82, 176) |
| HSL | hsl(276, 37%, 51%) |
| HSV | hsv(276, 53%, 69%) |
| CMYK | cmyk(21.6%, 53.4%, 0%, 31%) |
| CIE-LAB | lab(45.04, 40.74, -41.21) |
| CIE-LCH | lch(45.04, 57.95, 314.68°) |
| OKLab | oklab(54.33% 0.0962 -0.1154) |
| OKLCH | oklch(54.33% 0.15 309.8) |
| XYZ | xyz(21.3335, 14.5728, 42.7549) |
| Luminance | 0.1457 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.62
Royal Purple
#7851A9
ΔE00 3.82
Purply
#983FB2
ΔE00 4.80
Amethyst
#9B5FC0
ΔE00 5.54
Medium Purple
#9E43A2
ΔE00 6.31
Darkorchid
#9932CC
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52B0 #78B052
analogous
#5B52B0 #8A52B0 #B052A7
triadic
#8A52B0 #B08A52 #52B08A
tetradic
#8A52B0 #B05B52 #78B052 #52A7B0
square
#8A52B0 #B05B52 #78B052 #52A7B0
split-complementary
#8A52B0 #A7B052 #52B05B
monochromatic
#492B5D #693E87 #8A52B0 #A67CC3 #C3A6D6
Accessibility & contrast
On white
5.36
#8A52B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#8A52B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52B0
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52B0 | 1.00 | 5.36 | 3.91 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3768B3
Deuteranopia (green-blind)
#496CAE
Tritanopia (blue-blind)
#856279
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a52b0; /* rgb */ color: rgb(138, 82, 176); /* oklch */ color: oklch(54.3% 0.150 309.8);
Tailwind
colors: {
custom: {
50: '#ae85c8',
500: '#8a52b0',
950: '#000000',
},
}SCSS
$custom: #8a52b0; $custom-light: #ae85c8; $custom-dark: #000000;
JSON
{
"hex": "#8a52b0",
"rgb": {
"r": 138,
"g": 82,
"b": 176
},
"hsl": {
"h": 275.745,
"s": 37.302,
"l": 50.588
},
"oklch": {
"l": 0.5433,
"c": 0.15028,
"h": 309.8
},
"luminance": 0.14572
}Semantic roles & 50–950 ramp
primary
#8A52B0
secondary
#ABC49A
accent
#CD5B89
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82