#8A52B1#8A52B1
#8A52B1 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.151 H 309.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52B1 |
|---|---|
| RGB | rgb(138, 82, 177) |
| HSL | hsl(275, 38%, 51%) |
| HSV | hsv(275, 54%, 69%) |
| CMYK | cmyk(22%, 53.7%, 0%, 30.6%) |
| CIE-LAB | lab(45.10, 40.98, -41.71) |
| CIE-LCH | lch(45.10, 58.47, 314.49°) |
| OKLab | oklab(54.39% 0.0963 -0.1169) |
| OKLCH | oklch(54.39% 0.151 309.5) |
| XYZ | xyz(21.4328, 14.6125, 43.2779) |
| Luminance | 0.1461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.58
Royal Purple
#7851A9
ΔE00 3.82
Purply
#983FB2
ΔE00 4.81
Amethyst
#9B5FC0
ΔE00 5.49
Medium Purple
#9E43A2
ΔE00 6.42
Darkorchid
#9932CC
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52B1 #79B152
analogous
#5A52B1 #8A52B1 #B152A9
triadic
#8A52B1 #B18A52 #52B18A
tetradic
#8A52B1 #B15A52 #79B152 #52A9B1
square
#8A52B1 #B15A52 #79B152 #52A9B1
split-complementary
#8A52B1 #A9B152 #52B15A
monochromatic
#492A5E #6A3D88 #8A52B1 #A77CC4 #C3A6D7
Accessibility & contrast
On white
5.35
#8A52B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#8A52B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52B1
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52B1 | 1.00 | 5.35 | 3.92 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3668B4
Deuteranopia (green-blind)
#496CAF
Tritanopia (blue-blind)
#85637A
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a52b1; /* rgb */ color: rgb(138, 82, 177); /* oklch */ color: oklch(54.4% 0.151 309.5);
Tailwind
colors: {
custom: {
50: '#ae85c9',
500: '#8a52b1',
950: '#000000',
},
}SCSS
$custom: #8a52b1; $custom-light: #ae85c9; $custom-dark: #000000;
JSON
{
"hex": "#8a52b1",
"rgb": {
"r": 138,
"g": 82,
"b": 177
},
"hsl": {
"h": 275.368,
"s": 37.849,
"l": 50.784
},
"oklch": {
"l": 0.54389,
"c": 0.15144,
"h": 309.5
},
"luminance": 0.14612
}Semantic roles & 50–950 ramp
primary
#8A52B1
secondary
#ACC49A
accent
#CE5A8A
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82