#5A269E#5A269E
#5A269E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.180 H 297.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5A269E |
|---|---|
| RGB | rgb(90, 38, 158) |
| HSL | hsl(266, 61%, 38%) |
| HSV | hsv(266, 76%, 62%) |
| CMYK | cmyk(43%, 75.9%, 0%, 38%) |
| CIE-LAB | lab(29.48, 48.20, -55.82) |
| CIE-LCH | lch(29.48, 73.74, 310.81°) |
| OKLab | oklab(41.38% 0.0834 -0.1597) |
| OKLCH | oklch(41.38% 0.18 297.6) |
| XYZ | xyz(11.0795, 6.0283, 32.9210) |
| Luminance | 0.0603 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.85
Indigo Blue
#3A18B1
ΔE00 5.84
Violet Blue
#510AC9
ΔE00 6.43
Purple Blue
#5D21D0
ΔE00 6.81
Purple (survey)
#7E1E9C
ΔE00 6.91
Indigo
#4B0082
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A269E #6A9E26
analogous
#262E9E #5A269E #96269E
triadic
#5A269E #9E5A26 #269E5A
tetradic
#5A269E #9E262E #6A9E26 #269E96
square
#5A269E #9E262E #6A9E26 #269E96
split-complementary
#5A269E #9E9626 #2E9E26
monochromatic
#220E3B #3E1A6D #5A269E #7633CE #9765DA
Accessibility & contrast
On white
9.52
#5A269E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5A269E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A269E
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A269E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A269E | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#494660
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a269e; /* rgb */ color: rgb(90, 38, 158); /* oklch */ color: oklch(41.4% 0.180 297.6);
Tailwind
colors: {
custom: {
50: '#8f66bc',
500: '#5a269e',
950: '#000000',
},
}SCSS
$custom: #5a269e; $custom-light: #8f66bc; $custom-dark: #000000;
JSON
{
"hex": "#5a269e",
"rgb": {
"r": 90,
"g": 38,
"b": 158
},
"hsl": {
"h": 266,
"s": 61.224,
"l": 38.431
},
"oklch": {
"l": 0.41381,
"c": 0.18015,
"h": 297.6
},
"luminance": 0.06029
}Semantic roles & 50–950 ramp
primary
#5A269E
secondary
#96C060
accent
#E4439F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81