Gainsboro color: #dcdcdc
The CSS keyword gainsboro is #dcdcdc, rgb(220, 220, 220) or hsl(0, 0%, 86%). Its codes to copy, 50–950 tint scale, harmonies and contrast on white and black.
Part of design tools.
About Gainsboro
Gainsboro is a neutral gray at 89% perceived lightness, with no hue at all. Having no hue, it reads the same in every color space: only its lightness changes between notations.
The keyword gainsboro comes from the X Window System color list, which SVG 1.0 adopted and CSS Color Level 3 brought to every stylesheet.
Gainsboro tint scale, 50 to 950
Eleven neutral steps at fixed perceived lightness, in OKLCH: every pure grey shares this scale, and what sets each one apart is where it sits on it. The keyword itself falls closest to step 200 (#d7d7d7), the one outlined; step 500 is #868686.
Harmonies built on Gainsboro
Gainsboro has no hue, so there is nothing to rotate: a complementary or triadic scheme would give back the same grey. What remains is the monochromatic scheme — the same neutral at four lightness steps.
Monochromatic
Gainsboro on white and on black
Black text reads better on gainsboro (15.31:1). As a text color it belongs on a dark background: on white it only reaches 1.37:1, under the 4.5:1 that body text needs, while on black it reaches 15.31:1. AA asks 4.5:1 for body text and 3:1 for large text; AAA asks 7:1.
Named colors close to Gainsboro
Open gainsboro in the full tools
- Open in Color Converter — convert it to any other notation.
- Open in Palette Generator — export its scale as --gainsboro-50 … --gainsboro-950 tokens.
- Open in Color Harmonies — turn the wheel and compare OKLCH with HSL.
- Open in Contrast Checker — test it against any background, with the closest passing shade.
- Open in Color System Generator — derive a light and dark token set from it.
Or browse every named color from the color converter.