shades of gray

EnglishFrançaisEspañolDeutschItalianoPortuguês

Give me colors

Tap a color to copy its code
Size

Press F or Esc to leave full screen

Shades of gray, with their names

A gray is never quite just gray. Some lean warm, like taupe gray, some lean cool, like slate gray and cool gray, and some are perfectly neutral, like silver or the middle gray at #808080. This page lists eleven named grays with their HEX, RGB and HSL codes, from platinum to anthracite, and the generator above draws palettes from them, ordered from light to dark.

Each shade drifts slightly around its code on every draw, so you can pull several neutral palettes in a row and compare them. Tap any swatch to copy its HEX code. Grays are the backbone of most interfaces, which is why a light-to-dark scale like this one is handy for backgrounds, borders and text.

Gray is where contrast catches people out. Middle gray (#808080) gives white text a contrast of only 3.9, and slate gray 4.1, both under the 4.5 the WCAG guidelines set for body text. Only the three darkest shades pass with white: dim gray (5.5), charcoal (9.9) and anthracite (13.3). On platinum (1.3) or silver (1.8), use black or a dark gray for text.

A curiosity of web colors: in CSS the keyword gray (#808080) is darker than darkgray (#A9A9A9). The names in the table come from materials: slate and charcoal, anthracite after the hard coal of the same name, ash, and taupe, the French word for a mole. Both spellings are correct, gray in American English and grey in British English. For warmer neutrals, try the earth tone palette or the shades of brown.

Eleven named shades of gray, lightest to darkest

Each shade below has its usual name and reference HEX code. The generator picks shades at random from this list, nudges each one slightly so no two palettes are identical, then orders the palette from light to dark. 3 of the 11 shades keep white text readable (contrast of 4.5 or more, the WCAG threshold for body text).

ShadeHEXRGB and HSLContrast white / blackReadable text
platinum#E5E4E2rgb(229, 228, 226)
hsl(40, 5 %, 89 %)
1.3 / 16.5black
light gray#D3D3D3rgb(211, 211, 211)
hsl(0, 0 %, 83 %)
1.5 / 14.0black
silver#C0C0C0rgb(192, 192, 192)
hsl(0, 0 %, 75 %)
1.8 / 11.5black
ash gray#B2BEB5rgb(178, 190, 181)
hsl(135, 8 %, 72 %)
1.9 / 10.9black
cool gray#8C92ACrgb(140, 146, 172)
hsl(229, 16 %, 61 %)
3.1 / 6.8black
taupe gray#8B8589rgb(139, 133, 137)
hsl(320, 3 %, 53 %)
3.6 / 5.8black
gray#808080rgb(128, 128, 128)
hsl(0, 0 %, 50 %)
3.9 / 5.3black
slate gray#708090rgb(112, 128, 144)
hsl(210, 13 %, 50 %)
4.1 / 5.2black
dim gray#696969rgb(105, 105, 105)
hsl(0, 0 %, 41 %)
5.5 / 3.8white
charcoal#36454Frgb(54, 69, 79)
hsl(204, 19 %, 26 %)
9.9 / 2.1white
anthracite#293133rgb(41, 49, 51)
hsl(192, 11 %, 18 %)
13.3 / 1.6white

Six sample palettes

Drawn once for this page with the same rule as the tool, so you can see the kind of palettes it makes before you generate your own.

#Colors
1#979CAF #7C8792 #7D7878 #6E6463 #272E30
2#E9E8E7 #92818C #6A6868 #32424E #262F31
3#E6E6E6 #D9D8D8 #9599B2 #707070 #232C2F
4#DAD8D8 #837C81 #6C757F #706B6C #38454D
5#ECEBE9 #CCC7C7 #AEBCB1 #374B58 #202627
6#BBB4B4 #9C9FB0 #798896 #757170 #23282A

Shades of gray: how it works

  1. Pick the number of colors

    Tap the number in the sentence to get 3, 4, 5 or 6 colors, and the theme to switch between random, pastel, Christmas, autumn, earth-tone and neon.

  2. Generate a palette

    Press Generate or the space bar. The colors slide in and the whole page takes the first one, so you see the palette at full size.

  3. Copy the codes

    Tap one color to copy its HEX code, or Copy all to get the whole palette, ready to paste into your design tool, your CSS or a message.

Any suggestions for improvement?

We build tools that are as simple and intuitive as possible, with a few bonuses here and there. Tell us what would make this one better.

Shades of gray: frequently asked questions

Is it gray or grey?

Both. Gray is the usual American spelling and grey the British one. CSS accepts both spellings for its gray keywords.

What is the difference between charcoal and anthracite?

Charcoal (#36454F) is a dark gray with a blue tint; anthracite (#293133) is darker still, close to black. Both carry white text very well.

Which gray can I use behind white text?

In this list, dim gray (#696969) is the lightest gray that passes the 4.5 threshold. Middle gray (#808080) looks dark enough but only reaches 3.9.

What is a warm gray?

A gray with a little red or yellow in it, like taupe gray (#8B8589). Cool grays, like slate gray (#708090), carry a little blue instead.

Is the random color generator free?

Yes. It is free to use, funded by advertising, with no account and no app to install.