Gainsboro Color — HEX, RGB, HSL, Palettes & Contrast

Gainsboro (#dcdcdc): Complete color reference with HEX, RGB, HSL values, tints & shades, complementary, analogous, triadic, split-complementary, and tetradic palettes, WCAG contrast recommendations, and ready-to-use CSS code.

#dcdcdc
HEX #dcdcdc
RGB rgb(220, 220, 220)
HSL 0°, 0%, 86%

Use Gainsboro in Your Projects

About Gainsboro Color

Gainsboro is a light, cool gray that works beautifully as a background for content areas and cards. It creates subtle separation without harsh contrast.

Use Cases for Gainsboro

card backgroundscontent separatorslight themesdisabled elementsloading skeletons

Shades & Tints of Gainsboro

#ffffff
#f6f6f6
#eeeeee
#e5e5e5
#dcdcdc
#a5a5a5
#6e6e6e
#373737
#000000

Complementary Color

#dcdcdc
#dbdbdb

Analogous Colors

#dbdbdb
#dcdcdc
#dbdbdb

Triadic Colors

#dcdcdc
#dbdbdb
#dbdbdb

Split Complementary

#dcdcdc
#dbdbdb
#dbdbdb

Tetradic Colors

#dcdcdc
#dbdbdb
#dbdbdb
#dbdbdb

CSS Code

.gainsboro-color {
  color: #dcdcdc;
  background-color: #dcdcdc;
}

/* As a CSS custom property */
:root {
  --color-gainsboro: #dcdcdc;
}

Accessibility Score

75 / 100
Rating: Good
AA contrast on best text color (30 pts)
AAA contrast on best text color (25 pts)
Versatile lightness for backgrounds & text (25 pts)
Not extreme black/white (20 pts)

A combined score based on WCAG contrast compliance, lightness versatility, and usable range. Higher scores mean the color works well in more design contexts.

Contrast Recommendations

Black text on Gainsboro
Ratio: 15.31:1 ✓ Passes AA ✓ Passes AAA
White text on Gainsboro
Ratio: 1.37:1 ✗ Fails AA ✗ Fails AAA

Frequently Asked Questions

What color is Gainsboro?

Gainsboro is represented by the hex code #dcdcdc and has RGB values of rgb(220, 220, 220). It falls under the Gray category.

How to use Gainsboro in web design?

Gainsboro works well for card backgrounds, content separators, light themes. Gainsboro is a light, cool gray that works beautifully as a background for content areas and cards. It creates subtle separation without harsh contrast. Use it as a primary color, accent, or background depending on your design needs.

What colors go with Gainsboro?

Colors that pair well with Gainsboro include lightgray, whitesmoke, silver, snow, aliceblue. For a complementary scheme, try #dbdbdb. For an analogous scheme, use #dbdbdb and #dbdbdb. For a triadic scheme, combine with #dbdbdb and #dbdbdb.