Colors

#808080

Gray

Gray is #808080. In CSS you can write it as the keyword gray. The values below are the same sRGB color in HEX, RGB, HSL, HSV, a simple CMYK conversion, and OKLCH. CMYK here is a channel formula for reference, not a press proof.

Also named Grey.

Conversions

HEX
#808080
RGB
rgb(128, 128, 128)
HSL
hsl(0,0%,50%)
HSV
hsv(0, 0%, 50%)
CMYK
cmyk(0,0,0,50)
OKLCH
oklch(60.0% 0.000 0.0)

Tints and shades

Tints mix this color toward white. Shades mix it toward black in sRGB. For a 50–950 ramp, open the tint and shade generator.

Tints

#999999

20% white

#B3B3B3

40% white

#CCCCCC

60% white

#E6E6E6

80% white

Shades

#666666

20% black

#4D4D4D

40% black

#333333

60% black

#1A1A1A

80% black

Harmony palettes

These schemes rotate hue from Gray. Read the relationships in color theory 101 or adjust them on the color wheel.

#808080

#808080

#A6A6A6

#A6A6A6

#595959

#808080

#808080

#808080

#808080

#808080

#808080

#808080

#808080

#A6A6A6

#666666

Split Complementary

Open in palette generator

#808080

#808080

#808080

#B3B3B3

#595959

#333333

#595959

#808080

#A6A6A6

#CCCCCC

#808080

#808080

#808080

#808080

#9E9E9E

Contrast against white and black

Ratios use the WCAG relative-luminance formula. AA normal text needs 4.5:1 and large text needs 3:1 under Success Criterion 1.4.3. AAA uses 7:1 and 4.5:1. A pass here is only this pair, not a full page audit. Check other pairings in the contrast checker.

On white · 3.95:1
AA normal text Fail
AA large text Pass
AAA normal text Fail
AAA large text Fail
On black · 5.32:1
AA normal text Pass
AA large text Pass
AAA normal text Fail
AAA large text Pass

Similar named colors

Nearest CSS named colors by RGB distance. Distance is not a perceptual match.

Use this color