#5A2EA6 color

#5A2EA6 rgb(90, 46, 166)
Shades of purple

The hex color #5A2EA6 is a moderate violet.

In the RGB color model it is made of 35.3% red, 18% green and 65.1% blue (90, 46, 166).

Its hue angle is 262°, with 57% saturation and 42% lightness. For print, the CMYK equivalent is 46% cyan, 72% magenta, 0% yellow and 35% black.

The closest named color is Royalty (#5930A9), a difference of 0.7 ΔE, which is barely visible.

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

#5A2EA6 color codes

HEX#5A2EA6
RGBrgb(90, 46, 166)
RGB percentrgb(35.3%, 18%, 65.1%)
HSLhsl(262, 57%, 42%)
HSV / HSBhsv(262, 72%, 65%)
CMYKcmyk(46%, 72%, 0%, 35%)
CIE LABlab(31.53, 46.47, -57.31)
CIE LCHlch(31.53, 73.78, 309.03)
CIE XYZxyz(12.075, 6.88, 36.761)
Decimal5910182
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A2EA6, 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 #5A2EA6RatioAAAAAAA large
Sample text2.38:1FailFailFail
Sample text8.84:1PassPassPass
#5A2EA6 as text onRatioAAAAAAA large
Sample text8.84:1PassPassPass
Sample text2.38:1FailFailFail

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

CSS examples

.background { background-color: #5a2ea6; }
.text { color: #5a2ea6; }
.border { border: 2px solid #5a2ea6; }
.transparent { background-color: rgb(90 46 166 / 50%); }
.gradient { background: linear-gradient(to right, #5a2ea6, #962ea6); }
Background
Text color
Border

Similar colors

Questions

What color is #5A2EA6?
#5A2EA6 is a moderate violet, closest to the named color Royalty. It belongs to the purple family of colors.
What is the RGB value of #5A2EA6?
The RGB value is 90, 46, 166: 90 red, 46 green and 166 blue on a 0 to 255 scale.
What is the complementary color of #5A2EA6?
The complementary color is #7AA62E, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A2EA6?
White text. Black text has a contrast ratio of 2.38:1 and white text 8.84:1. WCAG asks for at least 4.5:1 for normal text.