#5A249E#5A249E
#5A249E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.182 H 297.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #5A249E |
|---|---|
| RGB | rgb(90, 36, 158) |
| HSL | hsl(267, 63%, 38%) |
| HSV | hsv(267, 77%, 62%) |
| CMYK | cmyk(43%, 77.2%, 0%, 38%) |
| CIE-LAB | lab(29.17, 49.10, -56.33) |
| CIE-LCH | lch(29.17, 74.72, 311.08°) |
| OKLab | oklab(41.16% 0.0851 -0.1612) |
| OKLCH | oklch(41.16% 0.182 297.8) |
| XYZ | xyz(11.0173, 5.9038, 32.9002) |
| Luminance | 0.0590 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.11
Indigo Blue
#3A18B1
ΔE00 5.71
Violet Blue
#510AC9
ΔE00 6.29
Indigo
#4B0082
ΔE00 6.69
Purple Blue
#5D21D0
ΔE00 6.83
Purple (survey)
#7E1E9C
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A249E #689E24
analogous
#242B9E #5A249E #97249E
triadic
#5A249E #9E5A24 #249E5A
tetradic
#5A249E #9E242B #689E24 #249E97
square
#5A249E #9E242B #689E24 #249E97
split-complementary
#5A249E #9E9724 #2B9E24
monochromatic
#210D3A #3E196C #5A249E #762FD0 #9761DB
Accessibility & contrast
On white
9.63
#5A249E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5A249E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A249E
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A249E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A249E | 1.00 | 9.63 | 2.18 | 9.63 |
| #FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#494560
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a249e; /* rgb */ color: rgb(90, 36, 158); /* oklch */ color: oklch(41.2% 0.182 297.8);
Tailwind
colors: {
custom: {
50: '#8f65bc',
500: '#5a249e',
950: '#000000',
},
}SCSS
$custom: #5a249e; $custom-light: #8f65bc; $custom-dark: #000000;
JSON
{
"hex": "#5a249e",
"rgb": {
"r": 90,
"g": 36,
"b": 158
},
"hsl": {
"h": 266.557,
"s": 62.887,
"l": 38.039
},
"oklch": {
"l": 0.4116,
"c": 0.18229,
"h": 297.8
},
"luminance": 0.05904
}Semantic roles & 50–950 ramp
primary
#5A249E
secondary
#95C05E
accent
#E6429D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81