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
| HEX | #dcdcdc |
| RGB | rgb(220, 220, 220) |
| HSL | hsl(0, 0%, 86%) |
Harmonies
Complementary
#d2e4e4Analogous
#e4d2db#e4dbd2Triadic
#d2e4d2#d2d2e4Split complementary
#d2e4db#d2dbe4Tints & shades
Accessibility
| vs #ffffff | 1.37:1 |
| vs #000000 | 15.31:1 |
| Suggested text color | #000000 · 15.31:1 · WCAG AAA |
Similar named colors
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.