#5E2299#5E2299
#5E2299 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.180 H 301.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #5E2299 |
|---|---|
| RGB | rgb(94, 34, 153) |
| HSL | hsl(270, 64%, 37%) |
| HSV | hsv(270, 78%, 60%) |
| CMYK | cmyk(38.6%, 77.8%, 0%, 40%) |
| CIE-LAB | lab(28.96, 49.39, -53.59) |
| CIE-LCH | lch(28.96, 72.88, 312.66°) |
| OKLab | oklab(41% 0.0942 -0.153) |
| OKLCH | oklch(41% 0.18 301.6) |
| XYZ | xyz(10.9365, 5.8236, 30.6787) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.80
Purple (survey)
#7E1E9C
ΔE00 6.00
Indigo
#4B0082
ΔE00 6.27
Indigo Blue
#3A18B1
ΔE00 6.72
Violet Blue
#510AC9
ΔE00 7.17
Purple Blue
#5D21D0
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E2299 #5D9922
analogous
#232299 #5E2299 #992299
triadic
#5E2299 #995E22 #22995E
tetradic
#5E2299 #992322 #5D9922 #229999
square
#5E2299 #992322 #5D9922 #229999
split-complementary
#5E2299 #999922 #229923
monochromatic
#200C35 #3F1767 #5E2299 #7D2DCB #9B5BDB
Accessibility & contrast
On white
9.70
#5E2299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5E2299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E2299
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E2299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E2299 | 1.00 | 9.70 | 2.16 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#51415D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5e2299; /* rgb */ color: rgb(94, 34, 153); /* oklch */ color: oklch(41.0% 0.180 301.6);
Tailwind
colors: {
custom: {
50: '#9164b8',
500: '#5e2299',
950: '#000000',
},
}SCSS
$custom: #5e2299; $custom-light: #9164b8; $custom-dark: #000000;
JSON
{
"hex": "#5e2299",
"rgb": {
"r": 94,
"g": 34,
"b": 153
},
"hsl": {
"h": 270.252,
"s": 63.636,
"l": 36.667
},
"oklch": {
"l": 0.40997,
"c": 0.17968,
"h": 301.6
},
"luminance": 0.05824
}Semantic roles & 50–950 ramp
primary
#5E2299
secondary
#8BBF58
accent
#E74193
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80