#522F91#522F91
#522F91 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.153 H 295.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #522F91 |
|---|---|
| RGB | rgb(82, 47, 145) |
| HSL | hsl(261, 51%, 38%) |
| HSV | hsv(261, 68%, 57%) |
| CMYK | cmyk(43.4%, 67.6%, 0%, 43.1%) |
| CIE-LAB | lab(29.08, 38.57, -48.55) |
| CIE-LCH | lch(29.08, 62.01, 308.46°) |
| OKLab | oklab(40.54% 0.0649 -0.1387) |
| OKLCH | oklch(40.54% 0.153 295.1) |
| XYZ | xyz(9.6057, 5.8710, 27.4097) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.89
Darkslateblue
#483D8B
ΔE00 5.13
Blueberry
#464196
ΔE00 6.28
Indigo Blue
#3A18B1
ΔE00 7.35
Ocean Blue
#4F42B5
ΔE00 7.54
Indigo
#4B0082
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522F91 #6E912F
analogous
#2F3D91 #522F91 #832F91
triadic
#522F91 #91522F #2F9152
tetradic
#522F91 #912F3D #6E912F #2F9183
square
#522F91 #912F3D #6E912F #2F9183
split-complementary
#522F91 #91832F #3D912F
monochromatic
#1E1135 #382063 #522F91 #6C3EBF #8F6BCF
Accessibility & contrast
On white
9.66
#522F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#522F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522F91
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522F91 | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#41465C
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #522f91; /* rgb */ color: rgb(82, 47, 145); /* oklch */ color: oklch(40.5% 0.153 295.1);
Tailwind
colors: {
custom: {
50: '#886ab2',
500: '#522f91',
950: '#000000',
},
}SCSS
$custom: #522f91; $custom-light: #886ab2; $custom-dark: #000000;
JSON
{
"hex": "#522f91",
"rgb": {
"r": 82,
"g": 47,
"b": 145
},
"hsl": {
"h": 261.429,
"s": 51.042,
"l": 37.647
},
"oklch": {
"l": 0.40544,
"c": 0.15312,
"h": 295.1
},
"luminance": 0.05871
}Semantic roles & 50–950 ramp
primary
#522F91
secondary
#99B665
accent
#DB4DA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80