#DCDCDC

Gainsboro — Color Codes & Palette

#DCDCDC  ·  rgb(220, 220, 220)  ·  hsl(0, 0%, 86%)

Color Codes

Format Value
HEX #DCDCDC
RGB rgb(220, 220, 220)
HSL hsl(0, 0%, 86%)

Shades of Gainsboro

#C4C4C4#ADADAD#969696#808080#696969#525252#3B3B3B#242424

Tints of Gainsboro

#DEDEDE#E0E0E0#E3E3E3#E6E6E6#E8E8E8#EBEBEB#EDEDED#F0F0F0

Color Pairings & Harmony

Complementary
#DBDBDB
Analogous +30°
#DBDBDB
Analogous −30°
#DBDBDB
Triadic +120°
#DBDBDB
Triadic −120°
#DBDBDB

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
1.37:1 — Fail
vs. Black (#000000)
15.31:1 — AAA pass for normal text

CSS Snippet

.element {
  color: #DCDCDC;
}

.element-bg {
  background-color: #DCDCDC;
  color: #000000;
}

.element-border {
  border: 2px solid #DCDCDC;
}

About Gainsboro

Gainsboro is a very light color with very low saturation (nearly achromatic), defined by the hex code #DCDCDC. Its exact color model values are rgb(220, 220, 220) in RGB and hsl(0, 0%, 86%) in HSL (hue 0°, saturation 0%, lightness 86%). On a white background the contrast ratio is 1.37:1 — Fail, and on black it is 15.31:1 — AAA pass for normal text. Use Gainsboro for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of Gainsboro?
The RGB value of Gainsboro (#DCDCDC) is rgb(220, 220, 220). Red = rgb(220, 220, 220), representing the amounts of red, green, and blue light on a 0–255 scale.
Is Gainsboro accessible on a white background?
The contrast ratio of Gainsboro on white (#FFFFFF) is 1.37:1 — Fail. On black (#000000) the contrast ratio is 15.31:1 — AAA pass for normal text. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with Gainsboro?
Based on color theory, Gainsboro (hsl(0, 0%, 86%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.