#5A2C97#5A2C97
#5A2C97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.165 H 298.6°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2C97 |
|---|---|
| RGB | rgb(90, 44, 151) |
| HSL | hsl(266, 55%, 38%) |
| HSV | hsv(266, 71%, 59%) |
| CMYK | cmyk(40.4%, 70.9%, 0%, 40.8%) |
| CIE-LAB | lab(29.93, 43.45, -50.81) |
| CIE-LCH | lch(29.93, 66.85, 310.53°) |
| OKLab | oklab(41.52% 0.079 -0.145) |
| OKLCH | oklch(41.52% 0.165 298.6) |
| XYZ | xyz(10.7016, 6.2092, 29.9068) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.77
Darkslateblue
#483D8B
ΔE00 6.72
Purple (survey)
#7E1E9C
ΔE00 6.92
Indigo Blue
#3A18B1
ΔE00 7.13
Indigo
#4B0082
ΔE00 7.49
Blueberry
#464196
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2C97 #69972C
analogous
#2C3497 #5A2C97 #8F2C97
triadic
#5A2C97 #975A2C #2C975A
tetradic
#5A2C97 #972C34 #69972C #2C978F
square
#5A2C97 #972C34 #69972C #2C978F
split-complementary
#5A2C97 #978F2C #34972C
monochromatic
#221038 #3E1E68 #5A2C97 #763AC6 #976AD4
Accessibility & contrast
On white
9.37
#5A2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5A2C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2C97
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2C97 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#4B465E
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5a2c97; /* rgb */ color: rgb(90, 44, 151); /* oklch */ color: oklch(41.5% 0.165 298.6);
Tailwind
colors: {
custom: {
50: '#8e69b6',
500: '#5a2c97',
950: '#000000',
},
}SCSS
$custom: #5a2c97; $custom-light: #8e69b6; $custom-dark: #000000;
JSON
{
"hex": "#5a2c97",
"rgb": {
"r": 90,
"g": 44,
"b": 151
},
"hsl": {
"h": 265.794,
"s": 54.872,
"l": 38.235
},
"oklch": {
"l": 0.41518,
"c": 0.16514,
"h": 298.6
},
"luminance": 0.06209
}Semantic roles & 50–950 ramp
primary
#5A2C97
secondary
#95BA65
accent
#DE4A9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80