#5C179E#5C179E
#5C179E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.194 H 300.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #5C179E |
|---|---|
| RGB | rgb(92, 23, 158) |
| HSL | hsl(271, 75%, 35%) |
| HSV | hsv(271, 85%, 62%) |
| CMYK | cmyk(41.8%, 85.4%, 0%, 38%) |
| CIE-LAB | lab(27.73, 54.37, -58.68) |
| CIE-LCH | lch(27.73, 79.99, 312.81°) |
| OKLab | oklab(40.22% 0.0979 -0.1679) |
| OKLCH | oklch(40.22% 0.194 300.2) |
| XYZ | xyz(10.8900, 5.3566, 32.8013) |
| Luminance | 0.0536 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.50
Rebeccapurple
#663399
ΔE00 5.54
Indigo Blue
#3A18B1
ΔE00 5.62
Violet Blue
#510AC9
ΔE00 6.01
Purple (survey)
#7E1E9C
ΔE00 6.77
Indigo (survey)
#380282
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C179E #599E17
analogous
#19179E #5C179E #9E179C
triadic
#5C179E #9E5C17 #179E5C
tetradic
#5C179E #9E1917 #599E17 #179C9E
square
#5C179E #9E1917 #599E17 #179C9E
split-complementary
#5C179E #9C9E17 #179E19
monochromatic
#1E0733 #3D0F69 #5C179E #7B1FD3 #994BE5
Accessibility & contrast
On white
10.14
#5C179E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#5C179E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C179E
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C179E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C179E | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4C3F5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5c179e; /* rgb */ color: rgb(92, 23, 158); /* oklch */ color: oklch(40.2% 0.194 300.2);
Tailwind
colors: {
custom: {
50: '#915fbc',
500: '#5c179e',
950: '#000000',
},
}SCSS
$custom: #5c179e; $custom-light: #915fbc; $custom-dark: #000000;
JSON
{
"hex": "#5c179e",
"rgb": {
"r": 92,
"g": 23,
"b": 158
},
"hsl": {
"h": 270.667,
"s": 74.586,
"l": 35.49
},
"oklch": {
"l": 0.40216,
"c": 0.19438,
"h": 300.2
},
"luminance": 0.05357
}Semantic roles & 50–950 ramp
primary
#5C179E
secondary
#87C64A
accent
#F13792
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981