Skip to content

Gainsboro (#DCDCDC)

The hex code for Gainsboro is #DCDCDC. It is rgb(220, 220, 220) in RGB, hsl(0, 0%, 86%) in HSL, and about cmyk(0%, 0%, 0%, 14%) in CMYK — a lightest white. Black text is the more readable choice on this background.

#DCDCDC
HEX#DCDCDC
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)
HSVhsv(0, 0%, 86%)
CMYKcmyk(0%, 0%, 0%, 14%)
OKLCHoklch(89.4% 0 0)
LABlab(87.76% -0.00 0.00)
LCHlch(87.76% 0.00 0.00)

Colors Closest to Gainsboro

Gainsboro is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every white in the library.

#DCDCDC Channel Values

How Gainsboro breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 220 · G 220 · B 2208-bit channels as sent to the display
HSLH 0° · S 0% · L 86%Easiest model for building lighter and darker variants
HSVH 0° · S 0% · V 86%Matches the picker in most design tools
CMYKC 0% · M 0% · Y 0% · K 14%Approximate ink mix; confirm with an ICC profile before printing
Luminance1.37:1 vs white · 15.31:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Gainsboro background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

Fails AAWhite text1.37:1AA normal AA large AAA normal
TextBlack text15.31:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #DCDCDC in the contrast checker.

Colors That Go With Gainsboro

Pairings derived from color-wheel relationships. The complementary color sits opposite Gainsboro; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Gainsboro

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #DCDCDC.

How Gainsboro Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#DCDCDC
Protanopia#DCDCDC
Protanomaly#DCDCDC
Deuteranopia#DCDCDC
Deuteranomaly#DCDCDC
Tritanopia#DCDCDC
Tritanomaly#DCDCDC
Achromatopsia#DCDCDC

Test a full palette in the color blindness simulator.

Using #DCDCDC in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--gainsboro: #DCDCDC;
CSS backgroundbackground-color: #DCDCDC;
Tailwind configcolors: { 'gainsboro': '#DCDCDC' }
SwiftUIColor(red: 0.863, green: 0.863, blue: 0.863)
Android XML<color name="gainsboro">#DCDCDC</color>
SVG fillfill="#DCDCDC"

More White Colors

Gainsboro sits in the white family. These are its neighbours across that family's full range, each with its own breakdown.

#DCDCDC Frequently Asked Questions

What is the hex code for Gainsboro?

The hex code for Gainsboro is #DCDCDC. That is rgb(220, 220, 220) in RGB, hsl(0, 0%, 86%) in HSL, and approximately cmyk(0%, 0%, 0%, 14%) in CMYK.

What is the RGB value of #DCDCDC?

#DCDCDC is rgb(220, 220, 220) — red 220, green 220, and blue 220 on the 0-255 scale.

What is the CMYK value of #DCDCDC?

#DCDCDC converts to approximately cmyk(0%, 0%, 0%, 14%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #DCDCDC be black or white?

Black text is the more readable choice. #DCDCDC scores 1.37:1 against white and 15.31:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Is Gainsboro a CSS named color?

Yes. Gainsboro is one of the CSS named colors, so you can write color: gainsboro instead of the hex code.

Open Gainsboro in a Tool

Keep exploring: every white in the color library, the guide to shades of white, or the full color library.