The gray color code is #808080 in hexadecimal. Click any value below to copy it. Use HEX/RGB for web and digital design, CMYK for print, and HSL when adjusting lightness or saturation in code.
| Format | Value |
|---|---|
| HEX | #808080 |
| RGB | rgb(128, 128, 128) |
| CMYK | cmyk(0%, 0%, 0%, 50%) |
| HSL | hsl(0, 0%, 50%) |
How to Use Gray in CSS
background-color: #808080; | color: rgb(128, 128, 128); | border-color: hsl(0, 0%, 50%);
Nearest Shades
FAQs
What is the hex code for gray?
The hex code for gray is #808080. In RGB it is rgb(128, 128, 128), and in CMYK it is 0%, 0%, 0%, 50%. You can copy these codes from the color code section above.
What does the color gray mean?
Gray is associated with neutrality, balance, professionalism and timelessness. Its exact meaning shifts with culture and context — see the meaning and cultural sections on this page for details.
What colors go with gray?
Gray pairs beautifully with black, white, gold, gray and its complementary color. Explore the gray color combinations and palettes on this page for ready-to-use schemes.
Where can I download gray backgrounds?
Right here — this site offers 32 free gray backgrounds in HD (1920×1080) across 8 styles: solid, gradient, glow, waves, bokeh, rays, texture and curves. All are free for personal and commercial use.