#5A38AA color

#5A38AA rgb(90, 56, 170)
Shades of purple

The hex color #5A38AA is a moderate violet.

In the RGB color model it is made of 35.3% red, 22% green and 66.7% blue (90, 56, 170).

Its hue angle is 258°, with 50% saturation and 44% lightness. For print, the CMYK equivalent is 47% cyan, 67% magenta, 0% yellow and 33% black.

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

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

#5A38AA color codes

HEX#5A38AA
RGBrgb(90, 56, 170)
RGB percentrgb(35.3%, 22%, 66.7%)
HSLhsl(258, 50%, 44%)
HSV / HSBhsv(258, 67%, 67%)
CMYKcmyk(47%, 67%, 0%, 33%)
CIE LABlab(33.78, 42.27, -56.05)
CIE LCHlch(33.78, 70.2, 307.02)
CIE XYZxyz(12.884, 7.904, 38.869)
Decimal5912746
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A38AA, 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 #5A38AARatioAAAAAAA large
Sample text2.58:1FailFailFail
Sample text8.14:1PassPassPass
#5A38AA as text onRatioAAAAAAA large
Sample text8.14:1PassPassPass
Sample text2.58: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 #5A38AA looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5a38aa; }
.text { color: #5a38aa; }
.border { border: 2px solid #5a38aa; }
.transparent { background-color: rgb(90 56 170 / 50%); }
.gradient { background: linear-gradient(to right, #5a38aa, #9338aa); }
Background
Text color
Border

Similar colors

Questions

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