#8A52C2#8A52C2
#8A52C2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.4% C 0.171 H 304.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52C2 |
|---|---|
| RGB | rgb(138, 82, 194) |
| HSL | hsl(270, 48%, 54%) |
| HSV | hsv(270, 58%, 76%) |
| CMYK | cmyk(28.9%, 57.7%, 0%, 23.9%) |
| CIE-LAB | lab(46.09, 45.01, -50.05) |
| CIE-LCH | lch(46.09, 67.31, 311.97°) |
| OKLab | oklab(55.43% 0.097 -0.1413) |
| OKLCH | oklch(55.43% 0.171 304.5) |
| XYZ | xyz(23.2340, 15.3330, 52.7640) |
| Luminance | 0.1533 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.20
Royal Purple
#7851A9
ΔE00 5.01
Amethyst
#9B5FC0
ΔE00 5.49
Purpley
#8756E4
ΔE00 5.57
Purply
#983FB2
ΔE00 5.90
Darkorchid
#9932CC
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52C2 #8AC252
analogous
#5252C2 #8A52C2 #C252C2
triadic
#8A52C2 #C28A52 #52C28A
tetradic
#8A52C2 #C25252 #8AC252 #52C2C2
square
#8A52C2 #C25252 #8AC252 #52C2C2
split-complementary
#8A52C2 #C2C252 #52C252
monochromatic
#4D2872 #6B389F #8A52C2 #A97FD2 #C7ACE2
Accessibility & contrast
On white
5.16
#8A52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#8A52C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52C2
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52C2 | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#236CC6
Deuteranopia (green-blind)
#3A6DBF
Tritanopia (blue-blind)
#806882
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8a52c2; /* rgb */ color: rgb(138, 82, 194); /* oklch */ color: oklch(55.4% 0.171 304.5);
Tailwind
colors: {
custom: {
50: '#af85d5',
500: '#8a52c2',
950: '#000000',
},
}SCSS
$custom: #8a52c2; $custom-light: #af85d5; $custom-dark: #000000;
JSON
{
"hex": "#8a52c2",
"rgb": {
"r": 138,
"g": 82,
"b": 194
},
"hsl": {
"h": 270,
"s": 47.863,
"l": 54.118
},
"oklch": {
"l": 0.55434,
"c": 0.17138,
"h": 304.5
},
"luminance": 0.15333
}Semantic roles & 50–950 ramp
primary
#8A52C2
secondary
#B8D0A0
accent
#D75094
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83