#522F95#522F95
#522F95 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.158 H 294.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #522F95 |
|---|---|
| RGB | rgb(82, 47, 149) |
| HSL | hsl(261, 52%, 38%) |
| HSV | hsv(261, 68%, 58%) |
| CMYK | cmyk(45%, 68.5%, 0%, 41.6%) |
| CIE-LAB | lab(29.40, 39.70, -50.49) |
| CIE-LCH | lch(29.40, 64.23, 308.18°) |
| OKLab | oklab(40.87% 0.0644 -0.1444) |
| OKLCH | oklch(40.87% 0.158 294) |
| XYZ | xyz(9.9195, 5.9965, 29.0627) |
| Luminance | 0.0600 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.89
Darkslateblue
#483D8B
ΔE00 5.29
Blueberry
#464196
ΔE00 6.19
Indigo Blue
#3A18B1
ΔE00 6.85
Ocean Blue
#4F42B5
ΔE00 7.04
Indigo
#4B0082
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#522F95 #72952F
analogous
#2F3F95 #522F95 #852F95
triadic
#522F95 #95522F #2F9552
tetradic
#522F95 #952F3F #72952F #2F9585
square
#522F95 #952F3F #72952F #2F9585
split-complementary
#522F95 #95852F #3F952F
monochromatic
#1F1238 #382066 #522F95 #6C3FC2 #906DD1
Accessibility & contrast
On white
9.55
#522F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#522F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #522F95
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##522F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##522F95 | 1.00 | 9.55 | 2.20 | 9.55 |
| #FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#3F485E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #522f95; /* rgb */ color: rgb(82, 47, 149); /* oklch */ color: oklch(40.9% 0.158 294.0);
Tailwind
colors: {
custom: {
50: '#896ab5',
500: '#522f95',
950: '#000000',
},
}SCSS
$custom: #522f95; $custom-light: #896ab5; $custom-dark: #000000;
JSON
{
"hex": "#522f95",
"rgb": {
"r": 82,
"g": 47,
"b": 149
},
"hsl": {
"h": 260.588,
"s": 52.041,
"l": 38.431
},
"oklch": {
"l": 0.40873,
"c": 0.15807,
"h": 294
},
"luminance": 0.05997
}Semantic roles & 50–950 ramp
primary
#522F95
secondary
#9DB867
accent
#DB4CAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80