#8A52BB#8A52BB
#8A52BB is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.163 H 306.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52BB |
|---|---|
| RGB | rgb(138, 82, 187) |
| HSL | hsl(272, 44%, 53%) |
| HSV | hsv(272, 56%, 73%) |
| CMYK | cmyk(26.2%, 56.1%, 0%, 26.7%) |
| CIE-LAB | lab(45.67, 43.33, -46.65) |
| CIE-LCH | lch(45.67, 63.67, 312.89°) |
| OKLab | oklab(54.99% 0.0968 -0.1313) |
| OKLCH | oklch(54.99% 0.163 306.4) |
| XYZ | xyz(22.4663, 15.0259, 48.7208) |
| Luminance | 0.1503 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.69
Royal Purple
#7851A9
ΔE00 4.30
Purply
#983FB2
ΔE00 5.28
Amethyst
#9B5FC0
ΔE00 5.31
Darkorchid
#9932CC
ΔE00 6.52
Purpley
#8756E4
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52BB #83BB52
analogous
#5652BB #8A52BB #BB52B7
triadic
#8A52BB #BB8A52 #52BB8A
tetradic
#8A52BB #BB5652 #83BB52 #52B7BB
square
#8A52BB #BB5652 #83BB52 #52B7BB
split-complementary
#8A52BB #B7BB52 #52BB56
monochromatic
#4B2969 #6B3B95 #8A52BB #A87ECC #C5AADE
Accessibility & contrast
On white
5.24
#8A52BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#8A52BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52BB
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52BB | 1.00 | 5.24 | 4.01 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#416DB8
Tritanopia (blue-blind)
#82667F
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a52bb; /* rgb */ color: rgb(138, 82, 187); /* oklch */ color: oklch(55.0% 0.163 306.4);
Tailwind
colors: {
custom: {
50: '#af85d0',
500: '#8a52bb',
950: '#000000',
},
}SCSS
$custom: #8a52bb; $custom-light: #af85d0; $custom-dark: #000000;
JSON
{
"hex": "#8a52bb",
"rgb": {
"r": 138,
"g": 82,
"b": 187
},
"hsl": {
"h": 272,
"s": 43.568,
"l": 52.745
},
"oklch": {
"l": 0.54994,
"c": 0.16317,
"h": 306.4
},
"luminance": 0.15026
}Semantic roles & 50–950 ramp
primary
#8A52BB
secondary
#B3CB9E
accent
#D35490
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82