#5A5297 color

#5A5297 rgb(90, 82, 151)
Shades of blue

The hex color #5A5297 is a desaturated blue.

In the RGB color model it is made of 35.3% red, 32.2% green and 59.2% blue (90, 82, 151).

Its hue angle is 247°, with 30% saturation and 46% lightness. For print, the CMYK equivalent is 40% cyan, 46% magenta, 0% yellow and 41% black.

The closest named color is Twilight (#4E518B), a difference of 3.3 ΔE, a small difference.

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

#5A5297 color codes

HEX#5A5297
RGBrgb(90, 82, 151)
RGB percentrgb(35.3%, 32.2%, 59.2%)
HSLhsl(247, 30%, 46%)
HSV / HSBhsv(247, 46%, 59%)
CMYKcmyk(40%, 46%, 0%, 41%)
CIE LABlab(38.62, 20.96, -36.84)
CIE LCHlch(38.62, 42.38, 299.63)
CIE XYZxyz(12.818, 10.442, 30.612)
Decimal5919383
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A5297, 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 #5A5297RatioAAAAAAA large
Sample text3.09:1FailFailPass
Sample text6.8:1PassFailPass
#5A5297 as text onRatioAAAAAAA large
Sample text6.8:1PassFailPass
Sample text3.09: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 #5A5297 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5a5297; }
.text { color: #5a5297; }
.border { border: 2px solid #5a5297; }
.transparent { background-color: rgb(90 82 151 / 50%); }
.gradient { background: linear-gradient(to right, #5a5297, #7c5297); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Slate Blue.

Questions

What color is #5A5297?
#5A5297 is a desaturated blue, closest to the named color Twilight. It belongs to the blue family of colors.
What is the RGB value of #5A5297?
The RGB value is 90, 82, 151: 90 red, 82 green and 151 blue on a 0 to 255 scale.
What is the complementary color of #5A5297?
The complementary color is #8F9752, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A5297?
White text. Black text has a contrast ratio of 3.09:1 and white text 6.8:1. WCAG asks for at least 4.5:1 for normal text.