#5A5978 color

#5A5978 rgb(90, 89, 120)
Shades of blue

The hex color #5A5978 is a grayish blue.

In the RGB color model it is made of 35.3% red, 34.9% green and 47.1% blue (90, 89, 120).

Its hue angle is 242°, with 15% saturation and 41% lightness. For print, the CMYK equivalent is 25% cyan, 26% magenta, 0% yellow and 53% black.

The closest named color is Majestic Magic (#555570), a difference of 2.2 ΔE, a small difference.

White text is the more readable choice on this background (contrast 6.7:1).

#5A5978 color codes

HEX#5A5978
RGBrgb(90, 89, 120)
RGB percentrgb(35.3%, 34.9%, 47.1%)
HSLhsl(242, 15%, 41%)
HSV / HSBhsv(242, 26%, 47%)
CMYKcmyk(25%, 26%, 0%, 53%)
CIE LABlab(39.03, 7.79, -17.35)
CIE LCHlch(39.03, 19.02, 294.17)
CIE XYZxyz(11.178, 10.674, 19.237)
Decimal5921144
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A5978, 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 #5A5978RatioAAAAAAA large
Sample text3.13:1FailFailPass
Sample text6.7:1PassFailPass
#5A5978 as text onRatioAAAAAAA large
Sample text6.7:1PassFailPass
Sample text3.13:1FailFailPass

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 #5A5978 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5a5978; }
.text { color: #5a5978; }
.border { border: 2px solid #5a5978; }
.transparent { background-color: rgb(90 89 120 / 50%); }
.gradient { background: linear-gradient(to right, #5a5978, #6a5978); }
Background
Text color
Border

Similar colors

Closest common color name: Eggplant.

Questions

What color is #5A5978?
#5A5978 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 #5A5978?
The RGB value is 90, 89, 120: 90 red, 89 green and 120 blue on a 0 to 255 scale.
What is the complementary color of #5A5978?
The complementary color is #777859, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A5978?
White text. Black text has a contrast ratio of 3.13:1 and white text 6.7:1. WCAG asks for at least 4.5:1 for normal text.