#808080

#808080 is the hex color Gray. Here are its RGB, HSL, HSV, CMYK, and OKLCH values, ready-made shades and palettes, and the text colors that stay readable on it.

This is the nearest named color to #808080; the exact match is Gray.

Open #808080 in the picker

#808080 color codes

HEX
#808080
HEX8
#808080FF
HEX8 (Android)
#FF808080
RGB
rgb(128, 128, 128)
RGB (%)
50%, 50%, 50%
HSL
hsl(0, 0%, 50%)
HSV / HSB
hsv(0, 0%, 50%)
CMYK
cmyk(0%, 0%, 0%, 50%)
OKLCH
oklch(0.5999 0 0)
OKLCH (%)
oklch(59.99% 0 0)
Decimal
8421504

What color is #808080?

#808080 sits at 60% lightness and 0 chroma in OKLCH, hue 0°. Its nearest named color is Gray (an exact match).

Shades and tints of #808080

Tints

Shades

Tones

#808080 color harmonies

Complementary

Analogous

Triadic

Split-complementary

Tetradic

Square

Monochromatic

Using #808080 in CSS

.text       { color: #808080; }
.background { background-color: #808080; }
.border     { border: 2px solid #808080; }

/* Modern, perceptually uniform */
.text { color: oklch(0.5999 0 0); }

/* #808080 at 50% transparency */
.overlay { background-color: #80808080; }

Is #808080 accessible?

#808080 on white text scores 3.95:1; on black text it scores 5.32:1. Black text passes WCAG AA for normal text on #808080. Recommended text color on a #808080 background: black.

A 5.32:1 vs black
A 3.95:1 vs white
  • AA normal ≥ 4.5 Pass
  • AA large ≥ 3 Pass
  • AAA normal ≥ 7 Fail
  • AAA large ≥ 4.5 Pass

Recommended text color: black

CSS contrast-color() contrast-color(#808080) → black
APCA Lc experimental 72.4 Lc · large / secondary text (white text)

WCAG 2.1 AA/AAA is the compliance floor; APCA is an optional readability metric.

Related colors

See more in the gray family on the colors hub.

Frequently asked questions

What color is #808080?
#808080 is Gray. In RGB it is rgb(128, 128, 128), and in HSL hsl(0, 0%, 50%).
What is #808080 in RGB?
#808080 converts to rgb(128, 128, 128) — red 128, green 128, blue 128.
What text color is readable on #808080?
Black text — it has the higher contrast ratio (5.32:1) against #808080. Black text passes WCAG AA for normal text on #808080.
Open #808080 in the picker