Gray Hex Code — #808080
RGB, HSL, and CMYK values for Gray.
Last updated: April 6, 2026
Gray Color Values
| Format | Value |
|---|---|
| HEX | #808080 |
| RGB | rgb(128, 128, 128) |
| HSL | hsl(0, 0%, 50%) |
| CMYK | cmyk(0%, 0%, 0%, 50%) |
About Gray
Color psychology: Neutrality, balance.
Gray (#808080) is a medium shade of gray with a hue angle of 0° on the color wheel, 0% saturation, and 50% lightness. It's commonly used in web design, graphic design, and branding where neutrality, balance are desired associations.
In color theory, Gray sits in the warm section of the spectrum. Its low saturation creates a muted, understated tone — great for backgrounds, borders, and subtle UI elements.
When to Use Gray in Design
Web Design
Use Gray for headings, links, or accent elements against light backgrounds. Dark colors like this provide strong contrast and draw the eye to important content.
Branding & Logo
Gray conveys neutrality, balance — consider it for brands that want to project these qualities. Test it at small sizes (favicon, social avatar) to ensure it remains recognizable.
Print Design
Use the CMYK values (C:0% M:0% Y:0% K:50%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.
UI / UX Design
Dark colors like Gray are effective for primary buttons, navigation bars, and text. Use a lighter tint (increase HSL lightness to 90%+) for hover backgrounds.
How to Use Gray in CSS
/* Using HEX */ color: #808080; background-color: #808080; /* Using RGB */ color: rgb(128, 128, 128); /* Using HSL — best for creating variations */ color: hsl(0, 0%, 50%); /* Transparent overlay (50% opacity) */ background-color: rgba(128, 128, 128, 0.5); /* Lighter variant for hover states */ background-color: hsl(0, 0%, 60%); /* Darker variant for active states */ background-color: hsl(0, 0%, 40%);
HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Gray without changing its core hue or saturation.
Colors That Go With Gray
Complementary
Analogous
Triadic
Similar Shades of Gray
Frequently Asked Questions
What is the hex code for Gray?
What is Gray in RGB and when should I use RGB?
How to use Gray in CSS with different color formats?
What is the HSL value of Gray and why is HSL useful for designers?
What is the CMYK value of Gray for print design?
What colors pair well with Gray in design projects?
Is Gray (#808080) accessible for web design and WCAG compliant?
Was this page helpful?
Written by
Tamanna Tasnim
Senior Full Stack Developer
Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.