#5C1B9E#5C1B9E
#5C1B9E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.191 H 299.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #5C1B9E |
|---|---|
| RGB | rgb(92, 27, 158) |
| HSL | hsl(270, 71%, 36%) |
| HSV | hsv(270, 83%, 62%) |
| CMYK | cmyk(41.8%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(28.19, 53.02, -57.92) |
| CIE-LCH | lch(28.19, 78.52, 312.47°) |
| OKLab | oklab(40.53% 0.0953 -0.1657) |
| OKLCH | oklch(40.53% 0.191 299.9) |
| XYZ | xyz(10.9756, 5.5277, 32.8298) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.08
Indigo Blue
#3A18B1
ΔE00 5.67
Indigo
#4B0082
ΔE00 5.81
Violet Blue
#510AC9
ΔE00 6.06
Purple (survey)
#7E1E9C
ΔE00 6.65
Purple Blue
#5D21D0
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C1B9E #5D9E1B
analogous
#1B1C9E #5C1B9E #9E1B9E
triadic
#5C1B9E #9E5C1B #1B9E5C
tetradic
#5C1B9E #9E1B1C #5D9E1B #1B9E9E
square
#5C1B9E #9E1B1C #5D9E1B #1B9E9E
split-complementary
#5C1B9E #9E9E1B #1C9E1B
monochromatic
#1F0935 #3E126A #5C1B9E #7A24D2 #9952E1
Accessibility & contrast
On white
9.97
#5C1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#5C1B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C1B9E
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C1B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C1B9E | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4C415E
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #5c1b9e; /* rgb */ color: rgb(92, 27, 158); /* oklch */ color: oklch(40.5% 0.191 299.9);
Tailwind
colors: {
custom: {
50: '#9161bc',
500: '#5c1b9e',
950: '#000000',
},
}SCSS
$custom: #5c1b9e; $custom-light: #9161bc; $custom-dark: #000000;
JSON
{
"hex": "#5c1b9e",
"rgb": {
"r": 92,
"g": 27,
"b": 158
},
"hsl": {
"h": 269.771,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.40534,
"c": 0.19116,
"h": 299.9
},
"luminance": 0.05528
}Semantic roles & 50–950 ramp
primary
#5C1B9E
secondary
#8BC451
accent
#EE3A95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81