#5A4C81 color
The hex color #5A4C81 is a desaturated violet.
In the RGB color model it is made of 35.3% red, 29.8% green and 50.6% blue (90, 76, 129).
Its hue angle is 256°, with 26% saturation and 40% lightness. For print, the CMYK equivalent is 30% cyan, 41% magenta, 0% yellow and 49% black.
The closest named color is Freshly Purpleized (#5C5083), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.54:1).
#5A4C81 color codes
| HEX | #5A4C81 | |
|---|---|---|
| RGB | rgb(90, 76, 129) | |
| RGB percent | rgb(35.3%, 29.8%, 50.6%) | |
| HSL | hsl(256, 26%, 40%) | |
| HSV / HSB | hsv(256, 41%, 51%) | |
| CMYK | cmyk(30%, 41%, 0%, 49%) | |
| CIE LAB | lab(35.84, 18.43, -27.83) | |
| CIE LCH | lch(35.84, 33.38, 303.51) | |
| CIE XYZ | xyz(10.762, 8.927, 21.921) | |
| Decimal | 5917825 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A4C81, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #5A4C81 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.79:1 | Fail | Fail | Fail |
| Sample text | 7.54:1 | Pass | Pass | Pass |
| #5A4C81 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.54:1 | Pass | Pass | Pass |
| Sample text | 2.79:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #5A4C81 looks to people with the most common types of color vision deficiency.
#3d5583Protanopia
no red cones#3f5480Deuteranopia
no green cones#525560Tritanopia
no blue cones#545454Achromatopsia
no color vision
CSS examples
.background { background-color: #5a4c81; }
.text { color: #5a4c81; }
.border { border: 2px solid #5a4c81; }
.transparent { background-color: rgb(90 76 129 / 50%); }
.gradient { background: linear-gradient(to right, #5a4c81, #754c81); }
Similar colors
#5c5083Freshly Purpleized#604c81Sumptuous Purple#5c457bIn the Vines#614a7bRoyal Robe#50507fTangent Periwinkle#5b4276Drifting Violet#655883Berry Jam#664488Lords of the Night
Closest common color name: Dark Slate Blue.
Questions
- What color is #5A4C81?
- #5A4C81 is a desaturated violet, closest to the named color Freshly Purpleized. It belongs to the purple family of colors.
- What is the RGB value of #5A4C81?
- The RGB value is 90, 76, 129: 90 red, 76 green and 129 blue on a 0 to 255 scale.
- What is the complementary color of #5A4C81?
- The complementary color is #73814C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A4C81?
- White text. Black text has a contrast ratio of 2.79:1 and white text 7.54:1. WCAG asks for at least 4.5:1 for normal text.