Gainsboro Hex Code — #DCDCDC
RGB, HSL, and CMYK values for Gainsboro.
Last updated: April 6, 2026
Gainsboro Color Values
| Format | Value |
|---|---|
| HEX | #DCDCDC |
| RGB | rgb(220, 220, 220) |
| HSL | hsl(0, 0%, 86%) |
| CMYK | cmyk(0%, 0%, 0%, 14%) |
About Gainsboro
Color psychology: Lightness, softness.
Gainsboro (#DCDCDC) is a light shade of gray with a hue angle of 0° on the color wheel, 0% saturation, and 86% lightness. It's commonly used in web design, graphic design, and branding where lightness, softness are desired associations.
In color theory, Gainsboro 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 Gainsboro in Design
Web Design
Use Gainsboro as a background color with dark text overlay. Light colors like this create open, airy layouts that reduce visual fatigue for content-heavy pages.
Branding & Logo
Gainsboro conveys lightness, softness — 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:14%) 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
Light colors like Gainsboro work well for card backgrounds, section dividers, and hover states. Pair with a darker variant for active/selected states.
How to Use Gainsboro in CSS
/* Using HEX */ color: #DCDCDC; background-color: #DCDCDC; /* Using RGB */ color: rgb(220, 220, 220); /* Using HSL — best for creating variations */ color: hsl(0, 0%, 86%); /* Transparent overlay (50% opacity) */ background-color: rgba(220, 220, 220, 0.5); /* Lighter variant for hover states */ background-color: hsl(0, 0%, 95%); /* Darker variant for active states */ background-color: hsl(0, 0%, 76%);
HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Gainsboro without changing its core hue or saturation.
Colors That Go With Gainsboro
Complementary
Analogous
Triadic
Similar Shades of Gray
Frequently Asked Questions
What is the hex code for Gainsboro?
What is Gainsboro in RGB and when should I use RGB?
How to use Gainsboro in CSS with different color formats?
What is the HSL value of Gainsboro and why is HSL useful for designers?
What is the CMYK value of Gainsboro for print design?
What colors pair well with Gainsboro in design projects?
Is Gainsboro (#DCDCDC) 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.