#522C8E#522C8E
#522C8E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.153 H 296.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #522C8E |
|---|---|
| RGB | rgb(82, 44, 142) |
| HSL | hsl(263, 53%, 36%) |
| HSV | hsv(263, 69%, 56%) |
| CMYK | cmyk(42.3%, 69%, 0%, 44.3%) |
| CIE-LAB | lab(28.24, 39.38, -48.07) |
| CIE-LCH | lch(28.24, 62.14, 309.33°) |
| OKLab | oklab(39.86% 0.0687 -0.1372) |
| OKLCH | oklch(39.86% 0.153 296.6) |
| XYZ | xyz(9.2616, 5.5480, 26.1689) |
| Luminance | 0.0555 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.11
Darkslateblue
#483D8B
ΔE00 5.76
Indigo
#4B0082
ΔE00 6.98
Blueberry
#464196
ΔE00 7.05
Indigo Blue
#3A18B1
ΔE00 7.35
Indigo (survey)
#380282
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522C8E #688E2C
analogous
#2C378E #522C8E #832C8E
triadic
#522C8E #8E522C #2C8E52
tetradic
#522C8E #8E2C37 #688E2C #2C8E83
square
#522C8E #8E2C37 #688E2C #2C8E83
split-complementary
#522C8E #8E832C #378E2C
monochromatic
#1C0F31 #371E5F #522C8E #6D3ABD #8E65CF
Accessibility & contrast
On white
9.95
#522C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#522C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522C8E
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522C8E | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#434359
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #522c8e; /* rgb */ color: rgb(82, 44, 142); /* oklch */ color: oklch(39.9% 0.153 296.6);
Tailwind
colors: {
custom: {
50: '#8868b0',
500: '#522c8e',
950: '#000000',
},
}SCSS
$custom: #522c8e; $custom-light: #8868b0; $custom-dark: #000000;
JSON
{
"hex": "#522c8e",
"rgb": {
"r": 82,
"g": 44,
"b": 142
},
"hsl": {
"h": 263.265,
"s": 52.688,
"l": 36.471
},
"oklch": {
"l": 0.39864,
"c": 0.15346,
"h": 296.6
},
"luminance": 0.05548
}Semantic roles & 50–950 ramp
primary
#522C8E
secondary
#95B660
accent
#DC4CA4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F