Gray#808080

Gray Hex Code: #808080

Gray is a medium, neutral gray. Its OKLCH lightness is 60% and chroma 0.000. Text on this color reads best in black (contrast 5.32:1).

HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
HSV / HSBhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
OKLCHoklch(60% 0 0)

Open in converter →

Contrast

White text3.95:1
AAAA largeAAA
Black text5.32:1
AAAA largeAAA
On white3.95:1
AAAA largeAAA
On black5.32:1
AAAA largeAAA

Tints

Shades

Matching colors

Similar named colors

All color names →

Code

CSScolor: #808080;
Tailwindbg-[#808080]
SwiftUIColor(red: 0.502, green: 0.502, blue: 0.502)
AndroidColor.parseColor("#808080")
FlutterColor(0xFF808080)

Gray is a CSS named color (gray); the value follows W3C CSS Color Module Level 4.

Frequently asked questions

What is the hex code for gray?

Gray is #808080 in hex and rgb(128, 128, 128) in RGB.

What is gray in CMYK?

With the plain conversion formula it is cmyk(0, 0, 0, 50). For print, convert with your printer's ICC profile instead.

What text color works on gray?

Black text has the higher contrast at 5.32:1, which passes WCAG AA for normal text (4.5:1).