Skip to content

19 Shades of Gray with Hex Codes

Gray is the workhorse of interface and print design. Blue-tinted slate grays feel modern and cool, while pure grays are strictly neutral.

#808080

The gray hex code is #808080

#808080 is rgb(128, 128, 128) in RGB, hsl(0, 0%, 50%) in HSL, and about cmyk(0%, 0%, 0%, 50%) in CMYK. Every other gray below has its own hex code.

#808080rgb(128, 128, 128)hsl(0, 0%, 50%)

Named Gray Colors and Their Hex Codes

Ordered darkest to lightest. Names marked CSS are color keywords you can write directly in a stylesheet; the rest are common design and print names. Select any swatch for its full breakdown.

BlackCSS
#000000rgb(0, 0, 0)
Gunmetal
#2A3439rgb(42, 52, 57)
Graphite
#41424Crgb(65, 66, 76)
Charcoal
#36454Frgb(54, 69, 79)
DarkSlateGrayCSS
#2F4F4Frgb(47, 79, 79)
DimGrayCSS
#696969rgb(105, 105, 105)
Nickel
#727472rgb(114, 116, 114)
SlateGrayCSS
#708090rgb(112, 128, 144)
Smoke
#738276rgb(115, 130, 118)
GrayCSS
#808080rgb(128, 128, 128)
LightSlateGrayCSS
#778899rgb(119, 136, 153)
Pewter
#899499rgb(137, 148, 153)
DarkGrayCSS
#A9A9A9rgb(169, 169, 169)
Ash Gray
#B2BEB5rgb(178, 190, 181)
SilverCSS
#C0C0C0rgb(192, 192, 192)
LightGrayCSS
#D3D3D3rgb(211, 211, 211)
GainsboroCSS
#DCDCDCrgb(220, 220, 220)
Platinum
#E5E4E2rgb(229, 228, 226)
WhiteSmokeCSS
#F5F5F5rgb(245, 245, 245)

Gray Color Chart: Hex, RGB, HSL & CMYK

Every gray above in all four common formats. CMYK is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

NameHexRGBHSLCMYK
Black#000000rgb(0, 0, 0)hsl(0, 0%, 0%)cmyk(0%, 0%, 0%, 100%)
Gunmetal#2A3439rgb(42, 52, 57)hsl(200, 15%, 19%)cmyk(26%, 9%, 0%, 78%)
Graphite#41424Crgb(65, 66, 76)hsl(235, 8%, 28%)cmyk(14%, 13%, 0%, 70%)
Charcoal#36454Frgb(54, 69, 79)hsl(204, 19%, 26%)cmyk(32%, 13%, 0%, 69%)
DarkSlateGray#2F4F4Frgb(47, 79, 79)hsl(180, 25%, 25%)cmyk(41%, 0%, 0%, 69%)
DimGray#696969rgb(105, 105, 105)hsl(0, 0%, 41%)cmyk(0%, 0%, 0%, 59%)
Nickel#727472rgb(114, 116, 114)hsl(120, 1%, 45%)cmyk(2%, 0%, 2%, 55%)
SlateGray#708090rgb(112, 128, 144)hsl(210, 13%, 50%)cmyk(22%, 11%, 0%, 44%)
Smoke#738276rgb(115, 130, 118)hsl(132, 6%, 48%)cmyk(12%, 0%, 9%, 49%)
Gray#808080rgb(128, 128, 128)hsl(0, 0%, 50%)cmyk(0%, 0%, 0%, 50%)
LightSlateGray#778899rgb(119, 136, 153)hsl(210, 14%, 53%)cmyk(22%, 11%, 0%, 40%)
Pewter#899499rgb(137, 148, 153)hsl(199, 7%, 57%)cmyk(10%, 3%, 0%, 40%)
DarkGray#A9A9A9rgb(169, 169, 169)hsl(0, 0%, 66%)cmyk(0%, 0%, 0%, 34%)
Ash Gray#B2BEB5rgb(178, 190, 181)hsl(135, 8%, 72%)cmyk(6%, 0%, 5%, 25%)
Silver#C0C0C0rgb(192, 192, 192)hsl(0, 0%, 75%)cmyk(0%, 0%, 0%, 25%)
LightGray#D3D3D3rgb(211, 211, 211)hsl(0, 0%, 83%)cmyk(0%, 0%, 0%, 17%)
Gainsboro#DCDCDCrgb(220, 220, 220)hsl(0, 0%, 86%)cmyk(0%, 0%, 0%, 14%)
Platinum#E5E4E2rgb(229, 228, 226)hsl(40, 5%, 89%)cmyk(0%, 0%, 1%, 10%)
WhiteSmoke#F5F5F5rgb(245, 245, 245)hsl(0, 0%, 96%)cmyk(0%, 0%, 0%, 4%)

Gray Scale from Light to Dark

A 12-step lightness scale built from the core gray hue, holding hue and saturation constant. This is the shape of a design-system color ramp. Select any swatch for the full breakdown of that color.

Need a perceptually even ramp with semantic roles and contrast evidence? Generate gray design tokens.

What Gray Communicates

Most of a well-built interface is gray. The decision that matters is not which gray but whether it is truly neutral: adding a few degrees of blue or warmth to your gray ramp changes the whole feel of a product. Pure #808080 sits at a contrast ratio just under 4:1 against white, which means the middle of your gray scale is exactly where text accessibility breaks.

Where gray works well

  • Body text, borders, dividers, and disabled states
  • Neutral backgrounds and surface layers in light and dark themes
  • Cool slate ramps for modern software interfaces
  • Photography and print layouts where color would compete with the image

Colors that pair with gray

Copy the Gray Palette as CSS

Every shade on this page as CSS custom properties, ready to paste into a stylesheet.

:root {
  --gray-black: #000000;
  --gray-gunmetal: #2A3439;
  --gray-graphite: #41424C;
  --gray-charcoal: #36454F;
  --gray-darkslategray: #2F4F4F;
  --gray-dimgray: #696969;
  --gray-nickel: #727472;
  --gray-slategray: #708090;
  --gray-smoke: #738276;
  --gray-gray: #808080;
  --gray-lightslategray: #778899;
  --gray-pewter: #899499;
  --gray-darkgray: #A9A9A9;
  --gray-ash-gray: #B2BEB5;
  --gray-silver: #C0C0C0;
  --gray-lightgray: #D3D3D3;
  --gray-gainsboro: #DCDCDC;
  --gray-platinum: #E5E4E2;
  --gray-whitesmoke: #F5F5F5;
}

Gray Color Questions

What is the hex code for gray?

The standard gray hex code is #808080, which is rgb(128, 128, 128) in RGB and hsl(0, 0%, 50%) in HSL. There is no single "correct" gray — this page lists 19 named gray shades with their own hex codes.

How many shades of gray are there?

Displays can render millions of distinct gray values, so any count is a matter of which ones have names. This page lists 19 named shades of gray, combining the CSS color keywords with widely used gray names from design and print references, plus a generated 12-step lightness scale.

Can I use gray for text on a white background?

#808080 scores 3.95:1 against white. WCAG 2.2 asks for at least 4.5:1 for normal body text and 3:1 for large text, so this shade only passes for large text. Check any specific pairing in the contrast checker.

What colors go well with gray?

blue, red, gold all pair well with gray. For a specific shade, open its color page to see the complementary, analogous, and triadic colors calculated from its exact hue.

More Color Families