#522C95#522C95
#522C95 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.162 H 294.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #522C95 |
|---|---|
| RGB | rgb(82, 44, 149) |
| HSL | hsl(262, 54%, 38%) |
| HSV | hsv(262, 70%, 58%) |
| CMYK | cmyk(45%, 70.5%, 0%, 41.6%) |
| CIE-LAB | lab(28.81, 41.34, -51.45) |
| CIE-LCH | lch(28.81, 66.00, 308.78°) |
| OKLab | oklab(40.45% 0.0675 -0.1472) |
| OKLCH | oklch(40.45% 0.162 294.6) |
| XYZ | xyz(9.8037, 5.7649, 29.0241) |
| Luminance | 0.0576 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.06
Darkslateblue
#483D8B
ΔE00 5.94
Indigo Blue
#3A18B1
ΔE00 6.43
Blueberry
#464196
ΔE00 6.85
Indigo
#4B0082
ΔE00 7.24
Ocean Blue
#4F42B5
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522C95 #6F952C
analogous
#2C3B95 #522C95 #862C95
triadic
#522C95 #95522C #2C9552
tetradic
#522C95 #952C3B #6F952C #2C9586
square
#522C95 #952C3B #6F952C #2C9586
split-complementary
#522C95 #95862C #3B952C
monochromatic
#1E1037 #381E66 #522C95 #6C3AC4 #8F69D3
Accessibility & contrast
On white
9.75
#522C95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#522C95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522C95
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522C95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522C95 | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#3F465D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #522c95; /* rgb */ color: rgb(82, 44, 149); /* oklch */ color: oklch(40.4% 0.162 294.6);
Tailwind
colors: {
custom: {
50: '#8968b5',
500: '#522c95',
950: '#000000',
},
}SCSS
$custom: #522c95; $custom-light: #8968b5; $custom-dark: #000000;
JSON
{
"hex": "#522c95",
"rgb": {
"r": 82,
"g": 44,
"b": 149
},
"hsl": {
"h": 261.714,
"s": 54.404,
"l": 37.843
},
"oklch": {
"l": 0.40449,
"c": 0.16196,
"h": 294.6
},
"luminance": 0.05765
}Semantic roles & 50–950 ramp
primary
#522C95
secondary
#9AB964
accent
#DE4AA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80