Color mixer

Shades of Gray: Names, Hex Codes and RGB Values

Gray is #808080 (RGB 128, 128, 128), the exact midpoint between black and white, and its shades run from airy White Smoke (#F5F5F5) to near-black Gunmetal (#2A3439). Some are pure neutrals, and others lean blue, green or brown.

Gray

28 shades of gray with names and codes

In this guide
  1. Names
  2. Spelling
  3. Undertones
  4. Mixing
  5. How many
  6. CSS quirk
  7. Paint
  8. Pairings
  9. Uses
  10. Meaning
  11. FAQ

I spent years behind a paint store tinting counter before I became a color consultant, and gray was the color people struggled with most. It looks simple until two samples sit side by side. Tap any chip in the mixer above to copy its code, then use the sections below to tell the shades apart, mix your own and put them to work.

The Main Shades of Gray With Hex and RGB Codes

Gray has one official center and a big family around it. In the web color list, gray, light gray, dark gray, dim gray and gainsboro are true neutrals, while slate gray, light slate gray and dark slate gray are chromatic, meaning they carry a trace of color. This table covers the shades you will meet most often, from light to dark.

Shade Hex RGB Leans
Gainsboro #DCDCDC 220, 220, 220 Neutral
Greige #CCC2BA 204, 194, 186 Warm
Silver #C0C0C0 192, 192, 192 Neutral
Dark Gray #A9A9A9 169, 169, 169 Neutral
Taupe Gray #8B8589 139, 133, 137 Warm
Gray #808080 128, 128, 128 Neutral
Slate Gray #708090 112, 128, 144 Cool blue
Dim Gray #696969 105, 105, 105 Neutral
Charcoal #36454F 54, 69, 79 Cool blue
Dark Slate Gray #2F4F4F 47, 79, 79 Blue-green
Gunmetal #2A3439 42, 52, 57 Cool

Many gray names have a history. Charcoal was first recorded as a color name in English in 1606, and slate gray followed in 1705. Battleship gray is named for the paint used to rustproof steel and iron battleships. Gainsboro honors the English painter Thomas Gainsborough.

Gray or Grey: Which Spelling Is Right?

Both are correct. Gray is the usual American spelling and grey the British one. There is no difference in shade, so Gray #808080 and Grey #808080 are the same swatch. In code, CSS accepts both in color names (gray and grey, darkgray and darkgrey) and they produce identical results.

Choose the spelling your readers use and stick with it. A few names hold on to one form out of habit: greyhound and Earl Grey keep the e almost everywhere, even in American writing.

Warm, Cool and Neutral Grays: Reading the Undertone

Almost every gray that feels wrong in a room is an undertone problem. Pure black and white mixed together make a neutral gray, but most grays on paint chips have a drop of something else in them. That drop decides how the color behaves next to your floors, your sofa and your light.

Cool grays

Cool grays lean blue, green or violet. Slate gray is a moderate gray with a slight azure tinge, and steel gray (#71797E) and charcoal (#36454F) sit in the same family. They feel crisp and modern next to white, and they can turn chilly in a room that gets little sun.

Warm grays

Warm grays carry red, yellow or brown. Taupe gray (#8B8589), timberwolf (#DBD7D2) and greige (#CCC2BA) are the usual examples, and they sit comfortably beside oak, brass and cream. If you love the idea of gray but dislike its coolness, start with greige, then look at beige and its shades to see where the line between the two falls.

True neutral grays

Neutral grays such as #808080 and #696969 have equal red, green and blue. They are the most flexible, but they also borrow from their surroundings. Beside a warm orange sofa, a neutral gray can look slightly blue.

Quick undertone test

Lay your gray swatch on a sheet of plain white paper in daylight. The first tint you notice, blue, green or pinkish brown, is the undertone.

How to Mix Gray Paint and Control Its Temperature

Paint mixes by absorbing light, so the simplest gray is white plus black. Black pigment is strong, and that is the main trap. At the tinting counter, we always added black in drops and never in splashes, because you can darken a gray in seconds but you cannot lighten it without a lot more white.

  1. Start with a generous pool of white and add black a little at a time. As a rough guide, about 1 part black to 9 parts white gives a pale gray, and equal parts give a deep, heavy gray.
  2. Warm it with a speck of burnt umber or a red-brown. Cool it with a speck of ultramarine or phthalo blue.
  3. For a livelier gray, skip the black and mix two complements, such as blue and orange, in near equal amounts. Adjust the balance until neither one wins, then lighten with white.
  4. Test the dried color. Wet paint almost always dries slightly darker.

The complement method is how painters get those soft, tinted grays that look more alive than anything straight from the tube. If you want to see where a blue-and-brown mix lands, what brown and blue make walks through the results.

You want a warm, light gray. Which mix is the best starting point?

Two ratio bars of white and black blocks, 9 to 1 giving pale gray #E6E6E6 and 5 to 5 giving gray #808080
One part black to nine parts white gives pale #E6E6E6, while equal parts reach #808080.

A pinch of brown or red-brown pigment nudges the gray warm without making it look like a beige.

How Many Shades of Gray Are There on a Screen?

On a screen, gray is any color where red, green and blue are equal. In standard 8-bit color each channel runs from 0 to 255, so there are 256 neutral grays, counting black (0, 0, 0) and white (255, 255, 255) at the ends. That leaves 254 grays strictly in between, and #808080 sits at 128 in each channel. Shorthand codes like #888 and #CCC are simply neutral grays with repeated digits.

Which of these hex codes is a true neutral gray?

Neutral grays have identical red, green and blue values, and only #808080 has all three equal.

Light behaves differently from paint, which is the RGB versus RYB difference in practice. On a screen you add light, so equal amounts of red, green and blue give gray, and nudging one channel by a few points adds a tint. Charcoal is 54, 69, 79, so blue is the highest channel, which is exactly why it reads as blue-gray. Named shades like these multiply the count far beyond 256.

Why Is Dark Gray Lighter Than Gray in CSS?

It looks like a bug, but it is a historical quirk. CSS darkgray is #A9A9A9, which is lighter than gray at #808080. Darkgray comes from the old X11 color list, while gray comes from HTML, and the two lists were merged without fixing the names.

Palette card comparing CSS grays: gray #808080 beside light gray, dark gray #A9A9A9, dim gray and #333333
CSS darkgray is lighter than gray, so pick dark neutrals by hex code, not by name.

The practical lesson is to use hex values instead of guessing from names. If you need a dark neutral, dimgray (#696969) is darker than gray, and for text a value near #333333 is easier to read still.

Choosing a Gray Paint That Will Not Surprise You

Gray paint changes more with light than almost any other color. North-facing rooms get cool, bluish light, which can push a cool gray toward periwinkle. South-facing rooms get warmer light, so the same gray can look softer and even slightly beige. Artificial bulbs shift it again.

A client of mine chose a pale blue-gray for a north-facing study and called me after the first coat because the walls looked purple. We swapped to a warm gray with a small amount of beige and the room settled down. Good grays for such spaces tend to be the mid-light warm ones, while cool slate shades are best in sunny rooms. For a gentler look overall, our guide to muted colors shows how grays with a trace of pigment can feel calm.

Try this: Paint two large swatches of your gray on different walls, then look at them in morning light, evening light and under your lamps over three days. Keep the one that never turns blue, pink or green on you.

Colors That Look Best With Gray

Gray is the supporting actor of the color wheel. It makes colors around it look cleaner, and it lets a single bright shade stand out. Some reliable pairings:

  • Navy and softer blues: a calm, classic pairing. See shades of blue for names and codes to match with your gray.
  • White: crisp and clean. Check shades of white because a creamy white next to a cool gray can look dingy.
  • Burgundy: deep red-purple makes charcoal look rich, and burgundy is a dependable accent.
  • Mustard or soft yellow: a warm spark against slate or charcoal.
  • Blush pink: a gentle, slightly romantic contrast with mid grays.

Keep the proportions simple: mostly gray, one main accent, and a small amount of white or black to finish the scheme.

Using Gray in Clothes, Art and Interface Design

In clothing, charcoal is the grown-up neutral. A charcoal suit reads as formal and softer than black, and heather gray knitwear works as an easy base for color. For outfits, match undertones: cool grays go with navy and silver jewelry, warm grays with camel and gold.

Artists have long relied on grays. Davy’s gray was made from powdered slate, iron oxide and carbon black, and Payne’s gray is a bluish gray still found in watercolor sets. Painting in only grays is called grisaille. Photographers use an 18 percent gray card as a standard reference tone when setting exposure.

In interface design, light grays (#F5F5F5, #DCDCDC) work for backgrounds, borders and dividers. Text is a different matter. Gray #808080 on white gives about 3.9 to 1 contrast, which is too low for small body text under the WCAG accessibility guidelines. The lightest neutral gray that passes the 4.5 to 1 mark on white is #767676.

What Does the Color Gray Mean?

In Western settings, gray usually signals neutrality, restraint, maturity and formality, which is why it suits business clothing. It also has a gloomier side: overcast skies, dullness and the idiom of a “gray area” where things are unclear. Victorian mourning dress in Britain included gray as a half-mourning color, though customs differ widely from place to place.

Gray rarely carries a strong symbolic meaning of its own, so context decides how it reads. Spiritual traditions that interpret auras assign their own meanings, which are beliefs rather than science. If that is your interest, see our guide to the gray aura meaning.

Shades of Gray: Names, Hex Codes and RGB Values: questions people ask

What is the hex code for gray?

Gray is #808080, which is rgb(128, 128, 128). Red, green and blue are all set to the halfway point, so the color has no tint at all. The spelling grey gives the identical code.

What is the difference between gray and grey?

Only the spelling. Gray is the usual American form and grey the usual British one, and both name the same color. CSS accepts either, so gray and grey both render as #808080.

How many shades of gray are there?

On a standard 8-bit screen there are 256 neutral grays, counting pure black and pure white at the ends. Add shades with a slight tint, such as slate or charcoal, and the number of named grays runs into the hundreds.

What two colors make gray?

Black and white make gray in paint, and the more white you add, the lighter it gets. You can also mix two complementary colors, such as blue and orange, in roughly equal amounts for a more lively, tinted gray.

What is the difference between charcoal and slate gray?

Charcoal (#36454F) is a dark gray with a blue tint, while slate gray (#708090) is a mid-tone with a similar cool lean. Slate is roughly twice as light, so it suits large surfaces while charcoal works for accents and text.

Keep exploring