#5221A9#5221A9
#5221A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.197 H 291.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #5221A9 |
|---|---|
| RGB | rgb(82, 33, 169) |
| HSL | hsl(262, 67%, 40%) |
| HSV | hsv(262, 80%, 66%) |
| CMYK | cmyk(51.5%, 80.5%, 0%, 33.7%) |
| CIE-LAB | lab(28.76, 52.07, -63.70) |
| CIE-LCH | lch(28.76, 82.27, 309.26°) |
| OKLab | oklab(40.97% 0.0718 -0.183) |
| OKLCH | oklch(40.97% 0.197 291.4) |
| XYZ | xyz(11.1829, 5.7457, 38.0482) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.58
Violet Blue
#510AC9
ΔE00 4.38
Purple Blue
#5D21D0
ΔE00 5.44
Rebeccapurple
#663399
ΔE00 6.02
Ultramarine
#2000B1
ΔE00 6.61
True Blue
#010FCC
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5221A9 #78A921
analogous
#2134A9 #5221A9 #9621A9
triadic
#5221A9 #A95221 #21A952
tetradic
#5221A9 #A92134 #78A921 #21A996
square
#5221A9 #A92134 #78A921 #21A996
split-complementary
#5221A9 #A99621 #34A921
monochromatic
#200D43 #391776 #5221A9 #6C31D7 #9164E1
Accessibility & contrast
On white
9.77
#5221A9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5221A9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5221A9
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5221A9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5221A9 | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#344965
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5221a9; /* rgb */ color: rgb(82, 33, 169); /* oklch */ color: oklch(41.0% 0.197 291.4);
Tailwind
colors: {
custom: {
50: '#8c63c4',
500: '#5221a9',
950: '#000000',
},
}SCSS
$custom: #5221a9; $custom-light: #8c63c4; $custom-dark: #000000;
JSON
{
"hex": "#5221a9",
"rgb": {
"r": 82,
"g": 33,
"b": 169
},
"hsl": {
"h": 261.618,
"s": 67.327,
"l": 39.608
},
"oklch": {
"l": 0.40967,
"c": 0.19662,
"h": 291.4
},
"luminance": 0.05746
}Semantic roles & 50–950 ramp
primary
#5221A9
secondary
#A1C660
accent
#EA3EAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82