#7E797B color

#7E797B rgb(126, 121, 123)
Shades of gray

The hex color #7E797B is a gray.

In the RGB color model it is made of 49.4% red, 47.5% green and 48.2% blue (126, 121, 123).

Its hue angle is 336°, with 2% saturation and 48% lightness. For print, the CMYK equivalent is 0% cyan, 4% magenta, 2% yellow and 51% black.

The closest named color is Bank Vault (#757374), a difference of 3.2 ΔE, a small difference.

Black text is the more readable choice on this background (contrast 4.91:1).

#7E797B color codes

HEX#7E797B
RGBrgb(126, 121, 123)
RGB percentrgb(49.4%, 47.5%, 48.2%)
HSLhsl(336, 2%, 48%)
HSV / HSBhsv(336, 4%, 49%)
CMYKcmyk(0%, 4%, 2%, 51%)
CIE LABlab(51.31, 2.29, -0.41)
CIE LCHlch(51.31, 2.33, 349.75)
CIE XYZxyz(19.016, 19.541, 21.505)
Decimal8288635
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #7E797B, 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 #7E797BRatioAAAAAAA large
Sample text4.91:1PassFailPass
Sample text4.28:1FailFailPass
#7E797B as text onRatioAAAAAAA large
Sample text4.28:1FailFailPass
Sample text4.91:1PassFailPass

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 #7E797B looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #7e797b; }
.text { color: #7e797b; }
.border { border: 2px solid #7e797b; }
.transparent { background-color: rgb(126 121 123 / 50%); }
.gradient { background: linear-gradient(to right, #7e797b, #7e7a79); }
Background
Text color
Border

Similar colors

Questions

What color is #7E797B?
#7E797B is a gray, closest to the named color Bank Vault. It belongs to the gray family of colors.
What is the RGB value of #7E797B?
The RGB value is 126, 121, 123: 126 red, 121 green and 123 blue on a 0 to 255 scale.
What is the complementary color of #7E797B?
The complementary color is #797E7C, found by rotating the hue 180° on the color wheel.
Is black or white text better on #7E797B?
Black text. Black text has a contrast ratio of 4.91:1 and white text 4.28:1. WCAG asks for at least 4.5:1 for normal text.