#522F8B#522F8B
#522F8B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.146 H 296.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).
Color values
| HEX | #522F8B |
|---|---|
| RGB | rgb(82, 47, 139) |
| HSL | hsl(263, 49%, 36%) |
| HSV | hsv(263, 66%, 55%) |
| CMYK | cmyk(41%, 66.2%, 0%, 45.5%) |
| CIE-LAB | lab(28.62, 36.88, -45.60) |
| CIE-LCH | lch(28.62, 58.65, 308.96°) |
| OKLab | oklab(40.06% 0.0656 -0.13) |
| OKLCH | oklch(40.06% 0.146 296.8) |
| XYZ | xyz(9.1552, 5.6908, 25.0372) |
| Luminance | 0.0569 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.10
Darkslateblue
#483D8B
ΔE00 5.07
Blueberry
#464196
ΔE00 6.56
Indigo
#4B0082
ΔE00 7.66
Indigo Blue
#3A18B1
ΔE00 8.19
Ocean Blue
#4F42B5
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522F8B #688B2F
analogous
#2F3A8B #522F8B #802F8B
triadic
#522F8B #8B522F #2F8B52
tetradic
#522F8B #8B2F3A #688B2F #2F8B80
square
#522F8B #8B2F3A #688B2F #2F8B80
split-complementary
#522F8B #8B802F #3A8B2F
monochromatic
#1C1030 #37205D #522F8B #6D3EB9 #8E68CC
Accessibility & contrast
On white
9.82
#522F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#522F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522F8B
9.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522F8B | 1.00 | 9.82 | 2.14 | 9.82 |
| #FFFFFF | 9.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#444458
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #522f8b; /* rgb */ color: rgb(82, 47, 139); /* oklch */ color: oklch(40.1% 0.146 296.8);
Tailwind
colors: {
custom: {
50: '#876aae',
500: '#522f8b',
950: '#000000',
},
}SCSS
$custom: #522f8b; $custom-light: #876aae; $custom-dark: #000000;
JSON
{
"hex": "#522f8b",
"rgb": {
"r": 82,
"g": 47,
"b": 139
},
"hsl": {
"h": 262.826,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.40061,
"c": 0.14562,
"h": 296.8
},
"luminance": 0.05691
}Semantic roles & 50–950 ramp
primary
#522F8B
secondary
#95B363
accent
#D94FA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F