#5A259A#5A259A
#5A259A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.177 H 298.8°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #5A259A |
|---|---|
| RGB | rgb(90, 37, 154) |
| HSL | hsl(267, 61%, 37%) |
| HSV | hsv(267, 76%, 60%) |
| CMYK | cmyk(41.6%, 76%, 0%, 39.6%) |
| CIE-LAB | lab(28.98, 47.62, -54.20) |
| CIE-LCH | lch(28.98, 72.15, 311.30°) |
| OKLab | oklab(40.92% 0.0853 -0.1549) |
| OKLCH | oklch(40.92% 0.177 298.8) |
| XYZ | xyz(10.7093, 5.8297, 31.1266) |
| Luminance | 0.0583 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.81
Indigo Blue
#3A18B1
ΔE00 6.17
Indigo
#4B0082
ΔE00 6.50
Purple (survey)
#7E1E9C
ΔE00 6.76
Violet Blue
#510AC9
ΔE00 6.93
Purple Blue
#5D21D0
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A259A #659A25
analogous
#252B9A #5A259A #94259A
triadic
#5A259A #9A5A25 #259A5A
tetradic
#5A259A #9A252B #659A25 #259A94
square
#5A259A #9A252B #659A25 #259A94
split-complementary
#5A259A #9A9425 #2B9A25
monochromatic
#200D37 #3D1969 #5A259A #7731CB #9760D9
Accessibility & contrast
On white
9.70
#5A259A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#5A259A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A259A
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A259A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A259A | 1.00 | 9.70 | 2.17 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4A435E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5a259a; /* rgb */ color: rgb(90, 37, 154); /* oklch */ color: oklch(40.9% 0.177 298.8);
Tailwind
colors: {
custom: {
50: '#8f65b9',
500: '#5a259a',
950: '#000000',
},
}SCSS
$custom: #5a259a; $custom-light: #8f65b9; $custom-dark: #000000;
JSON
{
"hex": "#5a259a",
"rgb": {
"r": 90,
"g": 37,
"b": 154
},
"hsl": {
"h": 267.179,
"s": 61.257,
"l": 37.451
},
"oklch": {
"l": 0.40919,
"c": 0.17686,
"h": 298.8
},
"luminance": 0.0583
}Semantic roles & 50–950 ramp
primary
#5A259A
secondary
#92BE5D
accent
#E4439B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80