#8E52D4#8E52D4
#8E52D4 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.1% C 0.193 H 301.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #8E52D4 |
|---|---|
| RGB | rgb(142, 82, 212) |
| HSL | hsl(268, 60%, 58%) |
| HSV | hsv(268, 61%, 83%) |
| CMYK | cmyk(33%, 61.3%, 0%, 16.9%) |
| CIE-LAB | lab(47.67, 50.34, -57.83) |
| CIE-LCH | lch(47.67, 76.68, 311.04°) |
| OKLab | oklab(57.06% 0.1019 -0.164) |
| OKLCH | oklch(57.06% 0.193 301.8) |
| XYZ | xyz(26.0535, 16.5388, 64.0943) |
| Luminance | 0.1654 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.09
Lightish Purple
#A552E6
ΔE00 4.76
Deep Lavender
#8D5EB7
ΔE00 5.92
Amethyst
#9B5FC0
ΔE00 6.15
Darkorchid
#9932CC
ΔE00 6.42
Light Indigo
#6D5ACF
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E52D4 #98D452
analogous
#5257D4 #8E52D4 #CF52D4
triadic
#8E52D4 #D48E52 #52D48E
tetradic
#8E52D4 #D45257 #98D452 #52D4CF
square
#8E52D4 #D45257 #98D452 #52D4CF
split-complementary
#8E52D4 #D4CF52 #57D452
monochromatic
#522289 #6F2EBA #8E52D4 #AE83E0 #CEB4EC
Accessibility & contrast
On white
4.87
#8E52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#8E52D4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E52D4
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E52D4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E52D4 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#2971D1
Tritanopia (blue-blind)
#806E8B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #8e52d4; /* rgb */ color: rgb(142, 82, 212); /* oklch */ color: oklch(57.1% 0.193 301.8);
Tailwind
colors: {
custom: {
50: '#b386e2',
500: '#8e52d4',
950: '#000000',
},
}SCSS
$custom: #8e52d4; $custom-light: #b386e2; $custom-dark: #000000;
JSON
{
"hex": "#8e52d4",
"rgb": {
"r": 142,
"g": 82,
"b": 212
},
"hsl": {
"h": 267.692,
"s": 60.185,
"l": 57.647
},
"oklch": {
"l": 0.57055,
"c": 0.19309,
"h": 301.8
},
"luminance": 0.16539
}Semantic roles & 50–950 ramp
primary
#8E52D4
secondary
#C3DBA7
accent
#E3449A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83