A very light, neutral gray. It is a standard web color, named after the English painter Thomas Gainsborough, and is used for borders and soft backgrounds.
Also known as: Pale gray.
The hex code for gainsboro is #DCDCDC. In RGB it is rgb(220, 220, 220), in HSL hsl(0, 0%, 86%) and in CMYK 0, 0, 0, 14.
Pick a color to pair it with and see how it looks on clothes, interiors and design.
Gainsboro (#DCDCDC) is a neutral, light, almost unsaturated color. It belongs to the grays family. It mixes 220 red, 220 green and 220 blue (out of 255). It is mostly used in web, borders, backgrounds.

From lightest to darkest. Tap a shade to copy its code.
See all its shades: Color shades generator
Outfit palettes with gainsboro or a very close shade, each with 8 outfits to copy.
Copy the codes or open a palette in the editor to tweak it.
Based on WCAG 2.1 guidelines. Test other pairs in the contrast checker.
:root {
--gainsboro: #DCDCDC;
--gainsboro-rgb: 220, 220, 220;
}
.bg { background-color: var(--gainsboro); }
.text { color: var(--gainsboro); }
The hex code for gainsboro is #DCDCDC. In RGB it is rgb(220, 220, 220), in HSL hsl(0, 0%, 86%) and in CMYK 0, 0, 0, 14.
Its complement on the color wheel is #DCDCDC, close to gainsboro. Used in small doses, it works as an accent and adds strong contrast.
Use black text instead: the contrast with white is only 1.4:1, while with black it is 15.3:1.
We use Google Analytics cookies to understand how the site is used. Is that OK? Learn more