Skip to content
  • No data uploaded
  • Instant results

Gray — #808080

Gray is the CSS named colour gray, hex #808080. It has a contrast ratio of 3.95:1 on white and 5.32:1 on black — best used as text on dark backgrounds.

Gray — #808080

Contrast on white 3.95:1 · on black 5.32:1

Tints
Shades
Complementary
Triadic
Analogous

Free Gray — #808080 by pGento

Using Gray in code

CSS: color: gray; or color: #808080; · Tailwind: text-[#808080] · Android/Flutter: 0xFF808080

Gray colour harmonies

Complementary: #808080 · Triadic: #808080, #808080 · Analogous: #808080, #808080. Use tints for backgrounds and shades for hover states.

Gray in every colour format

FormatValue
HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
HSVhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
CSS namegray
Contrast on white3.95:1
Contrast on black5.32:1

Frequently asked questions

What is the hex code for Gray?
#808080 (CSS name: gray).
What is Gray in RGB?
rgb(128, 128, 128)
What colour goes well with Gray?
Its complementary colour #808080, or the analogous #808080 and #808080.
Gray — #808080

Embed this tool on your site

Paste this code into any web page. It stays free, fast and ad-free inside your site.

Print or save as PDF

Prints just this tool and its result. Choose “Save as PDF” as the printer to get a file. Branding is stored only in this browser.