#5B1BA1#5B1BA1
#5B1BA1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.194 H 298.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #5B1BA1 |
|---|---|
| RGB | rgb(91, 27, 161) |
| HSL | hsl(269, 71%, 37%) |
| HSV | hsv(269, 83%, 63%) |
| CMYK | cmyk(43.5%, 83.2%, 0%, 36.9%) |
| CIE-LAB | lab(28.33, 53.60, -59.52) |
| CIE-LCH | lch(28.33, 80.10, 312.00°) |
| OKLab | oklab(40.69% 0.0927 -0.1704) |
| OKLCH | oklch(40.69% 0.194 298.5) |
| XYZ | xyz(11.1377, 5.5810, 34.2018) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.24
Rebeccapurple
#663399
ΔE00 5.28
Violet Blue
#510AC9
ΔE00 5.57
Indigo
#4B0082
ΔE00 6.07
Purple Blue
#5D21D0
ΔE00 6.63
Purple (survey)
#7E1E9C
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B1BA1 #61A11B
analogous
#1B1EA1 #5B1BA1 #9E1BA1
triadic
#5B1BA1 #A15B1B #1BA15B
tetradic
#5B1BA1 #A11B1E #61A11B #1BA19E
square
#5B1BA1 #A11B1E #61A11B #1BA19E
split-complementary
#5B1BA1 #A19E1B #1EA11B
monochromatic
#200938 #3D126D #5B1BA1 #7924D5 #9854E2
Accessibility & contrast
On white
9.92
#5B1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#5B1BA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B1BA1
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B1BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B1BA1 | 1.00 | 9.92 | 2.12 | 9.92 |
| #FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#494260
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5b1ba1; /* rgb */ color: rgb(91, 27, 161); /* oklch */ color: oklch(40.7% 0.194 298.5);
Tailwind
colors: {
custom: {
50: '#9161be',
500: '#5b1ba1',
950: '#000000',
},
}SCSS
$custom: #5b1ba1; $custom-light: #9161be; $custom-dark: #000000;
JSON
{
"hex": "#5b1ba1",
"rgb": {
"r": 91,
"g": 27,
"b": 161
},
"hsl": {
"h": 268.657,
"s": 71.277,
"l": 36.863
},
"oklch": {
"l": 0.40688,
"c": 0.19403,
"h": 298.5
},
"luminance": 0.05581
}Semantic roles & 50–950 ramp
primary
#5B1BA1
secondary
#8EC552
accent
#EE3A98
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81