NEUTRAL

Gainsboro

No. 135

#DCDCDCrgb(220, 220, 220)hsl(0, 0%, 86%)

Gainsboro is #DCDCDC, rgb(220, 220, 220).

In CSS: gainsboro

Conversions
HEX#DCDCDC
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)
HSVhsv(0, 0%, 86%)
CMYKcmyk(0%, 0%, 0%, 14%)
Copy CSS
color: #dcdcdc; /* rgb */ color: rgb(220, 220, 220); /* hsl */ color: hsl(0, 0%, 86%);
Shades
Tints

Colors that go with Gainsboro

Contrast

1 of 2 backgrounds pass AA

  1. On whiteFail1.37 : 1
  2. On ink blackPass13.95 : 1

About Gainsboro

Gainsboro is the hex color #DCDCDC, which translates to rgb(220, 220, 220) in RGB and hsl(0, 0%, 86%) in HSL. On the color wheel it sits at 0 degrees, with a saturation of 0 percent and a lightness of 86 percent. With almost no saturation left, Gainsboro behaves as a near neutral: it sits under other colors rather than competing with them.

How Gainsboro compares

Gainsboro is exactly the CSS keyword gainsboro, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is neutral-300 (#D4D4D4), at a distance of 2.9. Inside this library the closest neighbour is Platinum at 3.0. Sorted by lightness, Gainsboro is number 21 of the 37 neutral colors here.

Text on Gainsboro

2 of the five common text colors below clear WCAG AA for normal text on Gainsboro, led by Ink black at 13.95:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Gainsboro already loaded as the background.

Contrast of common text colors on Gainsboro. AA normal text needs 4.5:1, AA large text and non-text elements need 3:1, AAA normal text needs 7:1.
Text colorRatioAA normalAA largeAAA normal
White #FFFFFF1.37:1FailFailFail
Ink black #0F0F1213.95:1PassPassPass
Mid grey #6B72803.53:1FailPassFail
Dark grey #3741517.52:1PassPassPass
Light grey #E5E7EB1.11:1FailFailFail

Building a palette around Gainsboro

The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Gainsboro for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Gainsboro locked and let it fill in the rest.

Full values for Gainsboro

FormatValue
HEX#DCDCDC
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)
HSVhsv(0, 0%, 86%)
CMYKcmyk(0%, 0%, 0%, 14%)
OKLCHoklch(89.45% 0.0000 0.00)
CIELABlab(87.76 0.00 0.00)

Frequently asked questions

What is the RGB value of Gainsboro?

Gainsboro (#DCDCDC) is rgb(220, 220, 220): 220 red, 220 green and 220 blue on the 0 to 255 scale. All three channels are equal, which is why Gainsboro has no hue at all. In HSL the same color is hsl(0, 0%, 86%).

What colour is #DCDCDC?

#DCDCDC is Gainsboro, a very light neutral colour with 0% saturation and 86% lightness. For print the CMYK breakdown is 0% cyan, 0% magenta, 0% yellow and 14% black. Its nearest neighbour in this library is Platinum, 3.0 away in CIELAB, a difference you can see.

Is Gainsboro a CSS color name?

Yes. The keyword gainsboro is one of the 148 named colors in CSS Color Module Level 4, so color: gainsboro; renders exactly #DCDCDC.

What colors go with Gainsboro?

Gainsboro has no hue, so complementary, analogous and triadic rules all return Gainsboro itself. As a neutral it sits under any accent color; for a one-color scheme use its own ramp, which runs from #1F1F1F to #FAFAFA in the shades and tints above.

What text color is readable on Gainsboro?

Ink black (#0F0F12) is the most readable on Gainsboro, at 13.95:1, which also clears WCAG AAA (7:1). 2 of the 5 common text colors tested pass AA for normal text.

Use Gainsboro in a tool

Nearby colors

Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.