Gray color #808080
Gray is one of the CSS named colors (keyword gray) with the hex code #808080 — RGB 128, 128, 128, HSL 0°, 0%, 50%.
#808080Gray
Color codes
- HEX
#808080- RGB
rgb(128, 128, 128)- HSL
hsl(0, 0%, 50%)- CMYK
0%, 0%, 0%, 50%- OKLCH
oklch(60% 0 0)- CSS keyword
gray
Tints and shades
#F5F5F5#DADADA#BFBFBF#A6A6A6#8D8D8D#747474#5D5D5D#464646#313131#1D1D1D#0B0B0B
Color harmonies
Complementary
#808080#808080
Analogous
#808080#808080#808080
Triadic
#808080#808080#808080
Split complementary
#808080#808080#808080
Tetradic
#808080#808080#808080#808080
Contrast with text
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Gray text on white | 3.95 : 1 | 67 | AA for large text only |
| Gray text on black | 5.32 : 1 | -35 | AA — body text |
| White text on Gray | 3.95 : 1 | -72 | AA for large text only |
| Black text on Gray | 5.32 : 1 | 37 | AA — body text |
Palettes with this color
- Wisteria & Very Dark Purple
- Seafoam Blue & Almost Black
- Denim & Alice Blue
- Misty Rose & Very Dark Brown
- Light Teal & Dark Blue Grey
- Celadon & Almost Black
Frequently asked questions
What is the hex code of Gray?
Gray has the hex code #808080, which is RGB 128, 128, 128 and HSL 0°, 0%, 50%.
Which text color reads best on Gray?
Black text: contrast 5.32 : 1 (white text: 3.95 : 1).
Which colors go well with Gray?
Its complementary color is #808080; analogous colors are #808080 and #808080; a triadic set adds #808080 and #808080.
Similar colors
- Slate Gray #708090
- Light Slate Gray #778899
- Brown Grey #8D8468
- Brownish Grey #86775F
- Reddish Grey #997570
- Purpley Grey #947E94
- Warm Grey #978A84
- Purple Grey #866F85
- Greyish Blue #5E819D
- Slate Green #658D6D
Sources and licences
- CSS Color Module Level 4 — named colors (W3C Software and Document License)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)