#5A279E#5A279E
#5A279E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.179 H 297.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #5A279E |
|---|---|
| RGB | rgb(90, 39, 158) |
| HSL | hsl(266, 60%, 39%) |
| HSV | hsv(266, 75%, 62%) |
| CMYK | cmyk(43%, 75.3%, 0%, 38%) |
| CIE-LAB | lab(29.65, 47.73, -55.55) |
| CIE-LCH | lch(29.65, 73.24, 310.67°) |
| OKLab | oklab(41.5% 0.0825 -0.1589) |
| OKLCH | oklch(41.5% 0.179 297.4) |
| XYZ | xyz(11.1119, 6.0931, 32.9318) |
| Luminance | 0.0609 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.71
Indigo Blue
#3A18B1
ΔE00 5.92
Violet Blue
#510AC9
ΔE00 6.51
Purple Blue
#5D21D0
ΔE00 6.81
Purple (survey)
#7E1E9C
ΔE00 6.93
Indigo
#4B0082
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A279E #6B9E27
analogous
#27309E #5A279E #95279E
triadic
#5A279E #9E5A27 #279E5A
tetradic
#5A279E #9E2730 #6B9E27 #279E95
square
#5A279E #9E2730 #6B9E27 #279E95
split-complementary
#5A279E #9E9527 #309E27
monochromatic
#220F3C #3E1B6D #5A279E #7635CD #9766D9
Accessibility & contrast
On white
9.47
#5A279E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#5A279E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A279E
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A279E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A279E | 1.00 | 9.47 | 2.22 | 9.47 |
| #FFFFFF | 9.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#484661
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5a279e; /* rgb */ color: rgb(90, 39, 158); /* oklch */ color: oklch(41.5% 0.179 297.4);
Tailwind
colors: {
custom: {
50: '#8f66bc',
500: '#5a279e',
950: '#000000',
},
}SCSS
$custom: #5a279e; $custom-light: #8f66bc; $custom-dark: #000000;
JSON
{
"hex": "#5a279e",
"rgb": {
"r": 90,
"g": 39,
"b": 158
},
"hsl": {
"h": 265.714,
"s": 60.406,
"l": 38.627
},
"oklch": {
"l": 0.41495,
"c": 0.17904,
"h": 297.4
},
"luminance": 0.06093
}Semantic roles & 50–950 ramp
primary
#5A279E
secondary
#97BF62
accent
#E4449F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81