Skip to content
Color Codes

Color code and palette

Shades of Gray

Gray provides the structural neutrals behind most interface systems. Cool and warm values can establish hierarchy, separate surfaces and let chromatic accent colors carry meaning.

Gray
#6B7280

Color formats

The same base color in common web formats.

Download SVG swatch

Shades

Gray — Shades
ColorNameHEXCopy
White Smoke#F9FAFB
Ghost White#F3F4F6
Gainsboro#E5E7EB
Light Gray#D1D5DB
Silver#9CA3AF
Gray#6B7280
Dim Gray#4B5563
Dark Gray#374151
Charcoal#1F2937
Almost Black#111827
Slate Light#F8FAFC
Slate Pale#F1F5F9
Slate#E2E8F0
Cool Gray#CBD5E1
Steel#94A3B8
Slate Gray#64748B
Storm#475569
Gunmetal#334155
Dark Slate#1E293B
Midnight#0F172A

CSS keyword: gray

In CSS you can write it as the keyword gray.

Text contrast

These ratios use the WCAG relative luminance formula.

Aa White text 4.83:1 AA
Aa Black text 4.34:1 AA · Large text
Check in the contrast tool

Ways to use Gray

Interface backgrounds and borders

Typography hierarchy

Professional monochrome layouts

Colors that go with Gray

Color-wheel harmonies built from #6B7280. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Colors similar to Gray

Palettes with similar colors

Related colors