#513271 color
The hex color #513271 is a dark, desaturated violet.
In the RGB color model it is made of 31.8% red, 19.6% green and 44.3% blue (81, 50, 113).
Its hue angle is 270°, with 39% saturation and 32% lightness. For print, the CMYK equivalent is 28% cyan, 56% magenta, 0% yellow and 56% black.
The closest named color is Purple Seduction (#522A6F), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.27:1).
#513271 color codes
| HEX | #513271 | |
|---|---|---|
| RGB | rgb(81, 50, 113) | |
| RGB percent | rgb(31.8%, 19.6%, 44.3%) | |
| HSL | hsl(270, 39%, 32%) | |
| HSV / HSB | hsv(270, 56%, 44%) | |
| CMYK | cmyk(28%, 56%, 0%, 56%) | |
| CIE LAB | lab(27.36, 27.69, -31.29) | |
| CIE LCH | lch(27.36, 41.78, 311.51) | |
| CIE XYZ | xyz(7.514, 5.223, 16.232) | |
| Decimal | 5321329 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #513271, 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 #513271 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.04:1 | Fail | Fail | Fail |
| Sample text | 10.27:1 | Pass | Pass | Pass |
| #513271 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.27:1 | Pass | Pass | Pass |
| Sample text | 2.04: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 #513271 looks to people with the most common types of color vision deficiency.
#1d4073Protanopia
no red cones#27416fDeuteranopia
no green cones#4c3e4cTritanopia
no blue cones#414141Achromatopsia
no color vision
CSS examples
.background { background-color: #513271; }
.text { color: #513271; }
.border { border: 2px solid #513271; }
.transparent { background-color: rgb(81 50 113 / 50%); }
.gradient { background: linear-gradient(to right, #513271, #713271); }
Similar colors
#522a6fPurple Seduction#4b2c74Mystic Nights#583580Kingfisher Daisy#432e6fHer Highness#593569Purple Protégé#48357bGalactic Compass#5b3167Imperial Purple#442266Fading Horizon
Closest common color name: Dark Slate Blue.
Questions
- What color is #513271?
- #513271 is a dark, desaturated violet, closest to the named color Purple Seduction. It belongs to the purple family of colors.
- What is the RGB value of #513271?
- The RGB value is 81, 50, 113: 81 red, 50 green and 113 blue on a 0 to 255 scale.
- What is the complementary color of #513271?
- The complementary color is #527132, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #513271?
- White text. Black text has a contrast ratio of 2.04:1 and white text 10.27:1. WCAG asks for at least 4.5:1 for normal text.