#5A189E#5A189E
#5A189E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.193 H 299.2°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).
Color values
| HEX | #5A189E |
|---|---|
| RGB | rgb(90, 24, 158) |
| HSL | hsl(270, 74%, 36%) |
| HSV | hsv(270, 85%, 62%) |
| CMYK | cmyk(43%, 84.8%, 0%, 38%) |
| CIE-LAB | lab(27.56, 53.77, -58.97) |
| CIE-LCH | lch(27.56, 79.80, 312.36°) |
| OKLab | oklab(40.04% 0.0942 -0.1688) |
| OKLCH | oklch(40.04% 0.193 299.2) |
| XYZ | xyz(10.7131, 5.2954, 32.7988) |
| Luminance | 0.0530 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.33
Indigo
#4B0082
ΔE00 5.44
Rebeccapurple
#663399
ΔE00 5.62
Violet Blue
#510AC9
ΔE00 5.90
Indigo (survey)
#380282
ΔE00 7.04
Purple (survey)
#7E1E9C
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A189E #5C9E18
analogous
#18199E #5A189E #9D189E
triadic
#5A189E #9E5A18 #189E5A
tetradic
#5A189E #9E1819 #5C9E18 #189E9D
square
#5A189E #9E1819 #5C9E18 #189E9D
split-complementary
#5A189E #9E9D18 #199E18
monochromatic
#1D0834 #3C1069 #5A189E #7820D3 #974DE4
Accessibility & contrast
On white
10.20
#5A189E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#5A189E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A189E
10.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A189E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A189E | 1.00 | 10.20 | 2.06 | 10.20 |
| #FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#49405E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5a189e; /* rgb */ color: rgb(90, 24, 158); /* oklch */ color: oklch(40.0% 0.193 299.2);
Tailwind
colors: {
custom: {
50: '#9060bc',
500: '#5a189e',
950: '#000000',
},
}SCSS
$custom: #5a189e; $custom-light: #9060bc; $custom-dark: #000000;
JSON
{
"hex": "#5a189e",
"rgb": {
"r": 90,
"g": 24,
"b": 158
},
"hsl": {
"h": 269.552,
"s": 73.626,
"l": 35.686
},
"oklch": {
"l": 0.40042,
"c": 0.19332,
"h": 299.2
},
"luminance": 0.05296
}Semantic roles & 50–950 ramp
primary
#5A189E
secondary
#8AC64C
accent
#F03895
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981