#5A22A6#5A22A6
#5A22A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.193 H 296.0°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #5A22A6 |
|---|---|
| RGB | rgb(90, 34, 166) |
| HSL | hsl(265, 66%, 39%) |
| HSV | hsv(265, 80%, 65%) |
| CMYK | cmyk(45.8%, 79.5%, 0%, 34.9%) |
| CIE-LAB | lab(29.59, 52.00, -60.49) |
| CIE-LCH | lch(29.59, 79.77, 310.68°) |
| OKLab | oklab(41.67% 0.0845 -0.1734) |
| OKLCH | oklch(41.67% 0.193 296) |
| XYZ | xyz(11.6696, 6.0706, 36.6259) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.84
Indigo Blue
#3A18B1
ΔE00 4.96
Violet Blue
#510AC9
ΔE00 5.09
Purple Blue
#5D21D0
ΔE00 5.67
Purple (survey)
#7E1E9C
ΔE00 7.25
Indigo
#4B0082
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A22A6 #6EA622
analogous
#222CA6 #5A22A6 #9C22A6
triadic
#5A22A6 #A65A22 #22A65A
tetradic
#5A22A6 #A6222C #6EA622 #22A69C
square
#5A22A6 #A6222C #6EA622 #22A69C
split-complementary
#5A22A6 #A69C22 #2CA622
monochromatic
#230D40 #3E1873 #5A22A6 #7630D5 #9863DF
Accessibility & contrast
On white
9.48
#5A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5A22A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A22A6
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A22A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A22A6 | 1.00 | 9.48 | 2.21 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#454764
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5a22a6; /* rgb */ color: rgb(90, 34, 166); /* oklch */ color: oklch(41.7% 0.193 296.0);
Tailwind
colors: {
custom: {
50: '#9064c1',
500: '#5a22a6',
950: '#000000',
},
}SCSS
$custom: #5a22a6; $custom-light: #9064c1; $custom-dark: #000000;
JSON
{
"hex": "#5a22a6",
"rgb": {
"r": 90,
"g": 34,
"b": 166
},
"hsl": {
"h": 265.455,
"s": 66,
"l": 39.216
},
"oklch": {
"l": 0.41674,
"c": 0.19286,
"h": 296
},
"luminance": 0.06071
}Semantic roles & 50–950 ramp
primary
#5A22A6
secondary
#9AC45F
accent
#E93FA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81