#522F89#522F89
#522F89 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.143 H 297.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).
Color values
| HEX | #522F89 |
|---|---|
| RGB | rgb(82, 47, 137) |
| HSL | hsl(263, 49%, 36%) |
| HSV | hsv(263, 66%, 54%) |
| CMYK | cmyk(40.1%, 65.7%, 0%, 46.3%) |
| CIE-LAB | lab(28.47, 36.32, -44.61) |
| CIE-LCH | lch(28.47, 57.52, 309.15°) |
| OKLab | oklab(39.9% 0.0658 -0.1271) |
| OKLCH | oklch(39.9% 0.143 297.4) |
| XYZ | xyz(9.0104, 5.6329, 24.2746) |
| Luminance | 0.0563 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.23
Darkslateblue
#483D8B
ΔE00 5.09
Blueberry
#464196
ΔE00 6.70
Indigo
#4B0082
ΔE00 7.67
Indigo Blue
#3A18B1
ΔE00 8.49
Ocean Blue
#4F42B5
ΔE00 8.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522F89 #66892F
analogous
#2F3989 #522F89 #7F2F89
triadic
#522F89 #89522F #2F8952
tetradic
#522F89 #892F39 #66892F #2F897F
square
#522F89 #892F39 #66892F #2F897F
split-complementary
#522F89 #897F2F #39892F
monochromatic
#1B102E #371F5B #522F89 #6D3FB7 #8E67CB
Accessibility & contrast
On white
9.87
#522F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#522F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522F89
9.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522F89 | 1.00 | 9.87 | 2.13 | 9.87 |
| #FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#454357
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #522f89; /* rgb */ color: rgb(82, 47, 137); /* oklch */ color: oklch(39.9% 0.143 297.4);
Tailwind
colors: {
custom: {
50: '#876aac',
500: '#522f89',
950: '#000000',
},
}SCSS
$custom: #522f89; $custom-light: #876aac; $custom-dark: #000000;
JSON
{
"hex": "#522f89",
"rgb": {
"r": 82,
"g": 47,
"b": 137
},
"hsl": {
"h": 263.333,
"s": 48.913,
"l": 36.078
},
"oklch": {
"l": 0.39903,
"c": 0.14311,
"h": 297.4
},
"luminance": 0.05633
}Semantic roles & 50–950 ramp
primary
#522F89
secondary
#93B262
accent
#D84FA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F