#5A176F color

#5A176F rgb(90, 23, 111)
Shades of purple

The hex color #5A176F is a dark, moderate magenta.

In the RGB color model it is made of 35.3% red, 9% green and 43.5% blue (90, 23, 111).

Its hue angle is 286°, with 66% saturation and 26% lightness. For print, the CMYK equivalent is 19% cyan, 79% magenta, 0% yellow and 56% black.

The closest named color is Velvet Vortex (#540D6E), a difference of 2 ΔE, which is barely visible.

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

#5A176F color codes

HEX#5A176F
RGBrgb(90, 23, 111)
RGB percentrgb(35.3%, 9%, 43.5%)
HSLhsl(286, 66%, 26%)
HSV / HSBhsv(286, 79%, 44%)
CMYKcmyk(19%, 79%, 0%, 56%)
CIE LABlab(23.45, 43.36, -36.19)
CIE LCHlch(23.45, 56.48, 320.15)
CIE XYZxyz(7.392, 3.934, 15.406)
Decimal5904239
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A176F, 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 #5A176FRatioAAAAAAA large
Sample text1.79:1FailFailFail
Sample text11.75:1PassPassPass
#5A176F as text onRatioAAAAAAA large
Sample text11.75:1PassPassPass
Sample text1.79: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 #5A176F looks to people with the most common types of color vision deficiency.

CSS examples

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

Similar colors

Closest common color name: Indigo.

Questions

What color is #5A176F?
#5A176F is a dark, moderate magenta, closest to the named color Velvet Vortex. It belongs to the purple family of colors.
What is the RGB value of #5A176F?
The RGB value is 90, 23, 111: 90 red, 23 green and 111 blue on a 0 to 255 scale.
What is the complementary color of #5A176F?
The complementary color is #2C6F17, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A176F?
White text. Black text has a contrast ratio of 1.79:1 and white text 11.75:1. WCAG asks for at least 4.5:1 for normal text.