#512A5D color
The hex color #512A5D is a dark, desaturated magenta.
In the RGB color model it is made of 31.8% red, 16.5% green and 36.5% blue (81, 42, 93).
Its hue angle is 286°, with 38% saturation and 26% lightness. For print, the CMYK equivalent is 13% cyan, 55% magenta, 0% yellow and 64% black.
The closest named color is Wonka Purple (#4A2559), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.42:1).
#512A5D color codes
| HEX | #512A5D | |
|---|---|---|
| RGB | rgb(81, 42, 93) | |
| RGB percent | rgb(31.8%, 16.5%, 36.5%) | |
| HSL | hsl(286, 38%, 26%) | |
| HSV / HSB | hsv(286, 55%, 36%) | |
| CMYK | cmyk(13%, 55%, 0%, 64%) | |
| CIE LAB | lab(24.31, 27.5, -23.19) | |
| CIE LCH | lch(24.31, 35.97, 319.86) | |
| CIE XYZ | xyz(6.197, 4.196, 10.837) | |
| Decimal | 5319261 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #512A5D, 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 #512A5D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.84:1 | Fail | Fail | Fail |
| Sample text | 11.42:1 | Pass | Pass | Pass |
| #512A5D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.42:1 | Pass | Pass | Pass |
| Sample text | 1.84: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 #512A5D looks to people with the most common types of color vision deficiency.
#20375fProtanopia
no red cones#2c3b5cDeuteranopia
no green cones#51313fTritanopia
no blue cones#3a3a3aAchromatopsia
no color vision
CSS examples
.background { background-color: #512a5d; }
.text { color: #512a5d; }
.border { border: 2px solid #512a5d; }
.transparent { background-color: rgb(81 42 93 / 50%); }
.gradient { background: linear-gradient(to right, #512a5d, #5d2a50); }
Similar colors
#4a2559Wonka Purple#48295bAcai#5b3167Imperial Purple#4f325eRoyal Crown#593569Purple Protégé#552367Elegant Purple Gown#602f6bByzantine Robe#431c53Plunged Into Darkness
Closest common color name: Byzantium.
Questions
- What color is #512A5D?
- #512A5D is a dark, desaturated magenta, closest to the named color Wonka Purple. It belongs to the purple family of colors.
- What is the RGB value of #512A5D?
- The RGB value is 81, 42, 93: 81 red, 42 green and 93 blue on a 0 to 255 scale.
- What is the complementary color of #512A5D?
- The complementary color is #365D2A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #512A5D?
- White text. Black text has a contrast ratio of 1.84:1 and white text 11.42:1. WCAG asks for at least 4.5:1 for normal text.