#5C4A8A#5C4A8A
#5C4A8A is a mid, moderate violet. Relative luminance 0.090; OKLCH L 45.7% C 0.103 H 295.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #5C4A8A |
|---|---|
| RGB | rgb(92, 74, 138) |
| HSL | hsl(257, 30%, 42%) |
| HSV | hsv(257, 46%, 54%) |
| CMYK | cmyk(33.3%, 46.4%, 0%, 45.9%) |
| CIE-LAB | lab(36.00, 22.80, -33.10) |
| CIE-LCH | lch(36.00, 40.19, 304.56°) |
| OKLab | oklab(45.75% 0.0434 -0.093) |
| OKLCH | oklch(45.75% 0.103 295) |
| XYZ | xyz(11.4487, 9.0077, 25.1753) |
| Luminance | 0.0901 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 5.18
Darkslateblue
#483D8B
ΔE00 5.69
Blueberry
#464196
ΔE00 6.43
Dusk
#4E5481
ΔE00 6.73
Royal Purple
#7851A9
ΔE00 7.39
Rebeccapurple
#663399
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C4A8A #788A4A
analogous
#4A588A #5C4A8A #7C4A8A
triadic
#5C4A8A #8A5C4A #4A8A5C
tetradic
#5C4A8A #8A4A58 #788A4A #4A8A7C
square
#5C4A8A #8A4A58 #788A4A #4A8A7C
split-complementary
#5C4A8A #8A7C4A #588A4A
monochromatic
#271F3A #413562 #5C4A8A #7965AC #9C8DC2
Accessibility & contrast
On white
7.50
#5C4A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#5C4A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C4A8A
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C4A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C4A8A | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#36558C
Deuteranopia (green-blind)
#395488
Tritanopia (blue-blind)
#525663
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #5c4a8a; /* rgb */ color: rgb(92, 74, 138); /* oklch */ color: oklch(45.7% 0.103 295.0);
Tailwind
colors: {
custom: {
50: '#8c7dac',
500: '#5c4a8a',
950: '#000000',
},
}SCSS
$custom: #5c4a8a; $custom-light: #8c7dac; $custom-dark: #000000;
JSON
{
"hex": "#5c4a8a",
"rgb": {
"r": 92,
"g": 74,
"b": 138
},
"hsl": {
"h": 256.875,
"s": 30.189,
"l": 41.569
},
"oklch": {
"l": 0.45745,
"c": 0.10264,
"h": 295
},
"luminance": 0.09008
}Semantic roles & 50–950 ramp
primary
#5C4A8A
secondary
#A1AE82
accent
#C661AA
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0910
muted
#7D7B7F