#5A176F color
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 | |
|---|---|---|
| RGB | rgb(90, 23, 111) | |
| RGB percent | rgb(35.3%, 9%, 43.5%) | |
| HSL | hsl(286, 66%, 26%) | |
| HSV / HSB | hsv(286, 79%, 44%) | |
| CMYK | cmyk(19%, 79%, 0%, 56%) | |
| CIE LAB | lab(23.45, 43.36, -36.19) | |
| CIE LCH | lch(23.45, 56.48, 320.15) | |
| CIE XYZ | xyz(7.392, 3.934, 15.406) | |
| Decimal | 5904239 | |
| Short hex | None (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 #5A176F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.79:1 | Fail | Fail | Fail |
| Sample text | 11.75:1 | Pass | Pass | Pass |
| #5A176F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.75:1 | Pass | Pass | Pass |
| Sample text | 1.79:1 | Fail | Fail | Fail |
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.
#003471Protanopia
no red cones#173a6dDeuteranopia
no green cones#592a42Tritanopia
no blue cones#383838Achromatopsia
no color vision
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); }
Similar colors
#540d6eVelvet Vortex#552367Elegant Purple Gown#661188Extraviolet#522a6fPurple Seduction#662288Sapphire Siren#480656Clairvoyant#5b1e8bIntergalactic Settlement#442266Fading Horizon
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.