#51525F color
The hex color #51525F is a gray.
In the RGB color model it is made of 31.8% red, 32.2% green and 37.3% blue (81, 82, 95).
Its hue angle is 236°, with 8% saturation and 35% lightness. For print, the CMYK equivalent is 15% cyan, 14% magenta, 0% yellow and 63% black.
The closest named color is Black Orchid (#525463), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.71:1).
#51525F color codes
| HEX | #51525F | |
|---|---|---|
| RGB | rgb(81, 82, 95) | |
| RGB percent | rgb(31.8%, 32.2%, 37.3%) | |
| HSL | hsl(236, 8%, 35%) | |
| HSV / HSB | hsv(236, 15%, 37%) | |
| CMYK | cmyk(15%, 14%, 0%, 63%) | |
| CIE LAB | lab(35.22, 2.6, -7.68) | |
| CIE LCH | lch(35.22, 8.11, 288.68) | |
| CIE XYZ | xyz(8.476, 8.61, 12.04) | |
| Decimal | 5329503 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #51525F, 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 #51525F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.72:1 | Fail | Fail | Fail |
| Sample text | 7.71:1 | Pass | Pass | Pass |
| #51525F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.71:1 | Pass | Pass | Pass |
| Sample text | 2.72: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 #51525F looks to people with the most common types of color vision deficiency.
#4f5360Protanopia
no red cones#4e525fDeuteranopia
no green cones#4e5456Tritanopia
no blue cones#535353Achromatopsia
no color vision
CSS examples
.background { background-color: #51525f; }
.text { color: #51525f; }
.border { border: 2px solid #51525f; }
.transparent { background-color: rgb(81 82 95 / 50%); }
.gradient { background: linear-gradient(to right, #51525f, #57515f); }
Similar colors
#525463Black Orchid#545663Blackwater#494c55Deep Night#484753Gun Powder#494d55Isolation#4f566cHeavy Violet#565266Freefall#424753Midnight Sky
Closest common color name: Charcoal.
Questions
- What color is #51525F?
- #51525F is a gray, closest to the named color Black Orchid. It belongs to the gray family of colors.
- What is the RGB value of #51525F?
- The RGB value is 81, 82, 95: 81 red, 82 green and 95 blue on a 0 to 255 scale.
- What is the complementary color of #51525F?
- The complementary color is #5F5E51, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #51525F?
- White text. Black text has a contrast ratio of 2.72:1 and white text 7.71:1. WCAG asks for at least 4.5:1 for normal text.