CSS named color

Gainsboro #DCDCDC

Gainsboro is a light neutral gray. Below: every color format, WCAG contrast against black and white, its tints, shades and tones, and the harmonies that pair with it.

Color values

Contrast & accessibility

WCAG contrast ratio of Gainsboro used as a foreground on white and black backgrounds.

Aa The quick brown fox
1.37:1

On white

AA ✕ AAA ✕ AA Large ✕
Aa The quick brown fox
15.31:1

On black

AA ✓ AAA ✓ AA Large ✓

Tints, shades & tones

Systematic variations of Gainsboro — click any swatch to copy its hex.

Tintsmixed toward white
Shadesmixed toward black
Tonesmixed toward gray

Color harmonies

Palettes built from Gainsboro by rotating its hue. Each swatch links to its closest named color.

Use Gainsboro in your stack

Tailwind (arbitrary value)

Works for any property: text-[#dcdcdc], border-[#dcdcdc].

CSS custom property

Reference it anywhere with var(--color).

Build a full theme

Turn Gainsboro into a complete shadcn/ui palette — light & dark, contrast-checked, one-command install.

Extract a theme →

Similar named colors

← All CSS named colors