#5E229E#5E229E
#5E229E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 300.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #5E229E |
|---|---|
| RGB | rgb(94, 34, 158) |
| HSL | hsl(269, 65%, 38%) |
| HSV | hsv(269, 78%, 62%) |
| CMYK | cmyk(40.5%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(29.39, 50.62, -55.94) |
| CIE-LCH | lch(29.39, 75.44, 312.14°) |
| OKLab | oklab(41.43% 0.0929 -0.1599) |
| OKLCH | oklch(41.43% 0.185 300.1) |
| XYZ | xyz(11.3581, 5.9922, 32.8993) |
| Luminance | 0.0599 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.96
Purple (survey)
#7E1E9C
ΔE00 6.18
Indigo Blue
#3A18B1
ΔE00 6.21
Violet Blue
#510AC9
ΔE00 6.44
Indigo
#4B0082
ΔE00 6.67
Purple Blue
#5D21D0
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E229E #629E22
analogous
#22249E #5E229E #9C229E
triadic
#5E229E #9E5E22 #229E5E
tetradic
#5E229E #9E2224 #629E22 #229E9C
square
#5E229E #9E2224 #629E22 #229E9C
split-complementary
#5E229E #9E9C22 #249E22
monochromatic
#220C39 #40176C #5E229E #7C2DD0 #9B5EDC
Accessibility & contrast
On white
9.55
#5E229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5E229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E229E
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E229E | 1.00 | 9.55 | 2.20 | 9.55 |
| #FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4F435F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5e229e; /* rgb */ color: rgb(94, 34, 158); /* oklch */ color: oklch(41.4% 0.185 300.1);
Tailwind
colors: {
custom: {
50: '#9264bc',
500: '#5e229e',
950: '#000000',
},
}SCSS
$custom: #5e229e; $custom-light: #9264bc; $custom-dark: #000000;
JSON
{
"hex": "#5e229e",
"rgb": {
"r": 94,
"g": 34,
"b": 158
},
"hsl": {
"h": 269.032,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.41431,
"c": 0.18491,
"h": 300.1
},
"luminance": 0.05992
}Semantic roles & 50–950 ramp
primary
#5E229E
secondary
#90C15B
accent
#E84097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81