#5E229A#5E229A
#5E229A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.181 H 301.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #5E229A |
|---|---|
| RGB | rgb(94, 34, 154) |
| HSL | hsl(270, 64%, 37%) |
| HSV | hsv(270, 78%, 60%) |
| CMYK | cmyk(39%, 77.9%, 0%, 39.6%) |
| CIE-LAB | lab(29.05, 49.63, -54.07) |
| CIE-LCH | lch(29.05, 73.39, 312.55°) |
| OKLab | oklab(41.08% 0.094 -0.1544) |
| OKLCH | oklch(41.08% 0.181 301.3) |
| XYZ | xyz(11.0194, 5.8568, 31.1155) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.82
Purple (survey)
#7E1E9C
ΔE00 6.03
Indigo
#4B0082
ΔE00 6.34
Indigo Blue
#3A18B1
ΔE00 6.61
Violet Blue
#510AC9
ΔE00 7.02
Purple Blue
#5D21D0
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E229A #5E9A22
analogous
#22229A #5E229A #9A229A
triadic
#5E229A #9A5E22 #229A5E
tetradic
#5E229A #9A2222 #5E9A22 #229A9A
square
#5E229A #9A2222 #5E9A22 #229A9A
split-complementary
#5E229A #9A9A22 #229A22
monochromatic
#210C36 #3F1768 #5E229A #7D2DCC #9B5BDB
Accessibility & contrast
On white
9.67
#5E229A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#5E229A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E229A
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E229A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E229A | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#51425D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5e229a; /* rgb */ color: rgb(94, 34, 154); /* oklch */ color: oklch(41.1% 0.181 301.3);
Tailwind
colors: {
custom: {
50: '#9264b9',
500: '#5e229a',
950: '#000000',
},
}SCSS
$custom: #5e229a; $custom-light: #9264b9; $custom-dark: #000000;
JSON
{
"hex": "#5e229a",
"rgb": {
"r": 94,
"g": 34,
"b": 154
},
"hsl": {
"h": 270,
"s": 63.83,
"l": 36.863
},
"oklch": {
"l": 0.41083,
"c": 0.18073,
"h": 301.3
},
"luminance": 0.05857
}Semantic roles & 50–950 ramp
primary
#5E229A
secondary
#8CBF58
accent
#E74194
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80