NEUTRAL

Gainsboro

#DCDCDC
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%);
Contrast
On whiteFail · 1.37 : 1
On ink blackPass · 13.95 : 1
Shades
Tints
f5f5f5

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.

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)

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.