Gainsboro Hex Code — #DCDCDC

RGB, HSL, and CMYK values for Gainsboro.

Last updated: April 6, 2026

Gainsboro Color Values

FormatValue
HEX#DCDCDC
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)
CMYKcmyk(0%, 0%, 0%, 14%)
Want to explore more shades? Use our Color Converter

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?
The hex color code for Gainsboro is #DCDCDC. In CSS, apply it as text color with color: #DCDCDC;, as a background with background-color: #DCDCDC;, or as a border with border-color: #DCDCDC;. Hex is the most widely used color notation on the web because it is compact, supported by every browser, and easy to copy between design tools like Figma, Photoshop, and code editors.
What is Gainsboro in RGB and when should I use RGB?
Gainsboro in RGB is rgb(220, 220, 220), where Red=220, Green=220, and Blue=220 on a 0-255 scale. Use RGB when you need transparency — rgba(220, 220, 220, 0.5) creates a 50% transparent version. RGB is also the native format for HTML canvas, WebGL, and JavaScript image manipulation, since each channel represents the intensity of that primary light color on screen displays.
How to use Gainsboro in CSS with different color formats?
Gainsboro can be applied in CSS using multiple formats: (1) Hex: color: #DCDCDC; — most compact and widely used. (2) RGB: color: rgb(220, 220, 220); — useful when calculating colors dynamically in JavaScript. (3) HSL: color: hsl(0, 0%, 86%); — best for creating variations, since adjusting lightness produces lighter or darker shades while keeping the same hue. (4) With transparency: rgba(220, 220, 220, 0.8); or hsla(0, 0%, 86%, 0.8); for 80% opacity overlays.
What is the HSL value of Gainsboro and why is HSL useful for designers?
Gainsboro in HSL is hsl(0, 0%, 86%). HSL stands for Hue (0 degrees on the color wheel), Saturation (0% color intensity), and Lightness (86% brightness). HSL is the most intuitive format for designers because you can create harmonious palettes by rotating the hue, generate hover effects by increasing lightness by 10%, and desaturate colors by reducing the S value. This makes Gainsboro a light, muted warm-toned color.
What is the CMYK value of Gainsboro for print design?
Gainsboro in CMYK is C:0% M:0% Y:0% K:14%. CMYK (Cyan, Magenta, Yellow, Key/Black) is the standard color model for professional printing — business cards, brochures, merchandise, and packaging. When designing for print in Adobe InDesign or Illustrator, use these exact CMYK values to ensure accurate color reproduction. Screen colors (RGB) often appear more vibrant than their printed CMYK equivalents, so always request a physical proof for brand-critical materials.
What colors pair well with Gainsboro in design projects?
Gray is the ultimate neutral — it pairs with every color. Match warm grays with warm palettes and cool grays with cool palettes. Gray backgrounds let accent colors stand out prominently.
Is Gainsboro (#DCDCDC) accessible for web design and WCAG compliant?
Gray text is the most common accessibility failure on the web. For body text, stick to #595959 or darker on white. For large headings (18px+ bold), #767676 is the lightest acceptable gray. For Gainsboro specifically: as a light shade (lightness: 86%), it works best as a background color with dark text overlaid, or as a decorative accent. Avoid using it as text color on white backgrounds since the contrast ratio is likely insufficient. WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18px+ bold or 24px+ regular).

Was this page helpful?

Written by

Tamanna Tasnim

Senior Full Stack Developer

ToolsContainerDhaka, Bangladesh5+ years experiencetasnim@toolscontainer.comwww.toolscontainer.com

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.