AfoliOpen Afoli →

Gray color #808080

Gray is one of the CSS named colors (keyword gray) with the hex code #808080 — RGB 128, 128, 128, HSL 0°, 0%, 50%.

Open in Afoli Colour tools →

#808080Gray

Color codes

HEX
#808080
RGB
rgb(128, 128, 128)
HSL
hsl(0, 0%, 50%)
CMYK
0%, 0%, 0%, 50%
OKLCH
oklch(60% 0 0)
CSS keyword
gray

Tints and shades

#F5F5F5#DADADA#BFBFBF#A6A6A6#8D8D8D#747474#5D5D5D#464646#313131#1D1D1D#0B0B0B

Color harmonies

Complementary
#808080#808080
Analogous
#808080#808080#808080
Triadic
#808080#808080#808080
Split complementary
#808080#808080#808080
Tetradic
#808080#808080#808080#808080

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Gray text on white3.95 : 167AA for large text only
Gray text on black5.32 : 1-35AA — body text
White text on Gray3.95 : 1-72AA for large text only
Black text on Gray5.32 : 137AA — body text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Gray?

Gray has the hex code #808080, which is RGB 128, 128, 128 and HSL 0°, 0%, 50%.

Which text color reads best on Gray?

Black text: contrast 5.32 : 1 (white text: 3.95 : 1).

Which colors go well with Gray?

Its complementary color is #808080; analogous colors are #808080 and #808080; a triadic set adds #808080 and #808080.

Similar colors

Sources and licences

Updated November 21, 2026