#5A2C8F#5A2C8F
#5A2C8F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.156 H 301.0°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2C8F |
|---|---|
| RGB | rgb(90, 44, 143) |
| HSL | hsl(268, 53%, 37%) |
| HSV | hsv(268, 69%, 56%) |
| CMYK | cmyk(37.1%, 69.2%, 0%, 43.9%) |
| CIE-LAB | lab(29.31, 41.34, -46.91) |
| CIE-LCH | lch(29.31, 62.53, 311.38°) |
| OKLab | oklab(40.87% 0.0803 -0.1336) |
| OKLCH | oklch(40.87% 0.156 301) |
| XYZ | xyz(10.0739, 5.9581, 26.6006) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.89
Darkslateblue
#483D8B
ΔE00 6.63
Purple (survey)
#7E1E9C
ΔE00 6.89
Indigo
#4B0082
ΔE00 7.21
Blueberry
#464196
ΔE00 7.92
Indigo Blue
#3A18B1
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2C8F #618F2C
analogous
#2C308F #5A2C8F #8C2C8F
triadic
#5A2C8F #8F5A2C #2C8F5A
tetradic
#5A2C8F #8F2C30 #618F2C #2C8F8C
square
#5A2C8F #8F2C30 #618F2C #2C8F8C
split-complementary
#5A2C8F #8F8C2C #308F2C
monochromatic
#1F0F31 #3D1E60 #5A2C8F #773ABE #9766D0
Accessibility & contrast
On white
9.58
#5A2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5A2C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2C8F
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2C8F | 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)
#004592
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#4F435A
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a2c8f; /* rgb */ color: rgb(90, 44, 143); /* oklch */ color: oklch(40.9% 0.156 301.0);
Tailwind
colors: {
custom: {
50: '#8d69b0',
500: '#5a2c8f',
950: '#000000',
},
}SCSS
$custom: #5a2c8f; $custom-light: #8d69b0; $custom-dark: #000000;
JSON
{
"hex": "#5a2c8f",
"rgb": {
"r": 90,
"g": 44,
"b": 143
},
"hsl": {
"h": 267.879,
"s": 52.941,
"l": 36.667
},
"oklch": {
"l": 0.40873,
"c": 0.15582,
"h": 301
},
"luminance": 0.05958
}Semantic roles & 50–950 ramp
primary
#5A2C8F
secondary
#8EB661
accent
#DC4B99
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80