Color Terminology & Developer Guide • 30 Shades

Gray vs. Grey: Spelling Difference, 30 Shades of Gray Hex Chart & CSS Guide

By Pikka Color Studio • Updated November 2026 • American vs. British Spelling, W3C CSS Quirks & Neutral UI Tokens

Is it spelled gray or grey? Whether you are writing copy, choosing wall paint, or declaring CSS color variables, both words describe the exact same achromatic color spectrum between pure black (#000000) and pure white (#FFFFFF).

The Instant Rule: GrAy vs. GrEy

  • Gray (with an A): Standard in American English (United States).
  • Grey (with an E): Standard in England / British English, as well as Canada, Australia, New Zealand, and Ireland.
  • In HTML & CSS: Both color: gray; and color: grey; resolve to the exact same hexadecimal value: #808080 (rgb(128, 128, 128)).

Why CSS darkgray (#A9A9A9) Is Lighter Than gray (#808080)

One of the most famous quirks in web development history occurs when you place CSS darkgray next to CSS gray: darkgray is noticeably lighter than gray!

In the early 1990s, the X11 Window System defined gray as a bright silver (#BEBEBE) and created darkgray (#A9A9A9) as a slightly darker step below it. Meanwhile, the W3C HTML 3.2 specification defined gray at the mathematical 50% RGB midpoint (#808080). When CSS3 merged the HTML and X11 color lists, HTML's #808080 won the name gray, leaving X11's darkgray stranded at #A9A9A9:

lightgray / lightgrey
#D3D3D3 • rgb(211,211,211)
darkgray / darkgrey
#A9A9A9 • rgb(169,169,169)
gray / grey
#808080 • rgb(128,128,128)
dimgray / dimgrey
#696969 • rgb(105,105,105)

30 Shades of Gray & Grey: Complete Hex, RGB & HSL Chart

Click any hex button below to copy the color token directly to your clipboard:

1. Official W3C CSS Gray / Grey Keywords (Lightest to Darkest)

All modern browsers accept both 'gray' and 'grey' spellings interchangeably for these standard W3C CSS color keywords.

Gray / Grey Shade HEX Code RGB Value HSL Value CSS Keyword & Design Application
Gainsboro rgb(220, 220, 220) hsl(0, 0%, 86%) gainsboro — Soft neutral divider lines and disabled input backgrounds.
LightGray / LightGrey rgb(211, 211, 211) hsl(0, 0%, 83%) lightgray / lightgrey — Subtle table borders and skeleton loaders.
Silver rgb(192, 192, 192) hsl(0, 0%, 75%) silver — Classic HTML 3.2 metallic neutral and secondary icons.
DarkGray / DarkGrey rgb(169, 169, 169) hsl(0, 0%, 66%) darkgray / darkgrey — X11 legacy keyword (visually lighter than #808080!).
Gray / Grey (Standard) rgb(128, 128, 128) hsl(0, 0%, 50%) gray / grey — Exact 50% midpoint between pure black and pure white.
DimGray / DimGrey rgb(105, 105, 105) hsl(0, 0%, 41%) dimgray / dimgrey — Passes WCAG AA (5.48:1) on white backgrounds.

2. Cool Blue-Grays & Modern Slate UI Tokens

Achromatic grays tinted with 5% to 15% cool blue saturation. Preferred by SaaS design systems (Tailwind Slate, GitHub, Linear) for crisp legibility on LCD and OLED screens.

Gray / Grey Shade HEX Code RGB Value HSL Value CSS Keyword & Design Application
Pale Slate rgb(217, 226, 236) hsl(212, 33%, 89%) Crisp SaaS dashboard borders, subtle code block containers.
Cool Gray rgb(140, 146, 172) hsl(229, 16%, 61%) Muted sidebar navigation icons, secondary chart axes.
Slate Gray / Slate Grey rgb(112, 128, 144) hsl(210, 13%, 50%) Official CSS slategray / slategrey; technical UI subheadings.
Cadet Gray rgb(145, 163, 176) hsl(205, 16%, 63%) Architectural blueprints, calm steel badges.
Steel Gray rgb(113, 121, 126) hsl(203, 5%, 47%) Industrial hardware branding, metallic UI accents.
Dark Slate Gray rgb(47, 79, 79) hsl(180, 25%, 25%) Deep teal-infused dark gray for editorial headers.

3. Warm Greys, Greige, Taupe & Stone Shades

Grays infused with warm yellow, brown, or red undertones. Essential for interior paint palettes, editorial publishing, and cozy minimalist web design.

Gray / Grey Shade HEX Code RGB Value HSL Value CSS Keyword & Design Application
Warm Alabaster Grey rgb(242, 240, 230) hsl(50, 30%, 93%) Eye-friendly editorial reading canvas, glare-free background.
French Grey rgb(190, 189, 184) hsl(50, 5%, 73%) Classic European interior trim, luxury stationery borders.
Greige (Grey + Beige) rgb(182, 175, 169) hsl(28, 8%, 69%) Top interior design neutral blending warm beige with soft grey.
Ash Gray rgb(178, 190, 181) hsl(135, 8%, 72%) Botanical sage-tinted grey for organic wellness brands.
Pebble Stone Grey rgb(158, 158, 147) hsl(60, 5%, 60%) Earthy stone surface token (similar to Tailwind Stone 400).
Taupe Grey rgb(139, 133, 137) hsl(320, 3%, 53%) Sophisticated brown-mauve grey for fashion & portfolio UI.

4. Dark Grey, Charcoal, Gunmetal & Obsidian Shades

High-contrast deep grays that replace harsh #000000 pure black in modern dark mode interfaces, preventing OLED smearing and halation.

Gray / Grey Shade HEX Code RGB Value HSL Value CSS Keyword & Design Application
Davy's Grey rgb(85, 85, 85) hsl(0, 0%, 33%) Classic body copy gray on white backgrounds (7.46:1 AAA contrast).
Charcoal Gray rgb(54, 69, 79) hsl(204, 19%, 26%) Rich blue-black charcoal for primary headings and dark cards.
Outer Space Grey rgb(65, 74, 76) hsl(191, 8%, 28%) Elevated dark mode modal surfaces and code editors.
Jet Gray rgb(52, 52, 52) hsl(0, 0%, 20%) True neutral dark grey for minimalist monochrome typography.
Gunmetal Gray rgb(42, 52, 57) hsl(200, 15%, 20%) Precision dark UI toolbars, automotive & pro audio interfaces.
Obsidian Slate 900 rgb(15, 23, 42) hsl(222, 47%, 11%) Modern dark mode root canvas standard.

5. Tailwind CSS 5 Grayscale Families Compared (500 Midtones)

Tailwind CSS ships with five distinct grayscale families so designers can match the exact color temperature of their brand primary.

Gray / Grey Shade HEX Code RGB Value HSL Value CSS Keyword & Design Application
Tailwind Slate 500 (Blue Undertone) rgb(100, 116, 139) hsl(215, 16%, 47%) Best paired with Blue, Indigo, Sky, and Cyan brand primaries.
Tailwind Gray 500 (Cool Indigo Tint) rgb(107, 114, 128) hsl(220, 9%, 46%) Default UI gray for crisp enterprise & developer dashboards.
Tailwind Zinc 500 (Subtle Metallic) rgb(113, 113, 122) hsl(240, 4%, 46%) Default shadcn/ui neutral; clean modern industrial feel.
Tailwind Neutral 500 (Pure Achromatic) rgb(115, 115, 115) hsl(0, 0%, 45%) Zero hue bias (0% saturation); pure photographic grayscale.
Tailwind Stone 500 (Warm Brown Tint) rgb(120, 113, 108) hsl(25, 5%, 45%) Best paired with Amber, Orange, Terracotta, and Warm Coffee.
Tailwind Taupe / Warm 700 rgb(68, 64, 60) hsl(30, 6%, 25%) High-contrast warm dark typography token (Stone 700).

How to Create a Smooth Brown-Grey Gradient in CSS

A brown-grey gradient (also known as a warm taupe or espresso-stone gradient) is a favorite background treatment for luxury architecture portfolios, coffee brands, and minimalist web headers. Using modern perceptual in oklch interpolation prevents the midpoint from turning flat:


/* Warm Brown-Grey (Greige / Espresso Stone) CSS Gradient */
.brown-grey-gradient {
  background: linear-gradient(135deg, #3E322C 0%, #6E6259 50%, #B6AFA9 100%);
  background: linear-gradient(135deg in oklch, #3E322C 0%, #6E6259 50%, #B6AFA9 100%);
}

Customize your own multi-stop neutral gradients in Pikka's CSS & OKLCH Gradient Generator.

4 Curated Grayscale, Slate & Warm Greige UI Palettes

Click any swatch to copy its hex value or open the full scheme in the Color Palette Builder:

1. Warm Brown-Grey Gradient & Greige Luxury

Open in Palette Builder →

Smooth transition from deep espresso-brown through warm taupe and greige to soft alabaster stone.

Espresso Umber
#3E322C
Mocha Slate
#6E6259
Warm Taupe
#9E948C
Soft Greige
#CBC5BE
Alabaster Stone
#F4F1EA

2. Crisp SaaS Cool Slate & Cobalt UI

Open in Palette Builder →

High-precision blue-grey progression engineered for developer dashboards, tables, and dark mode surfaces.

Obsidian 900
#0F172A
Slate 700
#334155
Slate 500
#64748B
Pale Slate
#D9E2EC
Electric Blue
#3B82F6

3. Architectural Charcoal, Sage & Concrete

Open in Palette Builder →

Balances industrial charcoal and gunmetal gray with organic ash-sage green and warm gallery white.

Gunmetal
#2A3439
Charcoal
#36454F
Sage Green
#9CAF88
Ash Gray
#B2BEB5
Gallery White
#F8F9FA

4. Pure Monochrome Editorial Grayscale

Open in Palette Builder →

Zero-saturation achromatic steps modeled after classic silver-gelatin photography and e-ink interfaces.

Carbon 900
#171717
Graphite 700
#404040
Neutral 500
#737373
Silver 300
#D4D4D4
Paper 50
#FAFAFA

Explore Related Grayscale Swatches & Studio Tools