#5A259E#5A259E
#5A259E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.181 H 297.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A259E |
|---|---|
| RGB | rgb(90, 37, 158) |
| HSL | hsl(266, 62%, 38%) |
| HSV | hsv(266, 77%, 62%) |
| CMYK | cmyk(43%, 76.6%, 0%, 38%) |
| CIE-LAB | lab(29.32, 48.65, -56.08) |
| CIE-LCH | lch(29.32, 74.24, 310.95°) |
| OKLab | oklab(41.27% 0.0843 -0.1604) |
| OKLCH | oklch(41.27% 0.181 297.7) |
| XYZ | xyz(11.0480, 5.9652, 32.9104) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.98
Indigo Blue
#3A18B1
ΔE00 5.77
Violet Blue
#510AC9
ΔE00 6.36
Purple Blue
#5D21D0
ΔE00 6.82
Indigo
#4B0082
ΔE00 6.83
Purple (survey)
#7E1E9C
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A259E #699E25
analogous
#252C9E #5A259E #96259E
triadic
#5A259E #9E5A25 #259E5A
tetradic
#5A259E #9E252C #699E25 #259E96
square
#5A259E #9E252C #699E25 #259E96
split-complementary
#5A259E #9E9625 #2C9E25
monochromatic
#220E3B #3E196C #5A259E #7631CF #9763DA
Accessibility & contrast
On white
9.58
#5A259E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5A259E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A259E
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A259E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A259E | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#494560
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a259e; /* rgb */ color: rgb(90, 37, 158); /* oklch */ color: oklch(41.3% 0.181 297.7);
Tailwind
colors: {
custom: {
50: '#8f65bc',
500: '#5a259e',
950: '#000000',
},
}SCSS
$custom: #5a259e; $custom-light: #8f65bc; $custom-dark: #000000;
JSON
{
"hex": "#5a259e",
"rgb": {
"r": 90,
"g": 37,
"b": 158
},
"hsl": {
"h": 266.281,
"s": 62.051,
"l": 38.235
},
"oklch": {
"l": 0.41269,
"c": 0.18123,
"h": 297.7
},
"luminance": 0.05965
}Semantic roles & 50–950 ramp
primary
#5A259E
secondary
#95C05F
accent
#E5439E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81