#5A319E#5A319E
#5A319E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.167 H 295.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #5A319E |
|---|---|
| RGB | rgb(90, 49, 158) |
| HSL | hsl(263, 53%, 41%) |
| HSV | hsv(263, 69%, 62%) |
| CMYK | cmyk(43%, 69%, 0%, 38%) |
| CIE-LAB | lab(31.44, 42.72, -52.63) |
| CIE-LCH | lch(31.44, 67.79, 309.07°) |
| OKLab | oklab(42.77% 0.0726 -0.1504) |
| OKLCH | oklch(42.77% 0.167 295.8) |
| XYZ | xyz(11.4847, 6.8387, 33.0560) |
| Luminance | 0.0684 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.78
Darkslateblue
#483D8B
ΔE00 6.17
Ocean Blue
#4F42B5
ΔE00 6.24
Blueberry
#464196
ΔE00 6.64
Blue With A Hint Of Purple
#533CC6
ΔE00 6.73
Indigo Blue
#3A18B1
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A319E #759E31
analogous
#313E9E #5A319E #90319E
triadic
#5A319E #9E5A31 #319E5A
tetradic
#5A319E #9E313E #759E31 #319E90
square
#5A319E #9E313E #759E31 #319E90
split-complementary
#5A319E #9E9031 #3E9E31
monochromatic
#251441 #3F236F #5A319E #7646C6 #9975D4
Accessibility & contrast
On white
8.87
#5A319E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#5A319E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A319E
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A319E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A319E | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#484B63
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #5a319e; /* rgb */ color: rgb(90, 49, 158); /* oklch */ color: oklch(42.8% 0.167 295.8);
Tailwind
colors: {
custom: {
50: '#8e6cbb',
500: '#5a319e',
950: '#000000',
},
}SCSS
$custom: #5a319e; $custom-light: #8e6cbb; $custom-dark: #000000;
JSON
{
"hex": "#5a319e",
"rgb": {
"r": 90,
"g": 49,
"b": 158
},
"hsl": {
"h": 262.569,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.42767,
"c": 0.16699,
"h": 295.8
},
"luminance": 0.06839
}Semantic roles & 50–950 ramp
primary
#5A319E
secondary
#9FBC6E
accent
#DC4CA6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81