Gray is any colour with little or no saturation. A true neutral has red, green and blue equal; everything else is a tinted grey, and the tint is usually what decides whether a design feels warm or cold. Copy the HEX codes from any scheme below, or generate a harmonious gray palette anchored to your own base colour.
Gray Palette Ideas & HEX Codes
Neutral Gray carries a slight blue tint (216°–220°) and never more than 19% saturation — the standard interface ramp. Cool Gray is flatter still, down to 7% at #6C757D. Slate Gray is the most tinted, 37% saturation at #1B263B, and behaves like a colour rather than a neutral.
Neutral Gray
#F3F4F6
#D1D5DB
#9CA3AF
#6B7280
#374151
Cool Gray
#E9ECEF
#CED4DA
#ADB5BD
#6C757D
#343A40
Slate Gray
#1B263B
#415A77
#778DA9
#A9B4C2
#E0E1DD
Anchored to a gray base — press Space or Generate to roll more schemes. Click a swatch to copy its HEX, lock one to keep it while the rest re-roll, then export as CSS, JSON or HEX.
Free, no sign-up Generated in your browser CSS, JSON & HEX export
Drag in the colour area or the hue bar, or type a HEX / RGB value, then build a scheme anchored to it.
What Goes With Gray
Gray is the surface layer of most interfaces, so the real question is which accent sits on it. A blue-tinted grey takes blue and teal without friction; a warm grey needs a warm accent or it looks dirty. For the darker end of the same family see charcoal. Keep at least three clear steps between background, border and text greys.
Frequently Asked Questions
What HEX codes make a gray palette?
A gray scale palette steps evenly in lightness: a near-white (#F3F4F6), light greys (#D1D5DB), a mid gray (#6B7280) and a near-black (#374151). Adding a slight blue tint makes it cool, a slight warm tint makes it soft — a truly neutral gray is #6B7280. The three sets above are worked examples of that: Neutral Gray, Cool Gray and Slate Gray, five codes each. The deepest value on this page is #1B263B and the palest is #F3F4F6; put one on the other and you get 13.7:1, enough for body text at any size under WCAG AA and AAA.
What is the difference between gray and grey?
Spelling only — gray is the US form and grey the British one. CSS accepts both and treats them as the same value, #808080. The same is true of darkgray and darkgrey, lightgray and lightgrey, slategray and slategrey.
How do I use these colours in CSS?
Click Copy CSS for a ready-to-paste :root block with each colour as a custom property (--color-1, --color-2 and so on), or copy a single HEX straight from any swatch above. The generator here starts anchored to #6B7280, so the first block you copy is a set of gray variations rather than a random hue. Copy JSON returns the same five values as an array for a build step or a token file, and Copy HEX returns them as a plain comma-separated line. Lock any swatch you want to keep before generating again and it survives into the next export.
Which gray shade should I use as a background?
For a page or card background take the lightest step in the set — #F3F4F6 on this page. Black text on #F3F4F6 comes to 19:1, well past the 4.5:1 WCAG AA line. For a dark surface use #1B263B instead, the deepest code here, where white text gives 15.1:1. The mid steps are better spent on borders, chart fills and hover states, where nothing has to be read at 14px.