#8A52E2#8A52E2
#8A52E2 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.209 H 297.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52E2 |
|---|---|
| RGB | rgb(138, 82, 226) |
| HSL | hsl(263, 71%, 60%) |
| HSV | hsv(263, 64%, 89%) |
| CMYK | cmyk(38.9%, 63.7%, 0%, 11.4%) |
| CIE-LAB | lab(48.17, 52.99, -65.02) |
| CIE-LCH | lch(48.17, 83.88, 309.18°) |
| OKLab | oklab(57.61% 0.0956 -0.1853) |
| OKLCH | oklch(57.61% 0.209 297.3) |
| XYZ | xyz(27.2225, 16.9284, 73.7700) |
| Luminance | 0.1693 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.16
Lightish Purple
#A552E6
ΔE00 4.98
Light Indigo
#6D5ACF
ΔE00 6.02
Lighter Purple
#A55AF4
ΔE00 6.07
Slate Blue
#6A5ACD
ΔE00 6.63
Mediumslateblue
#7B68EE
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52E2 #AAE252
analogous
#5262E2 #8A52E2 #D252E2
triadic
#8A52E2 #E28A52 #52E28A
tetradic
#8A52E2 #E25262 #AAE252 #52E2D2
square
#8A52E2 #E25262 #AAE252 #52E2D2
split-complementary
#8A52E2 #E2D252 #62E252
monochromatic
#4E1B9F #6823D3 #8A52E2 #AD86EB #D1BBF4
Accessibility & contrast
On white
4.79
#8A52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#8A52E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52E2
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52E2 | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0071DF
Tritanopia (blue-blind)
#757393
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #8a52e2; /* rgb */ color: rgb(138, 82, 226); /* oklch */ color: oklch(57.6% 0.209 297.3);
Tailwind
colors: {
custom: {
50: '#b286ec',
500: '#8a52e2',
950: '#000000',
},
}SCSS
$custom: #8a52e2; $custom-light: #b286ec; $custom-dark: #000000;
JSON
{
"hex": "#8a52e2",
"rgb": {
"r": 138,
"g": 82,
"b": 226
},
"hsl": {
"h": 263.333,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.57613,
"c": 0.20851,
"h": 297.3
},
"luminance": 0.16929
}Semantic roles & 50–950 ramp
primary
#8A52E2
secondary
#CEE3AC
accent
#D31288
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84