#512158 color
The hex color #512158 is a dark, desaturated magenta.
In the RGB color model it is made of 31.8% red, 12.9% green and 34.5% blue (81, 33, 88).
Its hue angle is 292°, with 45% saturation and 24% lightness. For print, the CMYK equivalent is 8% cyan, 63% magenta, 0% yellow and 65% black.
The closest named color is Wonka Purple (#4A2559), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.29:1).
#512158 color codes
| HEX | #512158 | |
|---|---|---|
| RGB | rgb(81, 33, 88) | |
| RGB percent | rgb(31.8%, 12.9%, 34.5%) | |
| HSL | hsl(292, 45%, 24%) | |
| HSV / HSB | hsv(292, 63%, 35%) | |
| CMYK | cmyk(8%, 63%, 0%, 65%) | |
| CIE LAB | lab(22.1, 31.49, -23.38) | |
| CIE LCH | lch(22.1, 39.22, 323.41) | |
| CIE XYZ | xyz(5.698, 3.542, 9.614) | |
| Decimal | 5316952 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #512158, 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 #512158 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.71:1 | Fail | Fail | Fail |
| Sample text | 12.29:1 | Pass | Pass | Pass |
| #512158 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.29:1 | Pass | Pass | Pass |
| Sample text | 1.71: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 #512158 looks to people with the most common types of color vision deficiency.
#17315aProtanopia
no red cones#283757Deuteranopia
no green cones#522939Tritanopia
no blue cones#353535Achromatopsia
no color vision
CSS examples
.background { background-color: #512158; }
.text { color: #512158; }
.border { border: 2px solid #512158; }
.transparent { background-color: rgb(81 33 88 / 50%); }
.gradient { background: linear-gradient(to right, #512158, #582143); }
Similar colors
#4a2559Wonka Purple#581a57Purple Velour#431c53Plunged Into Darkness#552367Elegant Purple Gown#551155Cosmic Explorer#48295bAcai#5b3167Imperial Purple#602f6bByzantine Robe
Closest common color name: Byzantium.
Questions
- What color is #512158?
- #512158 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 #512158?
- The RGB value is 81, 33, 88: 81 red, 33 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #512158?
- The complementary color is #285821, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #512158?
- White text. Black text has a contrast ratio of 1.71:1 and white text 12.29:1. WCAG asks for at least 4.5:1 for normal text.