#5E229B#5E229B
#5E229B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.182 H 301.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #5E229B |
|---|---|
| RGB | rgb(94, 34, 155) |
| HSL | hsl(270, 64%, 37%) |
| HSV | hsv(270, 78%, 61%) |
| CMYK | cmyk(39.4%, 78.1%, 0%, 39.2%) |
| CIE-LAB | lab(29.13, 49.88, -54.54) |
| CIE-LCH | lch(29.13, 73.91, 312.45°) |
| OKLab | oklab(41.17% 0.0937 -0.1558) |
| OKLCH | oklch(41.17% 0.182 301) |
| XYZ | xyz(11.1031, 5.8902, 31.5560) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.85
Purple (survey)
#7E1E9C
ΔE00 6.06
Indigo
#4B0082
ΔE00 6.42
Indigo Blue
#3A18B1
ΔE00 6.50
Violet Blue
#510AC9
ΔE00 6.87
Purple Blue
#5D21D0
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E229B #5F9B22
analogous
#22239B #5E229B #9B229B
triadic
#5E229B #9B5E22 #229B5E
tetradic
#5E229B #9B2223 #5F9B22 #229B9B
square
#5E229B #9B2223 #5F9B22 #229B9B
split-complementary
#5E229B #9B9B22 #239B22
monochromatic
#210C37 #401769 #5E229B #7C2DCD #9B5CDB
Accessibility & contrast
On white
9.64
#5E229B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5E229B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E229B
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E229B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E229B | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#50425E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5e229b; /* rgb */ color: rgb(94, 34, 155); /* oklch */ color: oklch(41.2% 0.182 301.0);
Tailwind
colors: {
custom: {
50: '#9264b9',
500: '#5e229b',
950: '#000000',
},
}SCSS
$custom: #5e229b; $custom-light: #9264b9; $custom-dark: #000000;
JSON
{
"hex": "#5e229b",
"rgb": {
"r": 94,
"g": 34,
"b": 155
},
"hsl": {
"h": 269.752,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.4117,
"c": 0.18177,
"h": 301
},
"luminance": 0.0589
}Semantic roles & 50–950 ramp
primary
#5E229B
secondary
#8DC059
accent
#E74195
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81