#5B1EA7#5B1EA7
#5B1EA7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.5% C 0.198 H 296.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #5B1EA7 |
|---|---|
| RGB | rgb(91, 30, 167) |
| HSL | hsl(267, 70%, 39%) |
| HSV | hsv(267, 82%, 65%) |
| CMYK | cmyk(45.5%, 82%, 0%, 34.5%) |
| CIE-LAB | lab(29.27, 53.98, -61.62) |
| CIE-LCH | lch(29.27, 81.92, 311.22°) |
| OKLab | oklab(41.51% 0.0886 -0.1766) |
| OKLCH | oklch(41.51% 0.198 296.6) |
| XYZ | xyz(11.7519, 5.9424, 37.0796) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Violet Blue
#510AC9
ΔE00 4.83
Indigo Blue
#3A18B1
ΔE00 4.88
Rebeccapurple
#663399
ΔE00 5.24
Purple Blue
#5D21D0
ΔE00 5.65
Indigo
#4B0082
ΔE00 7.01
Purple (survey)
#7E1E9C
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B1EA7 #6AA71E
analogous
#1E26A7 #5B1EA7 #9F1EA7
triadic
#5B1EA7 #A75B1E #1EA75B
tetradic
#5B1EA7 #A71E26 #6AA71E #1EA79F
square
#5B1EA7 #A71E26 #6AA71E #1EA79F
split-complementary
#5B1EA7 #A79F1E #26A71E
monochromatic
#220B3F #3F1573 #5B1EA7 #782AD9 #985DE2
Accessibility & contrast
On white
9.60
#5B1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5B1EA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B1EA7
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B1EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B1EA7 | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#464664
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b1ea7; /* rgb */ color: rgb(91, 30, 167); /* oklch */ color: oklch(41.5% 0.198 296.6);
Tailwind
colors: {
custom: {
50: '#9163c2',
500: '#5b1ea7',
950: '#000000',
},
}SCSS
$custom: #5b1ea7; $custom-light: #9163c2; $custom-dark: #000000;
JSON
{
"hex": "#5b1ea7",
"rgb": {
"r": 91,
"g": 30,
"b": 167
},
"hsl": {
"h": 266.715,
"s": 69.543,
"l": 38.627
},
"oklch": {
"l": 0.41507,
"c": 0.1976,
"h": 296.6
},
"luminance": 0.05943
}Semantic roles & 50–950 ramp
primary
#5B1EA7
secondary
#96C65B
accent
#EC3B9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82