#5A5B76 color
The hex color #5A5B76 is a grayish blue.
In the RGB color model it is made of 35.3% red, 35.7% green and 46.3% blue (90, 91, 118).
Its hue angle is 238°, with 13% saturation and 41% lightness. For print, the CMYK equivalent is 24% cyan, 23% magenta, 0% yellow and 54% black.
The closest named color is Majestic Magic (#555570), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.58:1).
#5A5B76 color codes
| HEX | #5A5B76 | |
|---|---|---|
| RGB | rgb(90, 91, 118) | |
| RGB percent | rgb(35.3%, 35.7%, 46.3%) | |
| HSL | hsl(238, 13%, 41%) | |
| HSV / HSB | hsv(238, 24%, 46%) | |
| CMYK | cmyk(24%, 23%, 0%, 54%) | |
| CIE LAB | lab(39.52, 6.02, -15.37) | |
| CIE LCH | lch(39.52, 16.51, 291.38) | |
| CIE XYZ | xyz(11.227, 10.964, 18.661) | |
| Decimal | 5921654 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A5B76, 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 #5A5B76 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.19:1 | Fail | Fail | Pass |
| Sample text | 6.58:1 | Pass | Fail | Pass |
| #5A5B76 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.58:1 | Pass | Fail | Pass |
| Sample text | 3.19:1 | Fail | Fail | Pass |
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 #5A5B76 looks to people with the most common types of color vision deficiency.
#545e77Protanopia
no red cones#535c75Deuteranopia
no green cones#546064Tritanopia
no blue cones#5d5d5dAchromatopsia
no color vision
CSS examples
.background { background-color: #5a5b76; }
.text { color: #5a5b76; }
.border { border: 2px solid #5a5b76; }
.transparent { background-color: rgb(90 91 118 / 50%); }
.gradient { background: linear-gradient(to right, #5a5b76, #675a76); }
Similar colors
#555570Majestic Magic#4d516cIntergalactic#4f566cHeavy Violet#565266Freefall#4c567aDeep Indigo#605d6bSmoky#6a6887Heron#5f606eVenus Mist
Closest common color name: Space Gray.
Questions
- What color is #5A5B76?
- #5A5B76 is a grayish blue, closest to the named color Majestic Magic. It belongs to the blue family of colors.
- What is the RGB value of #5A5B76?
- The RGB value is 90, 91, 118: 90 red, 91 green and 118 blue on a 0 to 255 scale.
- What is the complementary color of #5A5B76?
- The complementary color is #76755A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A5B76?
- White text. Black text has a contrast ratio of 3.19:1 and white text 6.58:1. WCAG asks for at least 4.5:1 for normal text.