#8A52CD#8A52CD
#8A52CD is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.2% C 0.184 H 301.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52CD |
|---|---|
| RGB | rgb(138, 82, 205) |
| HSL | hsl(267, 55%, 56%) |
| HSV | hsv(267, 60%, 80%) |
| CMYK | cmyk(32.7%, 60%, 0%, 19.6%) |
| CIE-LAB | lab(46.77, 47.71, -55.30) |
| CIE-LCH | lch(46.77, 73.03, 310.79°) |
| OKLab | oklab(56.15% 0.0969 -0.1567) |
| OKLCH | oklch(56.15% 0.184 301.7) |
| XYZ | xyz(24.5154, 15.8456, 59.5127) |
| Luminance | 0.1585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.82
Deep Lavender
#8D5EB7
ΔE00 5.35
Lightish Purple
#A552E6
ΔE00 5.87
Light Indigo
#6D5ACF
ΔE00 6.14
Amethyst
#9B5FC0
ΔE00 6.15
Darkorchid
#9932CC
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52CD #95CD52
analogous
#5258CD #8A52CD #C852CD
triadic
#8A52CD #CD8A52 #52CD8A
tetradic
#8A52CD #CD5258 #95CD52 #52CDC8
square
#8A52CD #CD5258 #95CD52 #52CDC8
split-complementary
#8A52CD #CDC852 #58CD52
monochromatic
#4E2580 #6B33AF #8A52CD #AA81DB #CAB1E8
Accessibility & contrast
On white
5.04
#8A52CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#8A52CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52CD
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52CD | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#086ED1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#7D6C88
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a52cd; /* rgb */ color: rgb(138, 82, 205); /* oklch */ color: oklch(56.2% 0.184 301.7);
Tailwind
colors: {
custom: {
50: '#b085dd',
500: '#8a52cd',
950: '#000000',
},
}SCSS
$custom: #8a52cd; $custom-light: #b085dd; $custom-dark: #000000;
JSON
{
"hex": "#8a52cd",
"rgb": {
"r": 138,
"g": 82,
"b": 205
},
"hsl": {
"h": 267.317,
"s": 55.157,
"l": 56.275
},
"oklch": {
"l": 0.56153,
"c": 0.18424,
"h": 301.7
},
"luminance": 0.15846
}Semantic roles & 50–950 ramp
primary
#8A52CD
secondary
#C0D7A4
accent
#DE499B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83