#5A229E#5A229E
#5A229E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.184 H 298.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5A229E |
|---|---|
| RGB | rgb(90, 34, 158) |
| HSL | hsl(267, 65%, 38%) |
| HSV | hsv(267, 78%, 62%) |
| CMYK | cmyk(43%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(28.87, 49.96, -56.82) |
| CIE-LCH | lch(28.87, 75.67, 311.32°) |
| OKLab | oklab(40.95% 0.0868 -0.1626) |
| OKLCH | oklch(40.95% 0.184 298.1) |
| XYZ | xyz(10.9584, 5.7862, 32.8806) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.38
Indigo Blue
#3A18B1
ΔE00 5.59
Violet Blue
#510AC9
ΔE00 6.18
Indigo
#4B0082
ΔE00 6.43
Purple Blue
#5D21D0
ΔE00 6.86
Purple (survey)
#7E1E9C
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A229E #669E22
analogous
#22289E #5A229E #98229E
triadic
#5A229E #9E5A22 #229E5A
tetradic
#5A229E #9E2228 #669E22 #229E98
square
#5A229E #9E2228 #669E22 #229E98
split-complementary
#5A229E #9E9822 #289E22
monochromatic
#210C39 #3D176C #5A229E #772DD0 #975EDC
Accessibility & contrast
On white
9.73
#5A229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5A229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A229E
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A229E | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#49445F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5a229e; /* rgb */ color: rgb(90, 34, 158); /* oklch */ color: oklch(40.9% 0.184 298.1);
Tailwind
colors: {
custom: {
50: '#9064bc',
500: '#5a229e',
950: '#000000',
},
}SCSS
$custom: #5a229e; $custom-light: #9064bc; $custom-dark: #000000;
JSON
{
"hex": "#5a229e",
"rgb": {
"r": 90,
"g": 34,
"b": 158
},
"hsl": {
"h": 267.097,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.40948,
"c": 0.18435,
"h": 298.1
},
"luminance": 0.05786
}Semantic roles & 50–950 ramp
primary
#5A229E
secondary
#93C15B
accent
#E8409C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81