#8E52BC#8E52BC
#8E52BC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.5% C 0.166 H 308.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8E52BC |
|---|---|
| RGB | rgb(142, 82, 188) |
| HSL | hsl(274, 44%, 53%) |
| HSV | hsv(274, 56%, 74%) |
| CMYK | cmyk(24.5%, 56.4%, 0%, 26.3%) |
| CIE-LAB | lab(46.20, 44.59, -46.36) |
| CIE-LCH | lch(46.20, 64.32, 313.89°) |
| OKLab | oklab(55.51% 0.102 -0.1304) |
| OKLCH | oklch(55.51% 0.166 308) |
| XYZ | xyz(23.2479, 15.4165, 49.3182) |
| Luminance | 0.1542 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.54
Amethyst
#9B5FC0
ΔE00 4.72
Purply
#983FB2
ΔE00 4.96
Royal Purple
#7851A9
ΔE00 5.00
Darkorchid
#9932CC
ΔE00 6.35
Purpley
#8756E4
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E52BC #80BC52
analogous
#5952BC #8E52BC #BC52B5
triadic
#8E52BC #BC8E52 #52BC8E
tetradic
#8E52BC #BC5952 #80BC52 #52B5BC
square
#8E52BC #BC5952 #80BC52 #52B5BC
split-complementary
#8E52BC #B5BC52 #52BC59
monochromatic
#4E296A #6E3A97 #8E52BC #AB7ECD #C8AADE
Accessibility & contrast
On white
5.14
#8E52BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#8E52BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E52BC
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E52BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E52BC | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E6BBF
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#87667F
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8e52bc; /* rgb */ color: rgb(142, 82, 188); /* oklch */ color: oklch(55.5% 0.166 308.0);
Tailwind
colors: {
custom: {
50: '#b285d1',
500: '#8e52bc',
950: '#000000',
},
}SCSS
$custom: #8e52bc; $custom-light: #b285d1; $custom-dark: #000000;
JSON
{
"hex": "#8e52bc",
"rgb": {
"r": 142,
"g": 82,
"b": 188
},
"hsl": {
"h": 273.962,
"s": 44.167,
"l": 52.941
},
"oklch": {
"l": 0.55506,
"c": 0.16554,
"h": 308
},
"luminance": 0.15416
}Semantic roles & 50–950 ramp
primary
#8E52BC
secondary
#B2CC9E
accent
#D4548B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82