#5B1F9E#5B1F9E
#5B1F9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.187 H 299.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5B1F9E |
|---|---|
| RGB | rgb(91, 31, 158) |
| HSL | hsl(268, 67%, 37%) |
| HSV | hsv(268, 80%, 62%) |
| CMYK | cmyk(42.4%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(28.57, 51.36, -57.30) |
| CIE-LCH | lch(28.57, 76.95, 311.87°) |
| OKLab | oklab(40.77% 0.0908 -0.164) |
| OKLCH | oklch(40.77% 0.187 299) |
| XYZ | xyz(10.9743, 5.6726, 32.8579) |
| Luminance | 0.0567 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 5.61
Violet Blue
#510AC9
ΔE00 6.11
Indigo
#4B0082
ΔE00 6.14
Purple (survey)
#7E1E9C
ΔE00 6.74
Purple Blue
#5D21D0
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B1F9E #629E1F
analogous
#1F239E #5B1F9E #9A1F9E
triadic
#5B1F9E #9E5B1F #1F9E5B
tetradic
#5B1F9E #9E1F23 #629E1F #1F9E9A
square
#5B1F9E #9E1F23 #629E1F #1F9E9A
split-complementary
#5B1F9E #9E9A1F #239E1F
monochromatic
#200B38 #3E156B #5B1F9E #7829D1 #9859DE
Accessibility & contrast
On white
9.84
#5B1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#5B1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B1F9E
9.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B1F9E | 1.00 | 9.84 | 2.13 | 9.84 |
| #FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4A425F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5b1f9e; /* rgb */ color: rgb(91, 31, 158); /* oklch */ color: oklch(40.8% 0.187 299.0);
Tailwind
colors: {
custom: {
50: '#9063bc',
500: '#5b1f9e',
950: '#000000',
},
}SCSS
$custom: #5b1f9e; $custom-light: #9063bc; $custom-dark: #000000;
JSON
{
"hex": "#5b1f9e",
"rgb": {
"r": 91,
"g": 31,
"b": 158
},
"hsl": {
"h": 268.346,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.40771,
"c": 0.18741,
"h": 299
},
"luminance": 0.05673
}Semantic roles & 50–950 ramp
primary
#5B1F9E
secondary
#8FC256
accent
#EA3E99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81