Gainsboro color

Inspect Gainsboro (#DCDCDC) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.

#dcdcdc

Gainsboro

Gainsboro color values

Gainsboro

#DCDCDC

Black text reads best on this background, at 15.31:1.

Gainsboro is one of the 148 CSS named colors, and resolves to #DCDCDC in every browser. In numbers that is rgb(220, 220, 220) and hsl(0, 0%, 86%). Perceptually it is a very light, near-neutral color: OKLCH puts its lightness at 89% and its chroma at 0. It carries almost no chroma, so it behaves as a neutral rather than as a hue, and belongs with the grays.

White text only reaches 1.37:1 here, so black text is the safer pairing at 15.31:1. Because it is this light, Gainsboro works best as a page or card background with dark text over it.

The closest CSS named colors to Gainsboro, measured with CIEDE2000, are LightGray (#D3D3D3), LightGrey (#D3D3D3), WhiteSmoke (#F5F5F5). If Gainsboro is not quite right, those are the nearest keywords to try before reaching for a custom value.

HEX

#DCDCDC

RGB

rgb(220, 220, 220)

HSL

hsl(0, 0%, 86%)

HWB

hwb(0 86% 14%)

CMYK

cmyk(0%, 0%, 0%, 14%)

LAB

lab(87.76 0 0)

LCH

lch(87.76 0 0)

OKLCH

oklch(89.45% 0 0)

Is Gainsboro accessible?

WCAG asks for 4.5:1 between body text and its background. On #DCDCDC white text measures 1.37:1 and black text 15.31:1, so black clears it and white does not.

White text on Gainsboro

WCAG 2.2

1.37:1

APCA

Lc 20

Fails AA body text

Fails AAA body text

Fails AA large text

Black text on Gainsboro

WCAG 2.2

15.31:1

APCA

Lc 85

Passes AA body text

Passes AAA body text

Passes AA large text

Check Gainsboro against any other color in the contrast checker.

Tints and shades of Gainsboro

Gainsboro sits at 89% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #F8F8F8 and down to #060606, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.

Tints, toward white

#E2E2E2

20% lighter

#E7E7E7

40% lighter

#EDEDED

60% lighter

#F3F3F3

80% lighter

#F8F8F8

100% lighter

Shades, toward black

#AAAAAA

20% darker

#7C7C7C

40% darker

#505050

60% darker

#282828

80% darker

#060606

100% darker

Build a full accessible scale from #DCDCDC in the shade generator.

How Gainsboro looks with color blindness

Gainsboro barely moves under any of the four common forms of color blindness, the largest shift being 0 CIEDE2000 units under protanopia. It stays recognizable, though it still should not be the only thing carrying meaning.

Protanopia

#DCDCDC

Deuteranopia

#DCDCDC

Tritanopia

#DCDCDC

Achromatopsia

#DCDCDC

Colors similar to Gainsboro

The nearest CSS keywords to #DCDCDC, ranked by perceptual distance rather than by how close their hex digits happen to look.