#8A52E4#8A52E4
#8A52E4 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.8% C 0.211 H 296.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52E4 |
|---|---|
| RGB | rgb(138, 82, 228) |
| HSL | hsl(263, 73%, 61%) |
| HSV | hsv(263, 64%, 89%) |
| CMYK | cmyk(39.5%, 64%, 0%, 10.6%) |
| CIE-LAB | lab(48.31, 53.50, -65.93) |
| CIE-LCH | lch(48.31, 84.90, 309.06°) |
| OKLab | oklab(57.76% 0.0954 -0.188) |
| OKLCH | oklch(57.76% 0.211 296.9) |
| XYZ | xyz(27.4985, 17.0388, 75.2238) |
| Luminance | 0.1704 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.06
Lightish Purple
#A552E6
ΔE00 4.98
Lighter Purple
#A55AF4
ΔE00 5.96
Light Indigo
#6D5ACF
ΔE00 6.10
Slate Blue
#6A5ACD
ΔE00 6.71
Mediumslateblue
#7B68EE
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52E4 #ACE452
analogous
#5263E4 #8A52E4 #D352E4
triadic
#8A52E4 #E48A52 #52E48A
tetradic
#8A52E4 #E45263 #ACE452 #52E4D3
square
#8A52E4 #E45263 #ACE452 #52E4D3
split-complementary
#8A52E4 #E4D352 #63E452
monochromatic
#4E19A2 #6722D7 #8A52E4 #AE87EC #D2BCF5
Accessibility & contrast
On white
4.76
#8A52E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#8A52E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52E4
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52E4 | 1.00 | 4.76 | 4.41 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#747494
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #8a52e4; /* rgb */ color: rgb(138, 82, 228); /* oklch */ color: oklch(57.8% 0.211 296.9);
Tailwind
colors: {
custom: {
50: '#b286ed',
500: '#8a52e4',
950: '#000000',
},
}SCSS
$custom: #8a52e4; $custom-light: #b286ed; $custom-dark: #000000;
JSON
{
"hex": "#8a52e4",
"rgb": {
"r": 138,
"g": 82,
"b": 228
},
"hsl": {
"h": 263.014,
"s": 73,
"l": 60.784
},
"oklch": {
"l": 0.57757,
"c": 0.21079,
"h": 296.9
},
"luminance": 0.17039
}Semantic roles & 50–950 ramp
primary
#8A52E4
secondary
#CFE5AD
accent
#D5108A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84