#522A9B#522A9B
#522A9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.172 H 293.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #522A9B |
|---|---|
| RGB | rgb(82, 42, 155) |
| HSL | hsl(261, 57%, 39%) |
| HSV | hsv(261, 73%, 61%) |
| CMYK | cmyk(47.1%, 72.9%, 0%, 39.2%) |
| CIE-LAB | lab(28.94, 44.06, -54.91) |
| CIE-LCH | lch(28.94, 70.40, 308.74°) |
| OKLab | oklab(40.7% 0.0683 -0.1573) |
| OKLCH | oklch(40.7% 0.172 293.5) |
| XYZ | xyz(10.2224, 5.8160, 31.5880) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.39
Indigo Blue
#3A18B1
ΔE00 5.50
Darkslateblue
#483D8B
ΔE00 6.63
Violet Blue
#510AC9
ΔE00 6.92
Indigo
#4B0082
ΔE00 7.23
Blueberry
#464196
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522A9B #739B2A
analogous
#2A3A9B #522A9B #8A2A9B
triadic
#522A9B #9B522A #2A9B52
tetradic
#522A9B #9B2A3A #739B2A #2A9B8A
square
#522A9B #9B2A3A #739B2A #2A9B8A
split-complementary
#522A9B #9B8A2A #3A9B2A
monochromatic
#1F103B #391D6B #522A9B #6C39C9 #9069D6
Accessibility & contrast
On white
9.71
#522A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#522A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522A9B
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522A9B | 1.00 | 9.71 | 2.16 | 9.71 |
| #FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#3C4760
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #522a9b; /* rgb */ color: rgb(82, 42, 155); /* oklch */ color: oklch(40.7% 0.172 293.5);
Tailwind
colors: {
custom: {
50: '#8a67b9',
500: '#522a9b',
950: '#000000',
},
}SCSS
$custom: #522a9b; $custom-light: #8a67b9; $custom-dark: #000000;
JSON
{
"hex": "#522a9b",
"rgb": {
"r": 82,
"g": 42,
"b": 155
},
"hsl": {
"h": 261.239,
"s": 57.36,
"l": 38.627
},
"oklch": {
"l": 0.40701,
"c": 0.17154,
"h": 293.5
},
"luminance": 0.05816
}Semantic roles & 50–950 ramp
primary
#522A9B
secondary
#9DBD64
accent
#E147AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81