#5E22A8#5E22A8
#5E22A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.195 H 297.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).
Color values
| HEX | #5E22A8 |
|---|---|
| RGB | rgb(94, 34, 168) |
| HSL | hsl(267, 66%, 40%) |
| HSV | hsv(267, 80%, 66%) |
| CMYK | cmyk(44%, 79.8%, 0%, 34.1%) |
| CIE-LAB | lab(30.28, 53.11, -60.54) |
| CIE-LCH | lch(30.28, 80.53, 311.26°) |
| OKLab | oklab(42.32% 0.09 -0.1734) |
| OKLCH | oklch(42.32% 0.195 297.4) |
| XYZ | xyz(12.2541, 6.3507, 37.6184) |
| Luminance | 0.0635 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.60
Violet Blue
#510AC9
ΔE00 5.11
Purple Blue
#5D21D0
ΔE00 5.41
Indigo Blue
#3A18B1
ΔE00 5.48
Purple (survey)
#7E1E9C
ΔE00 6.71
Blurple
#5539CC
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E22A8 #6CA822
analogous
#2229A8 #5E22A8 #A122A8
triadic
#5E22A8 #A85E22 #22A85E
tetradic
#5E22A8 #A82229 #6CA822 #22A8A1
square
#5E22A8 #A82229 #6CA822 #22A8A1
split-complementary
#5E22A8 #A8A122 #29A822
monochromatic
#250D42 #421875 #5E22A8 #7B32D5 #9C65E0
Accessibility & contrast
On white
9.25
#5E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#5E22A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E22A8
9.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E22A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E22A8 | 1.00 | 9.25 | 2.27 | 9.25 |
| #FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#4A4865
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #5e22a8; /* rgb */ color: rgb(94, 34, 168); /* oklch */ color: oklch(42.3% 0.195 297.4);
Tailwind
colors: {
custom: {
50: '#9365c3',
500: '#5e22a8',
950: '#000000',
},
}SCSS
$custom: #5e22a8; $custom-light: #9365c3; $custom-dark: #000000;
JSON
{
"hex": "#5e22a8",
"rgb": {
"r": 94,
"g": 34,
"b": 168
},
"hsl": {
"h": 266.866,
"s": 66.337,
"l": 39.608
},
"oklch": {
"l": 0.42323,
"c": 0.19535,
"h": 297.4
},
"luminance": 0.06351
}Semantic roles & 50–950 ramp
primary
#5E22A8
secondary
#98C561
accent
#E93F9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82