#8A52BC#8A52BC
#8A52BC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.164 H 306.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52BC |
|---|---|
| RGB | rgb(138, 82, 188) |
| HSL | hsl(272, 44%, 53%) |
| HSV | hsv(272, 56%, 74%) |
| CMYK | cmyk(26.6%, 56.4%, 0%, 26.3%) |
| CIE-LAB | lab(45.73, 43.57, -47.13) |
| CIE-LCH | lch(45.73, 64.19, 312.75°) |
| OKLab | oklab(55.06% 0.0969 -0.1328) |
| OKLCH | oklch(55.06% 0.164 306.1) |
| XYZ | xyz(22.5737, 15.0689, 49.2866) |
| Luminance | 0.1507 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.75
Royal Purple
#7851A9
ΔE00 4.39
Amethyst
#9B5FC0
ΔE00 5.32
Purply
#983FB2
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 6.47
Purpley
#8756E4
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52BC #84BC52
analogous
#5552BC #8A52BC #BC52B9
triadic
#8A52BC #BC8A52 #52BC8A
tetradic
#8A52BC #BC5552 #84BC52 #52B9BC
square
#8A52BC #BC5552 #84BC52 #52B9BC
split-complementary
#8A52BC #B9BC52 #52BC55
monochromatic
#4C296A #6B3A97 #8A52BC #A87ECD #C6AADE
Accessibility & contrast
On white
5.23
#8A52BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#8A52BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52BC
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52BC | 1.00 | 5.23 | 4.01 | 5.23 |
| #FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B6ABF
Deuteranopia (green-blind)
#406DB9
Tritanopia (blue-blind)
#82667F
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a52bc; /* rgb */ color: rgb(138, 82, 188); /* oklch */ color: oklch(55.1% 0.164 306.1);
Tailwind
colors: {
custom: {
50: '#af85d1',
500: '#8a52bc',
950: '#000000',
},
}SCSS
$custom: #8a52bc; $custom-light: #af85d1; $custom-dark: #000000;
JSON
{
"hex": "#8a52bc",
"rgb": {
"r": 138,
"g": 82,
"b": 188
},
"hsl": {
"h": 271.698,
"s": 44.167,
"l": 52.941
},
"oklch": {
"l": 0.55056,
"c": 0.16435,
"h": 306.1
},
"luminance": 0.15069
}Semantic roles & 50–950 ramp
primary
#8A52BC
secondary
#B4CC9E
accent
#D45490
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82