#5A289A#5A289A
#5A289A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.173 H 298.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5A289A |
|---|---|
| RGB | rgb(90, 40, 154) |
| HSL | hsl(266, 59%, 38%) |
| HSV | hsv(266, 74%, 60%) |
| CMYK | cmyk(41.6%, 74%, 0%, 39.6%) |
| CIE-LAB | lab(29.47, 46.22, -53.39) |
| CIE-LCH | lch(29.47, 70.62, 310.88°) |
| OKLab | oklab(41.27% 0.0825 -0.1526) |
| OKLCH | oklch(41.27% 0.173 298.4) |
| XYZ | xyz(10.8065, 6.0242, 31.1590) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.38
Indigo Blue
#3A18B1
ΔE00 6.40
Purple (survey)
#7E1E9C
ΔE00 6.82
Indigo
#4B0082
ΔE00 6.96
Violet Blue
#510AC9
ΔE00 7.15
Purple Blue
#5D21D0
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A289A #689A28
analogous
#282F9A #5A289A #93289A
triadic
#5A289A #9A5A28 #289A5A
tetradic
#5A289A #9A282F #689A28 #289A93
square
#5A289A #9A282F #689A28 #289A93
split-complementary
#5A289A #9A9328 #2F9A28
monochromatic
#210F39 #3E1B69 #5A289A #7635CA #9765D7
Accessibility & contrast
On white
9.52
#5A289A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5A289A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A289A
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A289A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A289A | 1.00 | 9.52 | 2.20 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4A455F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a289a; /* rgb */ color: rgb(90, 40, 154); /* oklch */ color: oklch(41.3% 0.173 298.4);
Tailwind
colors: {
custom: {
50: '#8f67b9',
500: '#5a289a',
950: '#000000',
},
}SCSS
$custom: #5a289a; $custom-light: #8f67b9; $custom-dark: #000000;
JSON
{
"hex": "#5a289a",
"rgb": {
"r": 90,
"g": 40,
"b": 154
},
"hsl": {
"h": 266.316,
"s": 58.763,
"l": 38.039
},
"oklch": {
"l": 0.41268,
"c": 0.17345,
"h": 298.4
},
"luminance": 0.06024
}Semantic roles & 50–950 ramp
primary
#5A289A
secondary
#95BD61
accent
#E2469D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80