Gray

#808080

Gray is a gray tone at #808080. It sits at 0 degrees on the color wheel with 0% saturation and 50% lightness.

Color values

Where it sits

Tints and shades

9 steps, white to black
Tint 80%#E6E6E6
Tint 60%#CCCCCC
Tint 40%#B3B3B3
Tint 20%#999999
BaseBase#808080
Shade 20%#666666
Shade 40%#4D4D4D
Shade 60%#333333
Shade 80%#1A1A1A

Tints mix Gray with white, shades mix it with black. Use the light end for backgrounds and the dark end for text that has to stay readable.

Accessibility

WCAG contrast
Sample textThe quick brown fox jumps over the lazy dog.

On white3.95:1

Large text only
Sample textThe quick brown fox jumps over the lazy dog.

On black5.32:1

Passes AA for body text

Check a specific pairing in the contrast checker.

Other gray colors

5 colors, dark to light

Frequently asked

4 questions people ask about Gray.

  1. 1What is the hex code for Gray?

    The hex code for Gray is #808080. In RGB that is rgb(128, 128, 128), and in HSL it is hsl(0, 0%, 50%).

  2. 2What RGB values make Gray?

    Gray is 128 red, 128 green, and 128 blue, written as rgb(128, 128, 128).

  3. 3Is Gray readable as text on a white background?

    Gray scores 3.95:1 against white. WCAG AA needs 4.5:1 for body text, so it fails and should be used for fills or borders rather than type.

  4. 4Is Gray a valid CSS color name?

    Yes. You can write color: gray directly in CSS, which every browser resolves to #808080.