Swatchproof

Gainsboro #DCDCDC

Gainsboro is one of the named colours in CSS, written gainsboro. Black text reaches 15.31:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordgainsboro
HEX#DCDCDC
RGBrgb(220 220 220)
HSLhsl(0 0% 86%)
OKLCHoklch(89.4% 0.000 0)
White text1.37:1 · body text AA Fail
Black text15.31:1 · body text AA Pass

Colours that go with Gainsboro

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Nile Blue (#BCE4E5), close. These are the colours Wada paired it with, ranked by their contrast with Gainsboro itself.

ColourHEXContrast with GainsboroBody text AA
Deep Slate Olive#2531229.94:1Pass
Hay's Russet#7933276.61:1Pass
Blue Violet#6450A14.78:1Pass
Antwarp Blue#0071904.07:1Fail
Etruscan Red#C553473.26:1Fail
Dull Viridian Green#0094652.82:1Fail
Raw Sienna#BB71252.78:1Fail
Green Blue#0991972.78:1Fail
Benzol Green#00978D2.64:1Fail
Peach Red#F15A302.45:1Fail
Light Brown Drab#B593922.03:1Fail
Sea Green#00B49B1.91:1Fail
Salvia Blue#97ACC81.69:1Fail
Ecru#C2AE931.57:1Fail
Pyrite Yellow#CAB3561.52:1Fail
Venice Green#62C6BF1.48:1Fail
Olive Buff#C1C4941.32:1Fail
Cream Yellow#FDBF681.19:1Fail
Lemon Yellow#F8ED431.12:1Fail

Palettes with Nile Blue

Shades and tints of Gainsboro

Nine lightness steps in OKLCH that keep the hue of Gainsboro. Chroma is reduced only where sRGB cannot show it.

:root {
  --gainsboro-100: #F5F5F5;
  --gainsboro-200: #E4E4E4;
  --gainsboro-300: #CECECE;
  --gainsboro-400: #B1B1B1;
  --gainsboro-500: #929292;
  --gainsboro-600: #717171;
  --gainsboro-700: #555555;
  --gainsboro-800: #3A3A3A;
  --gainsboro-900: #222222;
}

Text that keeps Gainsboro on screen

Text #222222 on #DCDCDC reaches 11.60:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours