#5B2A5E color
The hex color #5B2A5E is a dark, desaturated magenta.
In the RGB color model it is made of 35.7% red, 16.5% green and 36.9% blue (91, 42, 94).
Its hue angle is 297°, with 38% saturation and 27% lightness. For print, the CMYK equivalent is 3% cyan, 55% magenta, 0% yellow and 63% black.
The closest named color is Imperial Purple (#5B3167), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.84:1).
#5B2A5E color codes
| HEX | #5B2A5E | |
|---|---|---|
| RGB | rgb(91, 42, 94) | |
| RGB percent | rgb(35.7%, 16.5%, 36.9%) | |
| HSL | hsl(297, 38%, 27%) | |
| HSV / HSB | hsv(297, 55%, 37%) | |
| CMYK | cmyk(3%, 55%, 0%, 63%) | |
| CIE LAB | lab(25.83, 30.9, -21.35) | |
| CIE LCH | lch(25.83, 37.56, 325.35) | |
| CIE XYZ | xyz(7.163, 4.689, 11.115) | |
| Decimal | 5974622 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5B2A5E, 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 #5B2A5E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.94:1 | Fail | Fail | Fail |
| Sample text | 10.84:1 | Pass | Pass | Pass |
| #5B2A5E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.84:1 | Pass | Pass | Pass |
| Sample text | 1.94: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 #5B2A5E looks to people with the most common types of color vision deficiency.
#243960Protanopia
no red cones#333f5cDeuteranopia
no green cones#5d3040Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #5b2a5e; }
.text { color: #5b2a5e; }
.border { border: 2px solid #5b2a5e; }
.transparent { background-color: rgb(91 42 94 / 50%); }
.gradient { background: linear-gradient(to right, #5b2a5e, #5e2a47); }
Similar colors
#5b3167Imperial Purple#602f6bByzantine Robe#663366Wineberry#673362Opulent Purple#581a57Purple Velour#593569Purple Protégé#5b365eLong Passionate Night#4a2559Wonka Purple
Closest common color name: Byzantium.
Questions
- What color is #5B2A5E?
- #5B2A5E is a dark, desaturated magenta, closest to the named color Imperial Purple. It belongs to the purple family of colors.
- What is the RGB value of #5B2A5E?
- The RGB value is 91, 42, 94: 91 red, 42 green and 94 blue on a 0 to 255 scale.
- What is the complementary color of #5B2A5E?
- The complementary color is #2D5E2A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5B2A5E?
- White text. Black text has a contrast ratio of 1.94:1 and white text 10.84:1. WCAG asks for at least 4.5:1 for normal text.