#512D58 color
The hex color #512D58 is a dark, desaturated magenta.
In the RGB color model it is made of 31.8% red, 17.6% green and 34.5% blue (81, 45, 88).
Its hue angle is 290°, with 32% saturation and 26% lightness. For print, the CMYK equivalent is 8% cyan, 49% magenta, 0% yellow and 65% black.
The closest named color is Royal Crown (#4F325E), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.25:1).
#512D58 color codes
| HEX | #512D58 | |
|---|---|---|
| RGB | rgb(81, 45, 88) | |
| RGB percent | rgb(31.8%, 17.6%, 34.5%) | |
| HSL | hsl(290, 32%, 26%) | |
| HSV / HSB | hsv(290, 49%, 35%) | |
| CMYK | cmyk(8%, 49%, 0%, 65%) | |
| CIE LAB | lab(24.74, 24.52, -19.23) | |
| CIE LCH | lch(24.74, 31.16, 321.9) | |
| CIE XYZ | xyz(6.093, 4.331, 9.746) | |
| Decimal | 5320024 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #512D58, 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 #512D58 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.87:1 | Fail | Fail | Fail |
| Sample text | 11.25:1 | Pass | Pass | Pass |
| #512D58 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.25:1 | Pass | Pass | Pass |
| Sample text | 1.87: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 #512D58 looks to people with the most common types of color vision deficiency.
#27385aProtanopia
no red cones#313c57Deuteranopia
no green cones#52323eTritanopia
no blue cones#3b3b3bAchromatopsia
no color vision
CSS examples
.background { background-color: #512d58; }
.text { color: #512d58; }
.border { border: 2px solid #512d58; }
.transparent { background-color: rgb(81 45 88 / 50%); }
.gradient { background: linear-gradient(to right, #512d58, #582d4a); }
Similar colors
#4f325eRoyal Crown#543254Purple Prose#5b365eLong Passionate Night#4a2559Wonka Purple#48295bAcai#4f284bMurasaki#5b3167Imperial Purple#593569Purple Protégé
Closest common color name: Byzantium.
Questions
- What color is #512D58?
- #512D58 is a dark, desaturated magenta, closest to the named color Royal Crown. It belongs to the purple family of colors.
- What is the RGB value of #512D58?
- The RGB value is 81, 45, 88: 81 red, 45 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #512D58?
- The complementary color is #34582D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #512D58?
- White text. Black text has a contrast ratio of 1.87:1 and white text 11.25:1. WCAG asks for at least 4.5:1 for normal text.