#8A52C7#8A52C7
#8A52C7 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.8% C 0.177 H 303.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52C7 |
|---|---|
| RGB | rgb(138, 82, 199) |
| HSL | hsl(269, 51%, 55%) |
| HSV | hsv(269, 59%, 78%) |
| CMYK | cmyk(30.7%, 58.8%, 0%, 22%) |
| CIE-LAB | lab(46.39, 46.23, -52.45) |
| CIE-LCH | lch(46.39, 69.92, 311.40°) |
| OKLab | oklab(55.76% 0.097 -0.1483) |
| OKLCH | oklch(55.76% 0.177 303.2) |
| XYZ | xyz(23.8050, 15.5614, 55.7713) |
| Luminance | 0.1556 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.69
Purpley
#8756E4
ΔE00 4.76
Royal Purple
#7851A9
ΔE00 5.62
Amethyst
#9B5FC0
ΔE00 5.75
Darkorchid
#9932CC
ΔE00 6.23
Lightish Purple
#A552E6
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52C7 #8FC752
analogous
#5254C7 #8A52C7 #C552C7
triadic
#8A52C7 #C78A52 #52C78A
tetradic
#8A52C7 #C75254 #8FC752 #52C7C5
square
#8A52C7 #C75254 #8FC752 #52C7C5
split-complementary
#8A52C7 #C7C552 #54C752
monochromatic
#4E2778 #6C36A6 #8A52C7 #A980D6 #C9AEE5
Accessibility & contrast
On white
5.11
#8A52C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#8A52C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52C7
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52C7 | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A6DCB
Deuteranopia (green-blind)
#356EC4
Tritanopia (blue-blind)
#7F6A85
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8a52c7; /* rgb */ color: rgb(138, 82, 199); /* oklch */ color: oklch(55.8% 0.177 303.2);
Tailwind
colors: {
custom: {
50: '#b085d9',
500: '#8a52c7',
950: '#000000',
},
}SCSS
$custom: #8a52c7; $custom-light: #b085d9; $custom-dark: #000000;
JSON
{
"hex": "#8a52c7",
"rgb": {
"r": 138,
"g": 82,
"b": 199
},
"hsl": {
"h": 268.718,
"s": 51.092,
"l": 55.098
},
"oklch": {
"l": 0.55757,
"c": 0.17723,
"h": 303.2
},
"luminance": 0.15561
}Semantic roles & 50–950 ramp
primary
#8A52C7
secondary
#BBD3A2
accent
#DB4D97
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83