HueWiz / Colors / Gray
#808080

Gray

Gray is a mid-toned neutral — a gray that works as a supporting color rather than a statement. Also written as grey in CSS — both spellings resolve to #808080.

Build palettes with Gray →

Using Gray in your designs

Gray sits at 50% lightness with almost no saturation, which makes it a true workhorse neutral. In practice it behaves best as a border, divider or secondary-text color: it stays out of the way, lets accent colors do the talking, and pairs safely with nearly any hue on the wheel.

Gray is bright enough that it pairs better with dark text than white: black type on gray hits 5.32:1 — past the WCAG AA threshold — while white manages only 3.95:1. It shines as a section background, card fill or subtle highlight where a full-strength accent would shout.

Gray color palettes

Every palette below is computed from gray's position on the color wheel (hue 0°). Hover any swatch to see its code; click to copy.

Complementary

Analogous

Triadic

Split-complementary

Tetradic

Monochromatic

Tints and shades of Gray

Tints mix gray toward white; shades mix it toward black. Use the scale for hover states, borders and depth without leaving the hue.

Shades → base → tints

Contrast & accessibility

WCAG 2.1 requires 4.5:1 for normal text (AA) and 3:1 for large text. Here's how gray performs, plus how it appears under the three main types of dichromatic color blindness (simulated approximation).

PairingRatioNormal textLarge text
White text on Gray3.95:1FailAA
Black text on Gray5.32:1AAAAA
Protanopia#808080
Deuteranopia#808080
Tritanopia#808080

Gray in code

Copy-ready snippets. In CSS you can also use the keyword gray directly.

:root {
  --gray: #808080;
  --gray-rgb: 128, 128, 128;
  --gray-tint: #B9B9B9;
  --gray-shade: #464646;
}

.btn-gray {
  background: var(--gray);
  color: #000000;
}
// tailwind.config.js
colors: {
  'gray': {
    DEFAULT: '#808080',
    light: '#B9B9B9',
    dark: '#464646',
  },
}

Colors similar to Gray

The closest CSS named colors by perceptual (Lab) distance.

← PreviousgoldenrodNext →green
Copied