#787F7F color
The hex color #787F7F is a gray.
In the RGB color model it is made of 47.1% red, 49.8% green and 49.8% blue (120, 127, 127).
Its hue angle is 180°, with 3% saturation and 48% lightness. For print, the CMYK equivalent is 6% cyan, 0% magenta, 0% yellow and 50% black.
The closest named color is Whale (#7C8181), a difference of 1.3 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 5.14:1).
#787F7F color codes
| HEX | #787F7F | |
|---|---|---|
| RGB | rgb(120, 127, 127) | |
| RGB percent | rgb(47.1%, 49.8%, 49.8%) | |
| HSL | hsl(180, 3%, 48%) | |
| HSV / HSB | hsv(180, 6%, 50%) | |
| CMYK | cmyk(6%, 0%, 0%, 50%) | |
| CIE LAB | lab(52.62, -2.59, -0.9) | |
| CIE LCH | lch(52.62, 2.75, 199.12) | |
| CIE XYZ | xyz(19.165, 20.704, 23.061) | |
| Decimal | 7896959 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #787F7F, 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 #787F7F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.14:1 | Pass | Fail | Pass |
| Sample text | 4.08:1 | Fail | Fail | Pass |
| #787F7F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.08:1 | Fail | Fail | Pass |
| Sample text | 5.14:1 | Pass | Fail | Pass |
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 #787F7F looks to people with the most common types of color vision deficiency.
#7e7e7fProtanopia
no red cones#7c7d7fDeuteranopia
no green cones#76807fTritanopia
no blue cones#7e7e7eAchromatopsia
no color vision
CSS examples
.background { background-color: #787f7f; }
.text { color: #787f7f; }
.border { border: 2px solid #787f7f; }
.transparent { background-color: rgb(120 127 127 / 50%); }
.gradient { background: linear-gradient(to right, #787f7f, #787c7f); }
Similar colors
#7c8181Whale#7f8181Mt. Rushmore#6e797bPhantom#7e8082Ironside#818581Happy Hippo#838585Gryphon#6f7678Volcanic Ash#728284Classic Movie
Closest common color name: Gray.
Questions
- What color is #787F7F?
- #787F7F is a gray, closest to the named color Whale. It belongs to the gray family of colors.
- What is the RGB value of #787F7F?
- The RGB value is 120, 127, 127: 120 red, 127 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #787F7F?
- The complementary color is #7F7878, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #787F7F?
- Black text. Black text has a contrast ratio of 5.14:1 and white text 4.08:1. WCAG asks for at least 4.5:1 for normal text.