#5B179F#5B179F
#5B179F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.195 H 299.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).
Color values
| HEX | #5B179F |
|---|---|
| RGB | rgb(91, 23, 159) |
| HSL | hsl(270, 75%, 36%) |
| HSV | hsv(270, 86%, 62%) |
| CMYK | cmyk(42.8%, 85.5%, 0%, 37.6%) |
| CIE-LAB | lab(27.68, 54.47, -59.37) |
| CIE-LCH | lch(27.68, 80.57, 312.53°) |
| OKLab | oklab(40.18% 0.096 -0.17) |
| OKLCH | oklch(40.18% 0.195 299.5) |
| XYZ | xyz(10.8772, 5.3400, 33.2518) |
| Luminance | 0.0534 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.38
Indigo
#4B0082
ΔE00 5.54
Rebeccapurple
#663399
ΔE00 5.66
Violet Blue
#510AC9
ΔE00 5.80
Purple (survey)
#7E1E9C
ΔE00 6.98
Purple Blue
#5D21D0
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B179F #5B9F17
analogous
#17179F #5B179F #9F179F
triadic
#5B179F #9F5B17 #179F5B
tetradic
#5B179F #9F1717 #5B9F17 #179F9F
square
#5B179F #9F1717 #5B9F17 #179F9F
split-complementary
#5B179F #9F9F17 #179F17
monochromatic
#1E0834 #3C0F6A #5B179F #7A1FD4 #984BE5
Accessibility & contrast
On white
10.15
#5B179F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#5B179F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B179F
10.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B179F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B179F | 1.00 | 10.15 | 2.07 | 10.15 |
| #FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#4A405E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5b179f; /* rgb */ color: rgb(91, 23, 159); /* oklch */ color: oklch(40.2% 0.195 299.5);
Tailwind
colors: {
custom: {
50: '#915fbc',
500: '#5b179f',
950: '#000000',
},
}SCSS
$custom: #5b179f; $custom-light: #915fbc; $custom-dark: #000000;
JSON
{
"hex": "#5b179f",
"rgb": {
"r": 91,
"g": 23,
"b": 159
},
"hsl": {
"h": 270,
"s": 74.725,
"l": 35.686
},
"oklch": {
"l": 0.40184,
"c": 0.19521,
"h": 299.5
},
"luminance": 0.0534
}Semantic roles & 50–950 ramp
primary
#5B179F
secondary
#89C74B
accent
#F13694
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981