Gainsboro Color (#DCDCDC)

#DCDCDCrgb(220, 220, 220)

Gainsboro is a CSS named color defined as hex code #DCDCDC. Gainsboro is a very pale neutral gray, just a little lighter than light gray. It suits subtle borders and backgrounds.

Color Overview & Formats

CSS: gainsboroLuminance: 0.7157
HEX
#DCDCDC
RGB
rgb(220, 220, 220)
HSL
hsl(0, 0%, 86%)
Gainsboro (#DCDCDC) Color Format Conversions
FormatSyntax / ValuesNotesAction
HEX#DCDCDC6-digit hex web code
RGBrgb(220, 220, 220)Red, Green, Blue channels (0-255)
HSLhsl(0, 0%, 86%)Hue (0°), Saturation (0%), Lightness (86%)
HSV / HSBhsv(0, 0%, 86%)Hue, Saturation (0%), Value/Brightness (86%)
CMYKcmyk(0%, 0%, 0%, 14%)Digital mathematical approximation (non-print)
OKLCHoklch(0.894 0.000 0.0)Perceptually uniform color space (CSS Color 4 approximation)
CSS Implementation & Quick Steps
background-color: #DCDCDC; /* or gainsboro */
  1. Select color format: Choose the desired format (HEX #DCDCDC, RGB, or HSL).
  2. Copy the code: Click the copy button or press Tab+Enter to store in clipboard.
  3. Pair with black text: Black text on Gainsboro reaches 15.31:1 (WCAG AAA).

What Colors Go With Gainsboro?

These 6 colors all go well with Gainsboro (#DCDCDC), and each one is a standard CSS named color. The ratio is the WCAG 2.2 contrast of that color on Gainsboro: at 4.5:1 or above it works for text; below that, use it for backgrounds and accents.

Black

#000000
15.31:1Text-safe

Strong, readable text on gainsboro.

Navy

#000080
11.67:1Text-safe

A deep blue that gives readable text and a crisp contrast.

6.51:1Text-safe

A dark neutral with a slight teal tint.

Dim Gray

#696969
4:1Background / accent

A tonal dark gray for secondary text.

Coral

#FF7F50
1.82:1Background / accent

A warm accent that livens up a neutral palette.

White

#FFFFFF
1.37:1Background / accent

Clean cards and panels on a gainsboro background.

Harmonious Palettes & Tints

The palettes below are algorithmically generated across standard intervals based on Gainsboro (HSL 0°). Each group offers full palette copy and live preview:

Complementary Harmony

Hue rotated 180 degrees on the HSL wheel (0° to 180°), keeping the original saturation and lightness.

Gainsboro
#DCDCDC
Complement (180°)
#DCDCDC
Live UI Component Mockup
Component Header SampleBlack text on Gainsboro: 15.31:1 (WCAG AAA).
Button style preview

Analogous Harmony

Hues 30 degrees either side (330° and 30°), keeping the original saturation and lightness.

Analogous (330°)
#DCDCDC
Gainsboro
#DCDCDC
Analogous (30°)
#DCDCDC
Live UI Component Mockup
Component Header SampleBlack text on Gainsboro: 15.31:1 (WCAG AAA).
Button style preview

Triadic Harmony

Hues spaced evenly by 120 degrees (120° and 240°), keeping the original saturation and lightness.

Gainsboro
#DCDCDC
Triadic (120°)
#DCDCDC
Triadic (240°)
#DCDCDC
Live UI Component Mockup
Component Header SampleBlack text on Gainsboro: 15.31:1 (WCAG AAA).
Button style preview

Tints & Shades

Mixed with white (tints) and black (shades) in sRGB at 60% and 30%.

Tint 60%
#F1F1F1
Tint 30%
#E7E7E7
Gainsboro
#DCDCDC
Shade 30%
#9A9A9A
Shade 60%
#585858
Live UI Component Mockup
Component Header SampleBlack text on Gainsboro: 15.31:1 (WCAG AAA).
Button style preview

WCAG 2.2 Text Readability & Contrast Check

Under WCAG 2.2 criteria, regular body text requires at least 4.5:1 (AA) and large text requires at least 3.0:1. The table below displays calculated contrast ratios:

Text Contrast Ratios on Gainsboro (#DCDCDC)
Foreground ColorContrast RatioNormal Text (AA)Large Text (AA)Normal Text AAA (>= 7.0:1)
Pure Black (#000000)
15.31:1PassPassPass
Pure White (#FFFFFF)
1.37:1FailFailFail
Dark Charcoal (#212529)
11.25:1PassPassPass
Mid Gray (#666666)
4.19:1FailPassFail

Interactive Contrast Tester

Enter text foreground and background colors to verify WCAG legibility:

Calculated Ratio:
15.31:1
Normal: Pass AAALarge: Pass AAA
Large Heading Sample (18pt Bold)

This is sample body text rendered directly to verify contrast and readability.

Gainsboro Background Download

Download standard 1920x1080 solid desktop wallpaper or generate mobile wallpaper:

Gainsboro 1920x1080 solid color background wallpaper previewStandard Wallpaper: 1920x1080 PNG (#DCDCDC)

Download Options

All wallpaper files precisely match the W3C standard color value:

Download 1920x1080 PNG

CSS Standard & Usage Notes

gainsboro = #dcdcdc (rgb(220, 220, 220))
W3C CSS Color 4

UI Design & Accessibility Guidelines

Use it for borders, dividers, table rows, and soft backgrounds. On Gainsboro, black text passes WCAG AAA at every size (15.31:1); white text fails even for large text (1.37:1).

Published: · Modified: · Editorial: SwatchAtlas Editorial Team

Frequently Asked Questions (FAQ)

Can I use black text on Gainsboro?

Yes. Black text on Gainsboro has a WCAG 2.2 contrast ratio of 15.31:1, passing both AA (4.5:1) and AAA (7:1) at every text size.

Can I use white text on Gainsboro?

No. White text on Gainsboro has a WCAG 2.2 contrast ratio of only 1.37:1, below the 3:1 minimum even for large text.

What colors go with Gainsboro?

Black, Navy, Dark Slate Gray, Dim Gray, Coral and White all go well with Gainsboro. Black (15.31:1), Navy (11.67:1) and Dark Slate Gray (6.51:1) have enough contrast for text on Gainsboro; Dim Gray, Coral and White work better as a background or accent.

Is gainsboro lighter than light gray?

Yes. Gainsboro (#DCDCDC) has a lightness of 86%, against 83% for Light Gray (#D3D3D3).