#5A179E#5A179E
#5A179E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.194 H 299.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).
Color values
| HEX | #5A179E |
|---|---|
| RGB | rgb(90, 23, 158) |
| HSL | hsl(270, 75%, 35%) |
| HSV | hsv(270, 85%, 62%) |
| CMYK | cmyk(43%, 85.4%, 0%, 38%) |
| CIE-LAB | lab(27.45, 54.09, -59.15) |
| CIE-LCH | lch(27.45, 80.15, 312.44°) |
| OKLab | oklab(39.97% 0.0948 -0.1693) |
| OKLCH | oklch(39.97% 0.194 299.2) |
| XYZ | xyz(10.6928, 5.2549, 32.7921) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.32
Indigo
#4B0082
ΔE00 5.37
Rebeccapurple
#663399
ΔE00 5.73
Violet Blue
#510AC9
ΔE00 5.89
Indigo (survey)
#380282
ΔE00 6.98
Purple (survey)
#7E1E9C
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A179E #5B9E17
analogous
#17179E #5A179E #9D179E
triadic
#5A179E #9E5A17 #179E5A
tetradic
#5A179E #9E1717 #5B9E17 #179E9D
square
#5A179E #9E1717 #5B9E17 #179E9D
split-complementary
#5A179E #9E9D17 #179E17
monochromatic
#1D0733 #3C0F69 #5A179E #781FD3 #974BE5
Accessibility & contrast
On white
10.24
#5A179E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#5A179E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A179E
10.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A179E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A179E | 1.00 | 10.24 | 2.05 | 10.24 |
| #FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#493F5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5a179e; /* rgb */ color: rgb(90, 23, 158); /* oklch */ color: oklch(40.0% 0.194 299.2);
Tailwind
colors: {
custom: {
50: '#905fbc',
500: '#5a179e',
950: '#000000',
},
}SCSS
$custom: #5a179e; $custom-light: #905fbc; $custom-dark: #000000;
JSON
{
"hex": "#5a179e",
"rgb": {
"r": 90,
"g": 23,
"b": 158
},
"hsl": {
"h": 269.778,
"s": 74.586,
"l": 35.49
},
"oklch": {
"l": 0.39965,
"c": 0.19409,
"h": 299.2
},
"luminance": 0.05255
}Semantic roles & 50–950 ramp
primary
#5A179E
secondary
#89C64A
accent
#F13795
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981