#5B179E#5B179E
#5B179E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.194 H 299.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5B179E |
|---|---|
| RGB | rgb(91, 23, 158) |
| HSL | hsl(270, 75%, 35%) |
| HSV | hsv(270, 85%, 62%) |
| CMYK | cmyk(42.4%, 85.4%, 0%, 38%) |
| CIE-LAB | lab(27.59, 54.23, -58.92) |
| CIE-LCH | lch(27.59, 80.07, 312.63°) |
| OKLab | oklab(40.09% 0.0964 -0.1686) |
| OKLCH | oklch(40.09% 0.194 299.8) |
| XYZ | xyz(10.7908, 5.3054, 32.7967) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.43
Indigo Blue
#3A18B1
ΔE00 5.47
Rebeccapurple
#663399
ΔE00 5.63
Violet Blue
#510AC9
ΔE00 5.95
Purple (survey)
#7E1E9C
ΔE00 6.94
Indigo (survey)
#380282
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B179E #5A9E17
analogous
#17179E #5B179E #9E179D
triadic
#5B179E #9E5B17 #179E5B
tetradic
#5B179E #9E1717 #5A9E17 #179D9E
square
#5B179E #9E1717 #5A9E17 #179D9E
split-complementary
#5B179E #9D9E17 #179E17
monochromatic
#1D0733 #3C0F69 #5B179E #7A1FD3 #984BE5
Accessibility & contrast
On white
10.19
#5B179E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#5B179E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B179E
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B179E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B179E | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4B3F5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5b179e; /* rgb */ color: rgb(91, 23, 158); /* oklch */ color: oklch(40.1% 0.194 299.8);
Tailwind
colors: {
custom: {
50: '#915fbc',
500: '#5b179e',
950: '#000000',
},
}SCSS
$custom: #5b179e; $custom-light: #915fbc; $custom-dark: #000000;
JSON
{
"hex": "#5b179e",
"rgb": {
"r": 91,
"g": 23,
"b": 158
},
"hsl": {
"h": 270.222,
"s": 74.586,
"l": 35.49
},
"oklch": {
"l": 0.4009,
"c": 0.19423,
"h": 299.8
},
"luminance": 0.05306
}Semantic roles & 50–950 ramp
primary
#5B179E
secondary
#88C64A
accent
#F13793
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981