#8A52BF#8A52BF
#8A52BF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.168 H 305.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52BF |
|---|---|
| RGB | rgb(138, 82, 191) |
| HSL | hsl(271, 46%, 54%) |
| HSV | hsv(271, 57%, 75%) |
| CMYK | cmyk(27.7%, 57.1%, 0%, 25.1%) |
| CIE-LAB | lab(45.91, 44.29, -48.59) |
| CIE-LCH | lch(45.91, 65.75, 312.35°) |
| OKLab | oklab(55.24% 0.0969 -0.137) |
| OKLCH | oklch(55.24% 0.168 305.3) |
| XYZ | xyz(22.9005, 15.1996, 51.0075) |
| Luminance | 0.1520 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.95
Royal Purple
#7851A9
ΔE00 4.69
Amethyst
#9B5FC0
ΔE00 5.39
Purply
#983FB2
ΔE00 5.62
Purpley
#8756E4
ΔE00 6.07
Darkorchid
#9932CC
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52BF #87BF52
analogous
#5352BF #8A52BF #BF52BD
triadic
#8A52BF #BF8A52 #52BF8A
tetradic
#8A52BF #BF5352 #87BF52 #52BDBF
square
#8A52BF #BF5352 #87BF52 #52BDBF
split-complementary
#8A52BF #BDBF52 #52BF53
monochromatic
#4C296E #6B399B #8A52BF #A87FD0 #C6ABE0
Accessibility & contrast
On white
5.20
#8A52BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#8A52BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52BF
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52BF | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#286BC3
Deuteranopia (green-blind)
#3D6DBC
Tritanopia (blue-blind)
#816781
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8a52bf; /* rgb */ color: rgb(138, 82, 191); /* oklch */ color: oklch(55.2% 0.168 305.3);
Tailwind
colors: {
custom: {
50: '#af85d3',
500: '#8a52bf',
950: '#000000',
},
}SCSS
$custom: #8a52bf; $custom-light: #af85d3; $custom-dark: #000000;
JSON
{
"hex": "#8a52bf",
"rgb": {
"r": 138,
"g": 82,
"b": 191
},
"hsl": {
"h": 270.826,
"s": 45.992,
"l": 53.529
},
"oklch": {
"l": 0.55244,
"c": 0.16786,
"h": 305.3
},
"luminance": 0.15199
}Semantic roles & 50–950 ramp
primary
#8A52BF
secondary
#B6CE9F
accent
#D65292
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83