#5A279F#5A279F
#5A279F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.180 H 297.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).
Color values
| HEX | #5A279F |
|---|---|
| RGB | rgb(90, 39, 159) |
| HSL | hsl(266, 61%, 39%) |
| HSV | hsv(266, 75%, 62%) |
| CMYK | cmyk(43.4%, 75.5%, 0%, 37.6%) |
| CIE-LAB | lab(29.73, 48.00, -56.02) |
| CIE-LCH | lch(29.73, 73.77, 310.59°) |
| OKLab | oklab(41.58% 0.0822 -0.1603) |
| OKLCH | oklch(41.58% 0.18 297.2) |
| XYZ | xyz(11.1983, 6.1277, 33.3869) |
| Luminance | 0.0613 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.77
Indigo Blue
#3A18B1
ΔE00 5.83
Violet Blue
#510AC9
ΔE00 6.37
Purple Blue
#5D21D0
ΔE00 6.66
Purple (survey)
#7E1E9C
ΔE00 6.97
Indigo
#4B0082
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A279F #6C9F27
analogous
#27309F #5A279F #96279F
triadic
#5A279F #9F5A27 #279F5A
tetradic
#5A279F #9F2730 #6C9F27 #279F96
square
#5A279F #9F2730 #6C9F27 #279F96
split-complementary
#5A279F #9F9627 #309F27
monochromatic
#220F3D #3E1B6E #5A279F #7636CE #9867DA
Accessibility & contrast
On white
9.44
#5A279F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#5A279F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A279F
9.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A279F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A279F | 1.00 | 9.44 | 2.23 | 9.44 |
| #FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#484661
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5a279f; /* rgb */ color: rgb(90, 39, 159); /* oklch */ color: oklch(41.6% 0.180 297.2);
Tailwind
colors: {
custom: {
50: '#8f66bc',
500: '#5a279f',
950: '#000000',
},
}SCSS
$custom: #5a279f; $custom-light: #8f66bc; $custom-dark: #000000;
JSON
{
"hex": "#5a279f",
"rgb": {
"r": 90,
"g": 39,
"b": 159
},
"hsl": {
"h": 265.5,
"s": 60.606,
"l": 38.824
},
"oklch": {
"l": 0.41582,
"c": 0.18015,
"h": 297.2
},
"luminance": 0.06128
}Semantic roles & 50–950 ramp
primary
#5A279F
secondary
#98C062
accent
#E444A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81