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
#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
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.
On white3.95:1
Large text onlyOn black5.32:1
Passes AA for body textCheck a specific pairing in the contrast checker.
4 questions people ask about 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%).
Gray is 128 red, 128 green, and 128 blue, written as rgb(128, 128, 128).
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.
Yes. You can write color: gray directly in CSS, which every browser resolves to #808080.