#5A289F#5A289F
#5A289F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.179 H 297.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5A289F |
|---|---|
| RGB | rgb(90, 40, 159) |
| HSL | hsl(265, 60%, 39%) |
| HSV | hsv(265, 75%, 62%) |
| CMYK | cmyk(43.4%, 74.8%, 0%, 37.6%) |
| CIE-LAB | lab(29.90, 47.53, -55.75) |
| CIE-LCH | lch(29.90, 73.26, 310.45°) |
| OKLab | oklab(41.7% 0.0813 -0.1595) |
| OKLCH | oklch(41.7% 0.179 297) |
| XYZ | xyz(11.2316, 6.1942, 33.3980) |
| Luminance | 0.0619 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.65
Indigo Blue
#3A18B1
ΔE00 5.92
Violet Blue
#510AC9
ΔE00 6.45
Purple Blue
#5D21D0
ΔE00 6.66
Purple (survey)
#7E1E9C
ΔE00 6.99
Indigo
#4B0082
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A289F #6D9F28
analogous
#28329F #5A289F #96289F
triadic
#5A289F #9F5A28 #289F5A
tetradic
#5A289F #9F2832 #6D9F28 #289F96
square
#5A289F #9F2832 #6D9F28 #289F96
split-complementary
#5A289F #9F9628 #329F28
monochromatic
#230F3D #3E1C6E #5A289F #7637CD #9868D9
Accessibility & contrast
On white
9.38
#5A289F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5A289F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A289F
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A289F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A289F | 1.00 | 9.38 | 2.24 | 9.38 |
| #FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#484761
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5a289f; /* rgb */ color: rgb(90, 40, 159); /* oklch */ color: oklch(41.7% 0.179 297.0);
Tailwind
colors: {
custom: {
50: '#8f67bc',
500: '#5a289f',
950: '#000000',
},
}SCSS
$custom: #5a289f; $custom-light: #8f67bc; $custom-dark: #000000;
JSON
{
"hex": "#5a289f",
"rgb": {
"r": 90,
"g": 40,
"b": 159
},
"hsl": {
"h": 265.21,
"s": 59.799,
"l": 39.02
},
"oklch": {
"l": 0.41699,
"c": 0.17903,
"h": 297
},
"luminance": 0.06194
}Semantic roles & 50–950 ramp
primary
#5A289F
secondary
#99BF64
accent
#E345A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81