Shades of Gray
Gray (or grey) is every mix of black and white, and its named shades lean warm or cool — from platinum, silver and gainsboro to slate, charcoal and gunmetal. Copy each as hex, RGB or HSL.
Click any shade to copy its hex code.
Light gray shades 11
Gray shades 11
Dark gray shades 10
Gray color palettes
Five-colour palettes built from the shades above. Click a colour to copy it, or copy the whole palette.
Gray gradients
Made from these gray shades — copy the CSS.
Gray gradients from the library
Tree Bark
Holiday Silver Bells
Halloween Graveyard Mist
Halloween Spider Silk
Halloween Cauldron Smoke
Gray color FAQ
What is the hex code for gray?
The standard gray hex code is #808080, which is RGB(128, 128, 128). In CSS you can also write it as the keyword gray.
How many shades of gray are there?
There is no fixed number — a normal screen can show millions of variations. This page lists 32 named shades of gray, from White Smoke (#F5F5F5) to Gunmetal (#2A3439), each with its hex, RGB and HSL code.
What is a light gray hex code?
The lightest named grays here are White Smoke (#F5F5F5), Platinum (#E5E4E2), Gainsboro (#DCDCDC). They work well as backgrounds and tints behind dark text.
What is a dark gray hex code?
The darkest named grays here are Onyx (#353839), Jet (#343434), Gunmetal (#2A3439). Use them for text, borders and deep backgrounds with light text on top.
What colors go well with gray?
Gray is a neutral, so it goes with almost any colour. A single saturated accent — a blue, a coral or a green — usually looks best against it; keep two or three neutrals for everything else.
How do I use these gray shades in CSS?
Click any shade to copy its hex code, then use it anywhere CSS takes a colour: color: #808080; or background: linear-gradient(135deg, #F5F5F5, #808080);. RGB and HSL work the same way: rgb(128 128 128).
More color shades
Build with these colours: Palette Generator · Gradient Generator · Contrast Checker
