#512145 color
The hex color #512145 is a dark, desaturated magenta.
In the RGB color model it is made of 31.8% red, 12.9% green and 27.1% blue (81, 33, 69).
Its hue angle is 315°, with 42% saturation and 22% lightness. For print, the CMYK equivalent is 0% cyan, 59% magenta, 15% yellow and 68% black.
The closest named color is Murasaki (#4F284B), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.7:1).
#512145 color codes
| HEX | #512145 | |
|---|---|---|
| RGB | rgb(81, 33, 69) | |
| RGB percent | rgb(31.8%, 12.9%, 27.1%) | |
| HSL | hsl(315, 42%, 22%) | |
| HSV / HSB | hsv(315, 59%, 32%) | |
| CMYK | cmyk(0%, 59%, 15%, 68%) | |
| CIE LAB | lab(21.08, 27.65, -12.15) | |
| CIE LCH | lch(21.08, 30.2, 336.27) | |
| CIE XYZ | xyz(5.011, 3.267, 5.996) | |
| Decimal | 5316933 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #512145, 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 #512145 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.65:1 | Fail | Fail | Fail |
| Sample text | 12.7:1 | Pass | Pass | Pass |
| #512145 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.7:1 | Pass | Pass | Pass |
| Sample text | 1.65: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 #512145 looks to people with the most common types of color vision deficiency.
#222e46Protanopia
no red cones#303544Deuteranopia
no green cones#552330Tritanopia
no blue cones#333333Achromatopsia
no color vision
CSS examples
.background { background-color: #512145; }
.text { color: #512145; }
.border { border: 2px solid #512145; }
.transparent { background-color: rgb(81 33 69 / 50%); }
.gradient { background: linear-gradient(to right, #512145, #51212d); }
Similar colors
#4f284bMurasaki#442244Purple Void#543254Purple Prose#441144Velvet Cosmos#43182fBlackberry#3b193fCreatures of the Night#581a57Purple Velour#391531Nightly Voyager
Closest common color name: Tyrian Purple.
Questions
- What color is #512145?
- #512145 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 #512145?
- The RGB value is 81, 33, 69: 81 red, 33 green and 69 blue on a 0 to 255 scale.
- What is the complementary color of #512145?
- The complementary color is #21512D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #512145?
- White text. Black text has a contrast ratio of 1.65:1 and white text 12.7:1. WCAG asks for at least 4.5:1 for normal text.