#5B1A71 color
The hex color #5B1A71 is a dark, moderate magenta.
In the RGB color model it is made of 35.7% red, 10.2% green and 44.3% blue (91, 26, 113).
Its hue angle is 285°, with 63% saturation and 27% lightness. For print, the CMYK equivalent is 19% cyan, 77% magenta, 0% yellow and 56% black.
The closest named color is Velvet Vortex (#540D6E), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.47:1).
#5B1A71 color codes
| HEX | #5B1A71 | |
|---|---|---|
| RGB | rgb(91, 26, 113) | |
| RGB percent | rgb(35.7%, 10.2%, 44.3%) | |
| HSL | hsl(285, 63%, 27%) | |
| HSV / HSB | hsv(285, 77%, 44%) | |
| CMYK | cmyk(19%, 77%, 0%, 56%) | |
| CIE LAB | lab(24.18, 42.83, -36.31) | |
| CIE LCH | lch(24.18, 56.14, 319.71) | |
| CIE XYZ | xyz(7.664, 4.155, 16.018) | |
| Decimal | 5970545 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5B1A71, 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 #5B1A71 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.83:1 | Fail | Fail | Fail |
| Sample text | 11.47:1 | Pass | Pass | Pass |
| #5B1A71 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.47:1 | Pass | Pass | Pass |
| Sample text | 1.83: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 #5B1A71 looks to people with the most common types of color vision deficiency.
#003673Protanopia
no red cones#193b6fDeuteranopia
no green cones#592d44Tritanopia
no blue cones#393939Achromatopsia
no color vision
CSS examples
.background { background-color: #5b1a71; }
.text { color: #5b1a71; }
.border { border: 2px solid #5b1a71; }
.transparent { background-color: rgb(91 26 113 / 50%); }
.gradient { background: linear-gradient(to right, #5b1a71, #711a5c); }
Similar colors
#540d6eVelvet Vortex#552367Elegant Purple Gown#522a6fPurple Seduction#661188Extraviolet#662288Sapphire Siren#5b1e8bIntergalactic Settlement#442266Fading Horizon#602f6bByzantine Robe
Closest common color name: Indigo.
Questions
- What color is #5B1A71?
- #5B1A71 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 #5B1A71?
- The RGB value is 91, 26, 113: 91 red, 26 green and 113 blue on a 0 to 255 scale.
- What is the complementary color of #5B1A71?
- The complementary color is #30711A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5B1A71?
- White text. Black text has a contrast ratio of 1.83:1 and white text 11.47:1. WCAG asks for at least 4.5:1 for normal text.