Shades of Gray
with Hex Codes

Gray hex code: #808080 (CSS gray / grey) · Light gray: #D3D3D3 · Dim gray: #696969 · Silver: #C0C0C0

Grays do most of the quiet work in an interface: text, borders, backgrounds, disabled states and dividers. The CSS keyword gray (or grey, both spellings work) is #808080, exactly halfway between black and white. Neutral grays have equal red, green and blue values, while cool grays like slate lean blue and warm grays like taupe lean brown, which changes how a whole palette feels.

59+Color Shades
1-clickCopy Hex Code
2Filter Categories
Filter 59 colors

Complete List of Gray Color Shades

Click to copy HTML
Gray #808080
Click to copy HTML
Dark Gray #A9A9A9
Click to copy HTML
Dim Gray #696969
Click to copy HTML
Light Gray #D3D3D3
Click to copy HTML
Silver #C0C0C0
Click to copy HTML
Gainsboro #DCDCDC
Click to copy HTML
White Smoke #F5F5F5
Click to copy HTML
Slate Gray #708090
Click to copy HTML
Light Slate Gray #778899
Click to copy HTML
Dark Slate Gray #2F4F4F
Click to copy
Gray (X11) #BEBEBE
Click to copy
Platinum #E5E4E2
Click to copy
Timberwolf #DBD7D2
Click to copy
Silver Sand #BFC1C2
Click to copy
Silver Chalice #ACACAC
Click to copy
Quick Silver #A6A6A6
Click to copy
Spanish Gray #989898
Click to copy
Ash Gray #B2BEB5
Click to copy
Cadet Gray #91A3B0
Click to copy
Cool Gray #8C92AC
Click to copy
Taupe Gray #8B8589
Click to copy
Battleship Gray #848482
Click to copy
Sonic Silver #757575
Click to copy
Nickel #727472
Click to copy
Granite Gray #676767
Click to copy
Payne's Gray #536878
Click to copy
Davy's Gray #555555
Click to copy
Ebony #555D50
Click to copy
Feldgrau #4D5D53
Click to copy
Outer Space #414A4C
Click to copy
Arsenic #3B444B
Click to copy
Charcoal #36454F
Click to copy
Onyx #353839
Click to copy
Jet #343434
Click to copy
Gunmetal #2A3439
Click to copy
Cinereous #98817B
Click to copy
Grullo #A99A86
Click to copy Tailwind
Tailwind gray-50 #F9FAFB
Click to copy Tailwind
Tailwind gray-100 #F3F4F6
Click to copy Tailwind
Tailwind gray-200 #E5E7EB
Click to copy Tailwind
Tailwind gray-300 #D1D5DB
Click to copy Tailwind
Tailwind gray-400 #9CA3AF
Click to copy Tailwind
Tailwind gray-500 #6B7280
Click to copy Tailwind
Tailwind gray-600 #4B5563
Click to copy Tailwind
Tailwind gray-700 #374151
Click to copy Tailwind
Tailwind gray-800 #1F2937
Click to copy Tailwind
Tailwind gray-900 #111827
Click to copy Tailwind
Tailwind gray-950 #030712
Click to copy Tailwind
Tailwind slate-50 #F8FAFC
Click to copy Tailwind
Tailwind slate-100 #F1F5F9
Click to copy Tailwind
Tailwind slate-200 #E2E8F0
Click to copy Tailwind
Tailwind slate-300 #CBD5E1
Click to copy Tailwind
Tailwind slate-400 #94A3B8
Click to copy Tailwind
Tailwind slate-500 #64748B
Click to copy Tailwind
Tailwind slate-600 #475569
Click to copy Tailwind
Tailwind slate-700 #334155
Click to copy Tailwind
Tailwind slate-800 #1E293B
Click to copy Tailwind
Tailwind slate-900 #0F172A
Click to copy Tailwind
Tailwind slate-950 #020617

Shades of Gray — Hex Reference Table

Click any hex code or colour swatch to copy it to your clipboard.

PreviewNameHex CodeRGBCategory

How to Use Shades of Gray in CSS

Every shade on this page can be used directly in CSS. Copy the hex code and paste it into any CSS color property: color, background-color, border-color, box-shadow, or outline-color.

For transparency effects, convert the hex to RGB using the table above and use rgba(). For a design system, store your chosen shade as a CSS custom property so you can update it site-wide from one place.

/* Body text in a soft dark gray */ body { color: #374151; } /* Light gray surface */ .card { background-color: #F3F4F6; border: 1px solid #E5E7EB; } /* Gray overlay with transparency */ .overlay { background-color: rgba(128, 128, 128, 0.35); } /* CSS custom property */ :root { --text-muted: #6B7280; }

Frequently Asked Questions

What is the hex code for gray?
The CSS named color gray (also spelled grey) is #808080 (RGB 128, 128, 128). Light gray is #D3D3D3, silver is #C0C0C0 and dim gray is #696969.
Why is CSS darkgray lighter than gray?
It is a historical quirk. CSS darkgray (#A9A9A9) comes from the old X11 color list, while gray (#808080) comes from the HTML 4 list, so darkgray ends up lighter. Use dimgray (#696969) or a hex code when you need a darker gray.
What is the hex code for charcoal gray?
Charcoal is #36454F (RGB 54, 69, 79), a dark gray with a slight blue tint. Other dark grays are gunmetal #2A3439, jet #343434, onyx #353839 and Davy's gray #555555.
What are the different shades of gray called?
Common grays include silver, platinum, gainsboro, ash gray, slate gray, cool gray, battleship gray, charcoal, gunmetal, jet, onyx, Payne's gray and taupe gray.
How do I use gray in CSS?
Use a hex code such as color: #6B7280;, a keyword like color: dimgray;, or RGB for transparency: background: rgba(128, 128, 128, 0.3);. Both gray and grey spellings are valid in every gray keyword, for example lightgrey.

More Color Shade Collections

✓ Hex copied!