gainsboro gainsboro #dcdcdc

gainsboro is #dcdcdc in hexadecimal, rgb(220, 220, 220) in decimal and hsl(0, 0, 86) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#dcdcdc
HEX#dcdcdc
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)

Harmonies

Complementary

#d2e4e4

Analogous

#e4d2db#e4dbd2

Triadic

#d2e4d2#d2d2e4

Split complementary

#d2e4db#d2dbe4

Tints & shades

#bababa#c9c9c9#dbdbdb#ededed#f5f5f5

Accessibility

vs #ffffff1.37:1
vs #00000015.31:1
Suggested text color#000000 · 15.31:1 · WCAG AAA

Similar named colors

lightgray#d3d3d3lightgrey#d3d3d3thistle#d8bfd8lavender#e6e6faantiquewhite#faebd7beige#f5f5dc

FAQ

What is the HEX code for gainsboro?

gainsboro is #dcdcdc in hex, rgb(220, 220, 220) in decimal and hsl(0, 0%, 86%) in HSL. In CSS you can write either color: gainsboro; or color: #dcdcdc; — they are equivalent.

What colors go with gainsboro?

The complementary #d2e4e4 gives the strongest contrast, the analogous pair #e4d2db / #e4dbd2 is the safest, and the triad #d2e4d2 / #d2d2e4 adds more tension. All three are derived from the 0° hue of #dcdcdc.

Does #dcdcdc read better on white or black?

Its contrast is 1.37:1 against white and 15.31:1 against black. Use #000000 text on it — that gives 15.31:1, which meets WCAG AAA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors