HueWiz / Colors / Gainsboro
#DCDCDC

Gainsboro

Gainsboro is a light neutral — a near-white that works as a supporting color rather than a statement.

Build palettes with Gainsboro →

Using Gainsboro in your designs

Gainsboro sits at 86% lightness with almost no saturation, which makes it a true workhorse neutral. In practice it behaves best as a page background or surface color: it stays out of the way, lets accent colors do the talking, and pairs safely with nearly any hue on the wheel.

Gainsboro is light enough that it pairs better with dark text than white: black type on gainsboro hits 15.31:1 — comfortably past the WCAG AA threshold — while white manages only 1.37:1. It shines as a section background, card fill or subtle highlight where a full-strength accent would shout.

Gainsboro color palettes

Every palette below is computed from gainsboro's position on the color wheel (hue 0°). Hover any swatch to see its code; click to copy.

Complementary

Analogous

Triadic

Split-complementary

Tetradic

Monochromatic

Tints and shades of Gainsboro

Tints mix gainsboro toward white; shades mix it toward black. Use the scale for hover states, borders and depth without leaving the hue.

Shades → base → tints

Contrast & accessibility

WCAG 2.1 requires 4.5:1 for normal text (AA) and 3:1 for large text. Here's how gainsboro performs, plus how it appears under the three main types of dichromatic color blindness (simulated approximation).

PairingRatioNormal textLarge text
White text on Gainsboro1.37:1FailFail
Black text on Gainsboro15.31:1AAAAAA
Protanopia#DCDCDC
Deuteranopia#DCDCDC
Tritanopia#DCDCDC

Gainsboro in code

Copy-ready snippets. In CSS you can also use the keyword gainsboro directly.

:root {
  --gainsboro: #DCDCDC;
  --gainsboro-rgb: 220, 220, 220;
  --gainsboro-tint: #ECECEC;
  --gainsboro-shade: #797979;
}

.btn-gainsboro {
  background: var(--gainsboro);
  color: #000000;
}
// tailwind.config.js
colors: {
  'gainsboro': {
    DEFAULT: '#DCDCDC',
    light: '#ECECEC',
    dark: '#797979',
  },
}

Colors similar to Gainsboro

The closest CSS named colors by perceptual (Lab) distance.

← PreviousfuchsiaNext →ghostwhite
Copied