#505161 color
The hex color #505161 is a dark, grayish blue.
In the RGB color model it is made of 31.4% red, 31.8% green and 38% blue (80, 81, 97).
Its hue angle is 236°, with 10% saturation and 35% lightness. For print, the CMYK equivalent is 18% cyan, 16% magenta, 0% yellow and 62% black.
The closest named color is Black Orchid (#525463), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.8:1).
#505161 color codes
| HEX | #505161 | |
|---|---|---|
| RGB | rgb(80, 81, 97) | |
| RGB percent | rgb(31.4%, 31.8%, 38%) | |
| HSL | hsl(236, 10%, 35%) | |
| HSV / HSB | hsv(236, 18%, 38%) | |
| CMYK | cmyk(18%, 16%, 0%, 62%) | |
| CIE LAB | lab(34.91, 3.35, -9.42) | |
| CIE LCH | lch(34.91, 9.99, 289.57) | |
| CIE XYZ | xyz(8.408, 8.453, 12.496) | |
| Decimal | 5263713 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505161, 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 #505161 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.69:1 | Fail | Fail | Fail |
| Sample text | 7.8:1 | Pass | Pass | Pass |
| #505161 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.8:1 | Pass | Pass | Pass |
| Sample text | 2.69: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 #505161 looks to people with the most common types of color vision deficiency.
#4d5362Protanopia
no red cones#4c5261Deuteranopia
no green cones#4c5456Tritanopia
no blue cones#525252Achromatopsia
no color vision
CSS examples
.background { background-color: #505161; }
.text { color: #505161; }
.border { border: 2px solid #505161; }
.transparent { background-color: rgb(80 81 97 / 50%); }
.gradient { background: linear-gradient(to right, #505161, #585061); }
Similar colors
#525463Black Orchid#545663Blackwater#565266Freefall#4f566cHeavy Violet#484753Gun Powder#4d516cIntergalactic#494c55Deep Night#555570Majestic Magic
Closest common color name: Charcoal.
Questions
- What color is #505161?
- #505161 is a dark, grayish blue, closest to the named color Black Orchid. It belongs to the gray family of colors.
- What is the RGB value of #505161?
- The RGB value is 80, 81, 97: 80 red, 81 green and 97 blue on a 0 to 255 scale.
- What is the complementary color of #505161?
- The complementary color is #616050, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505161?
- White text. Black text has a contrast ratio of 2.69:1 and white text 7.8:1. WCAG asks for at least 4.5:1 for normal text.