#51475D color
The hex color #51475D is a dark, grayish violet.
In the RGB color model it is made of 31.8% red, 27.8% green and 36.5% blue (81, 71, 93).
Its hue angle is 267°, with 13% saturation and 32% lightness. For print, the CMYK equivalent is 13% cyan, 24% magenta, 0% yellow and 64% black.
The closest named color is Black Magic (#4F4554), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.72:1).
#51475D color codes
| HEX | #51475D | |
|---|---|---|
| RGB | rgb(81, 71, 93) | |
| RGB percent | rgb(31.8%, 27.8%, 36.5%) | |
| HSL | hsl(267, 13%, 32%) | |
| HSV / HSB | hsv(267, 24%, 36%) | |
| CMYK | cmyk(13%, 24%, 0%, 64%) | |
| CIE LAB | lab(31.91, 9.1, -11.42) | |
| CIE LCH | lch(31.91, 14.6, 308.56) | |
| CIE XYZ | xyz(7.622, 7.046, 11.312) | |
| Decimal | 5326685 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #51475D, 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 #51475D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.41:1 | Fail | Fail | Fail |
| Sample text | 8.72:1 | Pass | Pass | Pass |
| #51475D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.72: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 #51475D looks to people with the most common types of color vision deficiency.
#434b5eProtanopia
no red cones#454b5cDeuteranopia
no green cones#4f4a4fTritanopia
no blue cones#4b4b4bAchromatopsia
no color vision
CSS examples
.background { background-color: #51475d; }
.text { color: #51475d; }
.border { border: 2px solid #51475d; }
.transparent { background-color: rgb(81 71 93 / 50%); }
.gradient { background: linear-gradient(to right, #51475d, #5c475d); }
Similar colors
#4f4554Black Magic#544563Nightly Walk#565266Freefall#42364cCall It a Night#413d4bItalian Grape#57446aHaunted Candelabra#625665Fedora#3f354fMaharaja
Closest common color name: Eggplant.
Questions
- What color is #51475D?
- #51475D 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 #51475D?
- The RGB value is 81, 71, 93: 81 red, 71 green and 93 blue on a 0 to 255 scale.
- What is the complementary color of #51475D?
- The complementary color is #535D47, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #51475D?
- White text. Black text has a contrast ratio of 2.41:1 and white text 8.72:1. WCAG asks for at least 4.5:1 for normal text.