#5A279A#5A279A
#5A279A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.175 H 298.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A279A |
|---|---|
| RGB | rgb(90, 39, 154) |
| HSL | hsl(267, 60%, 38%) |
| HSV | hsv(267, 75%, 60%) |
| CMYK | cmyk(41.6%, 74.7%, 0%, 39.6%) |
| CIE-LAB | lab(29.31, 46.69, -53.67) |
| CIE-LCH | lch(29.31, 71.14, 311.03°) |
| OKLab | oklab(41.15% 0.0834 -0.1534) |
| OKLCH | oklch(41.15% 0.175 298.5) |
| XYZ | xyz(10.7732, 5.9576, 31.1479) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.52
Indigo Blue
#3A18B1
ΔE00 6.32
Purple (survey)
#7E1E9C
ΔE00 6.80
Indigo
#4B0082
ΔE00 6.80
Violet Blue
#510AC9
ΔE00 7.07
Purple Blue
#5D21D0
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A279A #679A27
analogous
#272D9A #5A279A #93279A
triadic
#5A279A #9A5A27 #279A5A
tetradic
#5A279A #9A272D #679A27 #279A93
square
#5A279A #9A272D #679A27 #279A93
split-complementary
#5A279A #9A9327 #2D9A27
monochromatic
#210E38 #3D1B69 #5A279A #7733CB #9764D8
Accessibility & contrast
On white
9.58
#5A279A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5A279A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A279A
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A279A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A279A | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4A445E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a279a; /* rgb */ color: rgb(90, 39, 154); /* oklch */ color: oklch(41.1% 0.175 298.5);
Tailwind
colors: {
custom: {
50: '#8f66b9',
500: '#5a279a',
950: '#000000',
},
}SCSS
$custom: #5a279a; $custom-light: #8f66b9; $custom-dark: #000000;
JSON
{
"hex": "#5a279a",
"rgb": {
"r": 90,
"g": 39,
"b": 154
},
"hsl": {
"h": 266.609,
"s": 59.585,
"l": 37.843
},
"oklch": {
"l": 0.41149,
"c": 0.17461,
"h": 298.5
},
"luminance": 0.05958
}Semantic roles & 50–950 ramp
primary
#5A279A
secondary
#94BD5F
accent
#E3459D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80