Huebook

Gainsboro

Gainsboro is a very light neutral gray color with the hex code #DCDCDC (hue 0°, saturation 0%, lightness 86%). It is also the CSS named color gainsboro.

#DCDCDC
NameHEXRGBHSLCMYKOKLCH
Gainsboro#DCDCDC220, 220, 2200°, 0%, 86%0, 0, 0, 1489.4% 0.000 0

Contrast with white text 1.37:1, with black text 15.31:1 — use black text on Gainsboro.

gainsboro is one of the 148 named colors in CSS, with exactly this value, so color: gainsboro works in any browser without a hex code.

Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work

Adjust Gainsboro

Move the sliders to make Gainsboro lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.

Gainsboro
  • HEX#DCDCDC
  • RGBrgb(220 220 220)
  • HSLhsl(0 0% 86%)

Variations of Gainsboro

Text on Gainsboro

White textThe quick brown fox1.37:1 · AA fail · AAA fail
Black textThe quick brown fox15.31:1 · AA pass · AAA pass

WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.

Gainsboro with color blindness

Normal #DCDCDC
Protanopia #DCDCDC
Deuteranopia #DCDCDC
Tritanopia #DCDCDC

How Gainsboro appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.

Tints and shades

#E6E6E6
#BFBFBF
#999999
#737373
#4D4D4D
#262626

Colors that go with Gainsboro

Six color schemes built on Gainsboro with classic harmony rules. The complementary scheme pairs it with Waterfront (#D4E4E5), the color opposite it on the color wheel.

Nearest CSS named colors

Similar very light gray colors

Questions

What is the hex code for Gainsboro?

#DCDCDC — RGB 220, 220, 220, HSL 0°, 0%, 86%.

Is Gainsboro a warm or cool color?

Warm — its hue sits at 0° on the color wheel.