Gainsboro color: hex code #DCDCDC

#DCDCDC rgb(220, 220, 220)
Shades of gray

Gainsboro has the hex code #DCDCDC. It is a light gray.

In the RGB color model it is made of 86.3% red, 86.3% green and 86.3% blue (220, 220, 220).

Its hue angle is 0°, with 0% saturation and 86% lightness. For print, the CMYK equivalent is 0% cyan, 0% magenta, 0% yellow and 14% black.

You can use it in CSS with the keyword gainsboro.

Black text is the more readable choice on this background (contrast 15.31:1).

Gainsboro (#DCDCDC) color codes

HEX#DCDCDC
RGBrgb(220, 220, 220)
RGB percentrgb(86.3%, 86.3%, 86.3%)
HSLhsl(0, 0%, 86%)
HSV / HSBhsv(0, 0%, 86%)
CMYKcmyk(0%, 0%, 0%, 14%)
CIE LABlab(87.76, 0, 0)
CIE LCHlch(87.76, 0, 158.2)
CIE XYZxyz(68.025, 71.569, 77.927)
Decimal14474460
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Gainsboro, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #DCDCDCRatioAAAAAAA large
Sample text15.31:1PassPassPass
Sample text1.37:1FailFailFail
#DCDCDC as text onRatioAAAAAAA large
Sample text1.37:1FailFailFail
Sample text15.31:1PassPassPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #DCDCDC looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #dcdcdc; }
.text { color: #dcdcdc; }
.border { border: 2px solid #dcdcdc; }
.transparent { background-color: rgb(220 220 220 / 50%); }
.gradient { background: linear-gradient(to right, #dcdcdc, #dcdcdc); }
Background
Text color
Border

Similar colors

See #DCDCDC on its hex code page

Questions

What color is #DCDCDC?
#DCDCDC is a light gray known as Gainsboro. It belongs to the gray family of colors.
What is the RGB value of Gainsboro?
The RGB value is 220, 220, 220: 220 red, 220 green and 220 blue on a 0 to 255 scale.
What is the complementary color of Gainsboro?
The complementary color is #DCDCDC, found by rotating the hue 180° on the color wheel.
Is black or white text better on #DCDCDC?
Black text. Black text has a contrast ratio of 15.31:1 and white text 1.37:1. WCAG asks for at least 4.5:1 for normal text.