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.
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.
Combinations based on the color wheel. More in the color harmony tool.
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.