#51475B color
The hex color #51475B is a dark, grayish violet.
In the RGB color model it is made of 31.8% red, 27.8% green and 35.7% blue (81, 71, 91).
Its hue angle is 270°, with 12% saturation and 32% lightness. For print, the CMYK equivalent is 11% cyan, 22% magenta, 0% yellow and 64% black.
The closest named color is Black Magic (#4F4554), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.74:1).
#51475B color codes
| HEX | #51475B | |
|---|---|---|
| RGB | rgb(81, 71, 91) | |
| RGB percent | rgb(31.8%, 27.8%, 35.7%) | |
| HSL | hsl(270, 12%, 32%) | |
| HSV / HSB | hsv(270, 22%, 36%) | |
| CMYK | cmyk(11%, 22%, 0%, 64%) | |
| CIE LAB | lab(31.83, 8.61, -10.26) | |
| CIE LCH | lch(31.83, 13.4, 310.02) | |
| CIE XYZ | xyz(7.535, 7.011, 10.852) | |
| Decimal | 5326683 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #51475B, 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 #51475B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.4:1 | Fail | Fail | Fail |
| Sample text | 8.74:1 | Pass | Pass | Pass |
| #51475B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.74:1 | Pass | Pass | Pass |
| Sample text | 2.4: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 #51475B looks to people with the most common types of color vision deficiency.
#444a5cProtanopia
no red cones#464b5aDeuteranopia
no green cones#504a4eTritanopia
no blue cones#4b4b4bAchromatopsia
no color vision
CSS examples
.background { background-color: #51475b; }
.text { color: #51475b; }
.border { border: 2px solid #51475b; }
.transparent { background-color: rgb(81 71 91 / 50%); }
.gradient { background: linear-gradient(to right, #51475b, #5b475b); }
Similar colors
#4f4554Black Magic#544563Nightly Walk#565266Freefall#413d4bItalian Grape#42364cCall It a Night#625665Fedora#484753Gun Powder#403547Royal Decree
Closest common color name: Eggplant.
Questions
- What color is #51475B?
- #51475B is a dark, grayish violet, closest to the named color Black Magic. It belongs to the purple family of colors.
- What is the RGB value of #51475B?
- The RGB value is 81, 71, 91: 81 red, 71 green and 91 blue on a 0 to 255 scale.
- What is the complementary color of #51475B?
- The complementary color is #515B47, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #51475B?
- White text. Black text has a contrast ratio of 2.4:1 and white text 8.74:1. WCAG asks for at least 4.5:1 for normal text.