#5A2C91#5A2C91
#5A2C91 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.158 H 300.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2C91 |
|---|---|
| RGB | rgb(90, 44, 145) |
| HSL | hsl(267, 53%, 37%) |
| HSV | hsv(267, 70%, 57%) |
| CMYK | cmyk(37.9%, 69.7%, 0%, 43.1%) |
| CIE-LAB | lab(29.46, 41.86, -47.90) |
| CIE-LCH | lch(29.46, 63.61, 311.15°) |
| OKLab | oklab(41.03% 0.08 -0.1365) |
| OKLCH | oklch(41.03% 0.158 300.4) |
| XYZ | xyz(10.2267, 6.0193, 27.4056) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.80
Darkslateblue
#483D8B
ΔE00 6.63
Purple (survey)
#7E1E9C
ΔE00 6.88
Indigo
#4B0082
ΔE00 7.25
Blueberry
#464196
ΔE00 7.82
Indigo Blue
#3A18B1
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2C91 #63912C
analogous
#2C3091 #5A2C91 #8D2C91
triadic
#5A2C91 #915A2C #2C915A
tetradic
#5A2C91 #912C30 #63912C #2C918D
square
#5A2C91 #912C30 #63912C #2C918D
split-complementary
#5A2C91 #918D2C #30912C
monochromatic
#201033 #3D1E62 #5A2C91 #773AC0 #9767D1
Accessibility & contrast
On white
9.53
#5A2C91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5A2C91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2C91
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2C91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2C91 | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#4E445B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a2c91; /* rgb */ color: rgb(90, 44, 145); /* oklch */ color: oklch(41.0% 0.158 300.4);
Tailwind
colors: {
custom: {
50: '#8d69b2',
500: '#5a2c91',
950: '#000000',
},
}SCSS
$custom: #5a2c91; $custom-light: #8d69b2; $custom-dark: #000000;
JSON
{
"hex": "#5a2c91",
"rgb": {
"r": 90,
"g": 44,
"b": 145
},
"hsl": {
"h": 267.327,
"s": 53.439,
"l": 37.059
},
"oklch": {
"l": 0.41032,
"c": 0.15816,
"h": 300.4
},
"luminance": 0.06019
}Semantic roles & 50–950 ramp
primary
#5A2C91
secondary
#90B762
accent
#DD4B9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80