#522F8E#522F8E
#522F8E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.149 H 295.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #522F8E |
|---|---|
| RGB | rgb(82, 47, 142) |
| HSL | hsl(262, 50%, 37%) |
| HSV | hsv(262, 67%, 56%) |
| CMYK | cmyk(42.3%, 66.9%, 0%, 44.3%) |
| CIE-LAB | lab(28.85, 37.72, -47.08) |
| CIE-LCH | lch(28.85, 60.33, 308.70°) |
| OKLab | oklab(40.3% 0.0653 -0.1344) |
| OKLCH | oklch(40.3% 0.149 295.9) |
| XYZ | xyz(9.3774, 5.7797, 26.2075) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.97
Darkslateblue
#483D8B
ΔE00 5.07
Blueberry
#464196
ΔE00 6.40
Indigo
#4B0082
ΔE00 7.69
Indigo Blue
#3A18B1
ΔE00 7.75
Ocean Blue
#4F42B5
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522F8E #6B8E2F
analogous
#2F3C8E #522F8E #822F8E
triadic
#522F8E #8E522F #2F8E52
tetradic
#522F8E #8E2F3C #6B8E2F #2F8E82
square
#522F8E #8E2F3C #6B8E2F #2F8E82
split-complementary
#522F8E #8E822F #3C8E2F
monochromatic
#1D1132 #372060 #522F8E #6D3EBC #8F6ACE
Accessibility & contrast
On white
9.74
#522F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#522F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522F8E
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522F8E | 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)
#004591
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#43455A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #522f8e; /* rgb */ color: rgb(82, 47, 142); /* oklch */ color: oklch(40.3% 0.149 295.9);
Tailwind
colors: {
custom: {
50: '#886ab0',
500: '#522f8e',
950: '#000000',
},
}SCSS
$custom: #522f8e; $custom-light: #886ab0; $custom-dark: #000000;
JSON
{
"hex": "#522f8e",
"rgb": {
"r": 82,
"g": 47,
"b": 142
},
"hsl": {
"h": 262.105,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.40301,
"c": 0.14938,
"h": 295.9
},
"luminance": 0.0578
}Semantic roles & 50–950 ramp
primary
#522F8E
secondary
#97B564
accent
#DA4EA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F