#51475E color
The hex color #51475E is a dark, grayish violet.
In the RGB color model it is made of 31.8% red, 27.8% green and 36.9% blue (81, 71, 94).
Its hue angle is 266°, with 14% saturation and 32% lightness. For print, the CMYK equivalent is 14% cyan, 24% magenta, 0% yellow and 63% black.
The closest named color is Nightly Walk (#544563), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.7:1).
#51475E color codes
| HEX | #51475E | |
|---|---|---|
| RGB | rgb(81, 71, 94) | |
| RGB percent | rgb(31.8%, 27.8%, 36.9%) | |
| HSL | hsl(266, 14%, 32%) | |
| HSV / HSB | hsv(266, 24%, 37%) | |
| CMYK | cmyk(14%, 24%, 0%, 63%) | |
| CIE LAB | lab(31.95, 9.34, -11.99) | |
| CIE LCH | lch(31.95, 15.2, 307.93) | |
| CIE XYZ | xyz(7.667, 7.064, 11.547) | |
| Decimal | 5326686 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #51475E, 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 #51475E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.41:1 | Fail | Fail | Fail |
| Sample text | 8.7:1 | Pass | Pass | Pass |
| #51475E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.7:1 | Pass | Pass | Pass |
| Sample text | 2.41: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 #51475E looks to people with the most common types of color vision deficiency.
#434b5fProtanopia
no red cones#454b5dDeuteranopia
no green cones#4f4a4fTritanopia
no blue cones#4b4b4bAchromatopsia
no color vision
CSS examples
.background { background-color: #51475e; }
.text { color: #51475e; }
.border { border: 2px solid #51475e; }
.transparent { background-color: rgb(81 71 94 / 50%); }
.gradient { background: linear-gradient(to right, #51475e, #5c475e); }
Similar colors
#544563Nightly Walk#4f4554Black Magic#565266Freefall#42364cCall It a Night#57446aHaunted Candelabra#3f354fMaharaja#555570Majestic Magic#413d4bItalian Grape
Closest common color name: Eggplant.
Questions
- What color is #51475E?
- #51475E is a dark, grayish violet, closest to the named color Nightly Walk. It belongs to the purple family of colors.
- What is the RGB value of #51475E?
- The RGB value is 81, 71, 94: 81 red, 71 green and 94 blue on a 0 to 255 scale.
- What is the complementary color of #51475E?
- The complementary color is #545E47, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #51475E?
- White text. Black text has a contrast ratio of 2.41:1 and white text 8.7:1. WCAG asks for at least 4.5:1 for normal text.