#522A9A#522A9A
#522A9A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.170 H 293.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #522A9A |
|---|---|
| RGB | rgb(82, 42, 154) |
| HSL | hsl(261, 57%, 38%) |
| HSV | hsv(261, 73%, 60%) |
| CMYK | cmyk(46.8%, 72.7%, 0%, 39.6%) |
| CIE-LAB | lab(28.86, 43.78, -54.44) |
| CIE-LCH | lch(28.86, 69.86, 308.81°) |
| OKLab | oklab(40.61% 0.0685 -0.156) |
| OKLCH | oklch(40.61% 0.17 293.7) |
| XYZ | xyz(10.1388, 5.7826, 31.1475) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.35
Indigo Blue
#3A18B1
ΔE00 5.61
Darkslateblue
#483D8B
ΔE00 6.57
Violet Blue
#510AC9
ΔE00 7.06
Indigo
#4B0082
ΔE00 7.15
Blueberry
#464196
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522A9A #729A2A
analogous
#2A3A9A #522A9A #8A2A9A
triadic
#522A9A #9A522A #2A9A52
tetradic
#522A9A #9A2A3A #729A2A #2A9A8A
square
#522A9A #9A2A3A #729A2A #2A9A8A
split-complementary
#522A9A #9A8A2A #3A9A2A
monochromatic
#1F103A #381D6A #522A9A #6C38C9 #9068D6
Accessibility & contrast
On white
9.74
#522A9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#522A9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522A9A
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522A9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522A9A | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#3D475F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #522a9a; /* rgb */ color: rgb(82, 42, 154); /* oklch */ color: oklch(40.6% 0.170 293.7);
Tailwind
colors: {
custom: {
50: '#8a67b9',
500: '#522a9a',
950: '#000000',
},
}SCSS
$custom: #522a9a; $custom-light: #8a67b9; $custom-dark: #000000;
JSON
{
"hex": "#522a9a",
"rgb": {
"r": 82,
"g": 42,
"b": 154
},
"hsl": {
"h": 261.429,
"s": 57.143,
"l": 38.431
},
"oklch": {
"l": 0.40613,
"c": 0.17036,
"h": 293.7
},
"luminance": 0.05783
}Semantic roles & 50–950 ramp
primary
#522A9A
secondary
#9DBC63
accent
#E047AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80