#5A279C#5A279C
#5A279C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.177 H 298.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5A279C |
|---|---|
| RGB | rgb(90, 39, 156) |
| HSL | hsl(266, 60%, 38%) |
| HSV | hsv(266, 75%, 61%) |
| CMYK | cmyk(42.3%, 75%, 0%, 38.8%) |
| CIE-LAB | lab(29.47, 47.21, -54.61) |
| CIE-LCH | lch(29.47, 72.19, 310.85°) |
| OKLab | oklab(41.32% 0.0829 -0.1562) |
| OKLCH | oklch(41.32% 0.177 298) |
| XYZ | xyz(10.9412, 6.0248, 32.0325) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.61
Indigo Blue
#3A18B1
ΔE00 6.11
Violet Blue
#510AC9
ΔE00 6.79
Purple (survey)
#7E1E9C
ΔE00 6.86
Indigo
#4B0082
ΔE00 6.95
Purple Blue
#5D21D0
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A279C #699C27
analogous
#272E9C #5A279C #94279C
triadic
#5A279C #9C5A27 #279C5A
tetradic
#5A279C #9C272E #699C27 #279C94
square
#5A279C #9C272E #699C27 #279C94
split-complementary
#5A279C #9C9427 #2E9C27
monochromatic
#220F3A #3E1B6B #5A279C #7634CC #9765D8
Accessibility & contrast
On white
9.52
#5A279C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5A279C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A279C
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A279C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A279C | 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)
#00469F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#49455F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a279c; /* rgb */ color: rgb(90, 39, 156); /* oklch */ color: oklch(41.3% 0.177 298.0);
Tailwind
colors: {
custom: {
50: '#8f66ba',
500: '#5a279c',
950: '#000000',
},
}SCSS
$custom: #5a279c; $custom-light: #8f66ba; $custom-dark: #000000;
JSON
{
"hex": "#5a279c",
"rgb": {
"r": 90,
"g": 39,
"b": 156
},
"hsl": {
"h": 266.154,
"s": 60,
"l": 38.235
},
"oklch": {
"l": 0.41321,
"c": 0.17683,
"h": 298
},
"luminance": 0.06025
}Semantic roles & 50–950 ramp
primary
#5A279C
secondary
#95BE61
accent
#E3459E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81