#5A366F#5A366F
#5A366F is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.2% C 0.100 H 311.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A366F |
|---|---|
| RGB | rgb(90, 54, 111) |
| HSL | hsl(278, 35%, 32%) |
| HSV | hsv(278, 51%, 44%) |
| CMYK | cmyk(18.9%, 51.4%, 0%, 56.5%) |
| CIE-LAB | lab(29.31, 27.45, -26.85) |
| CIE-LCH | lch(29.31, 38.40, 315.63°) |
| OKLab | oklab(40.2% 0.0669 -0.0748) |
| OKLCH | oklch(40.2% 0.1 311.8) |
| XYZ | xyz(8.4044, 5.9599, 15.7435) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Grape
#6C3461
ΔE00 7.25
Darkish Purple
#751973
ΔE00 8.51
Rebeccapurple
#663399
ΔE00 8.52
Darkslateblue
#483D8B
ΔE00 8.85
Bruise
#7E4071
ΔE00 9.38
Grape Purple
#5D1451
ΔE00 9.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A366F #4B6F36
analogous
#3E366F #5A366F #6F3667
triadic
#5A366F #6F5A36 #366F5A
tetradic
#5A366F #6F3E36 #4B6F36 #36676F
square
#5A366F #6F3E36 #4B6F36 #36676F
split-complementary
#5A366F #676F36 #366F3E
monochromatic
#170E1D #392246 #5A366F #7B4A98 #9A69B6
Accessibility & contrast
On white
9.58
#5A366F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5A366F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A366F
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A366F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A366F | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294371
Deuteranopia (green-blind)
#33466D
Tritanopia (blue-blind)
#583F4D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a366f; /* rgb */ color: rgb(90, 54, 111); /* oklch */ color: oklch(40.2% 0.100 311.8);
Tailwind
colors: {
custom: {
50: '#8a6e98',
500: '#5a366f',
950: '#000000',
},
}SCSS
$custom: #5a366f; $custom-light: #8a6e98; $custom-dark: #000000;
JSON
{
"hex": "#5a366f",
"rgb": {
"r": 90,
"g": 54,
"b": 111
},
"hsl": {
"h": 277.895,
"s": 34.545,
"l": 32.353
},
"oklch": {
"l": 0.40197,
"c": 0.10041,
"h": 311.8
},
"luminance": 0.0596
}Semantic roles & 50–950 ramp
primary
#5A366F
secondary
#789F62
accent
#CB5D86
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070E
muted
#7D7A7E