#5E2AA2#5E2AA2
#5E2AA2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.181 H 298.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5E2AA2 |
|---|---|
| RGB | rgb(94, 42, 162) |
| HSL | hsl(266, 59%, 40%) |
| HSV | hsv(266, 74%, 64%) |
| CMYK | cmyk(42%, 74.1%, 0%, 36.5%) |
| CIE-LAB | lab(30.98, 48.07, -55.77) |
| CIE-LCH | lch(30.98, 73.63, 310.76°) |
| OKLab | oklab(42.65% 0.0847 -0.1595) |
| OKLCH | oklch(42.65% 0.181 298) |
| XYZ | xyz(11.9640, 6.6440, 34.8275) |
| Luminance | 0.0664 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.14
Purple Blue
#5D21D0
ΔE00 6.30
Indigo Blue
#3A18B1
ΔE00 6.45
Violet Blue
#510AC9
ΔE00 6.49
Purple (survey)
#7E1E9C
ΔE00 6.49
Blue With A Hint Of Purple
#533CC6
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E2AA2 #6EA22A
analogous
#2A32A2 #5E2AA2 #9A2AA2
triadic
#5E2AA2 #A25E2A #2AA25E
tetradic
#5E2AA2 #A22A32 #6EA22A #2AA29A
square
#5E2AA2 #A22A32 #6EA22A #2AA29A
split-complementary
#5E2AA2 #A29A2A #32A22A
monochromatic
#261141 #421D71 #5E2AA2 #7B3DCD #9C6DD9
Accessibility & contrast
On white
9.02
#5E2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#5E2AA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E2AA2
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E2AA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E2AA2 | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4D4964
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5e2aa2; /* rgb */ color: rgb(94, 42, 162); /* oklch */ color: oklch(42.7% 0.181 298.0);
Tailwind
colors: {
custom: {
50: '#9269be',
500: '#5e2aa2',
950: '#000000',
},
}SCSS
$custom: #5e2aa2; $custom-light: #9269be; $custom-dark: #000000;
JSON
{
"hex": "#5e2aa2",
"rgb": {
"r": 94,
"g": 42,
"b": 162
},
"hsl": {
"h": 266,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.42654,
"c": 0.18056,
"h": 298
},
"luminance": 0.06644
}Semantic roles & 50–950 ramp
primary
#5E2AA2
secondary
#9AC068
accent
#E2469E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81