#512850 color
The hex color #512850 is a dark, desaturated magenta.
In the RGB color model it is made of 31.8% red, 15.7% green and 31.4% blue (81, 40, 80).
Its hue angle is 301°, with 34% saturation and 24% lightness. For print, the CMYK equivalent is 0% cyan, 51% magenta, 1% yellow and 68% black.
The closest named color is Murasaki (#4F284B), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.87:1).
#512850 color codes
| HEX | #512850 | |
|---|---|---|
| RGB | rgb(81, 40, 80) | |
| RGB percent | rgb(31.8%, 15.7%, 31.4%) | |
| HSL | hsl(301, 34%, 24%) | |
| HSV / HSB | hsv(301, 51%, 32%) | |
| CMYK | cmyk(0%, 51%, 1%, 68%) | |
| CIE LAB | lab(23.16, 25.78, -16.38) | |
| CIE LCH | lch(23.16, 30.54, 327.57) | |
| CIE XYZ | xyz(5.6, 3.846, 8.035) | |
| Decimal | 5318736 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #512850, 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 #512850 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.77:1 | Fail | Fail | Fail |
| Sample text | 11.87:1 | Pass | Pass | Pass |
| #512850 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.87:1 | Pass | Pass | Pass |
| Sample text | 1.77: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 #512850 looks to people with the most common types of color vision deficiency.
#253451Protanopia
no red cones#31394fDeuteranopia
no green cones#532c38Tritanopia
no blue cones#373737Achromatopsia
no color vision
CSS examples
.background { background-color: #512850; }
.text { color: #512850; }
.border { border: 2px solid #512850; }
.transparent { background-color: rgb(81 40 80 / 50%); }
.gradient { background: linear-gradient(to right, #512850, #51283b); }
Similar colors
#4f284bMurasaki#543254Purple Prose#442244Purple Void#5b365eLong Passionate Night#4a2559Wonka Purple#4f325eRoyal Crown#581a57Purple Velour#48295bAcai
Closest common color name: Byzantium.
Questions
- What color is #512850?
- #512850 is a dark, desaturated magenta, closest to the named color Murasaki. It belongs to the purple family of colors.
- What is the RGB value of #512850?
- The RGB value is 81, 40, 80: 81 red, 40 green and 80 blue on a 0 to 255 scale.
- What is the complementary color of #512850?
- The complementary color is #285129, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #512850?
- White text. Black text has a contrast ratio of 1.77:1 and white text 11.87:1. WCAG asks for at least 4.5:1 for normal text.