#5B16A1#5B16A1
#5B16A1 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.198 H 299.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5B16A1 |
|---|---|
| RGB | rgb(91, 22, 161) |
| HSL | hsl(270, 76%, 36%) |
| HSV | hsv(270, 86%, 63%) |
| CMYK | cmyk(43.5%, 86.3%, 0%, 36.9%) |
| CIE-LAB | lab(27.77, 55.25, -60.45) |
| CIE-LCH | lch(27.77, 81.90, 312.43°) |
| OKLab | oklab(40.3% 0.0959 -0.1731) |
| OKLCH | oklch(40.3% 0.198 299) |
| XYZ | xyz(11.0327, 5.3710, 34.1667) |
| Luminance | 0.0537 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.19
Violet Blue
#510AC9
ΔE00 5.51
Indigo
#4B0082
ΔE00 5.70
Rebeccapurple
#663399
ΔE00 5.82
Purple Blue
#5D21D0
ΔE00 6.83
Purple (survey)
#7E1E9C
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B16A1 #5CA116
analogous
#1617A1 #5B16A1 #A016A1
triadic
#5B16A1 #A15B16 #16A15B
tetradic
#5B16A1 #A11617 #5CA116 #16A1A0
square
#5B16A1 #A11617 #5CA116 #16A1A0
split-complementary
#5B16A1 #A1A016 #17A116
monochromatic
#1E0735 #3D0F6B #5B16A1 #791DD7 #984BE6
Accessibility & contrast
On white
10.12
#5B16A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#5B16A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B16A1
10.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B16A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B16A1 | 1.00 | 10.12 | 2.07 | 10.12 |
| #FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#49405F
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #5b16a1; /* rgb */ color: rgb(91, 22, 161); /* oklch */ color: oklch(40.3% 0.198 299.0);
Tailwind
colors: {
custom: {
50: '#915fbe',
500: '#5b16a1',
950: '#000000',
},
}SCSS
$custom: #5b16a1; $custom-light: #915fbe; $custom-dark: #000000;
JSON
{
"hex": "#5b16a1",
"rgb": {
"r": 91,
"g": 22,
"b": 161
},
"hsl": {
"h": 269.784,
"s": 75.956,
"l": 35.882
},
"oklch": {
"l": 0.403,
"c": 0.19789,
"h": 299
},
"luminance": 0.05371
}Semantic roles & 50–950 ramp
primary
#5B16A1
secondary
#8AC84B
accent
#F33595
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981