#8B52CD#8B52CD
#8B52CD is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.184 H 302.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8B52CD |
|---|---|
| RGB | rgb(139, 82, 205) |
| HSL | hsl(268, 55%, 56%) |
| HSV | hsv(268, 60%, 80%) |
| CMYK | cmyk(32.2%, 60%, 0%, 19.6%) |
| CIE-LAB | lab(46.88, 47.94, -55.11) |
| CIE-LCH | lch(46.88, 73.04, 311.02°) |
| OKLab | oklab(56.26% 0.0982 -0.1561) |
| OKLCH | oklch(56.26% 0.184 302.2) |
| XYZ | xyz(24.6816, 15.9313, 59.5205) |
| Luminance | 0.1593 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.88
Deep Lavender
#8D5EB7
ΔE00 5.28
Lightish Purple
#A552E6
ΔE00 5.72
Amethyst
#9B5FC0
ΔE00 5.99
Darkorchid
#9932CC
ΔE00 6.27
Light Indigo
#6D5ACF
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B52CD #94CD52
analogous
#5257CD #8B52CD #C952CD
triadic
#8B52CD #CD8B52 #52CD8B
tetradic
#8B52CD #CD5257 #94CD52 #52CDC9
square
#8B52CD #CD5257 #94CD52 #52CDC9
split-complementary
#8B52CD #CDC952 #57CD52
monochromatic
#4F2580 #6C33AF #8B52CD #AB81DB #CBB1E8
Accessibility & contrast
On white
5.02
#8B52CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#8B52CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B52CD
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B52CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B52CD | 1.00 | 5.02 | 4.19 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A6ED1
Deuteranopia (green-blind)
#2F6FCA
Tritanopia (blue-blind)
#7E6B88
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8b52cd; /* rgb */ color: rgb(139, 82, 205); /* oklch */ color: oklch(56.3% 0.184 302.2);
Tailwind
colors: {
custom: {
50: '#b185dd',
500: '#8b52cd',
950: '#000000',
},
}SCSS
$custom: #8b52cd; $custom-light: #b185dd; $custom-dark: #000000;
JSON
{
"hex": "#8b52cd",
"rgb": {
"r": 139,
"g": 82,
"b": 205
},
"hsl": {
"h": 267.805,
"s": 55.157,
"l": 56.275
},
"oklch": {
"l": 0.56261,
"c": 0.18444,
"h": 302.2
},
"luminance": 0.15931
}Semantic roles & 50–950 ramp
primary
#8B52CD
secondary
#BFD7A4
accent
#DE4999
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83