Gray Color Code: HEX, RGB, HSL, CMYK

Gray is the CSS colour #808080. See its RGB, HSL, HSV and CMYK values and convert any other colour.

πŸ”’ Runs in your browser⚑ Instant resultsπŸ†“ Free, no sign-up

How to use Gray Color Code: HEX, RGB, HSL, CMYK

  1. Pick a colour with the colour box, or type a code such as #4f46e5, rgb(79, 70, 229) or a name like tomato.
  2. The results update instantly.
  3. Click Copy or any colour swatch to copy its code.

What is it good for?

Gray is the CSS colour #808080. See its RGB, HSL, HSV and CMYK values and convert any other colour.

Designers and developers move between colour formats constantly, and getting a conversion even slightly wrong can make a brand colour look off. People most often reach for it when converting design-tool values into CSS, checking that text is readable on a background and matching a colour you spotted to a code you can use.

See it in action

For example, the colour gray comes out like this:

ResultHEX: #808080 RGB: rgb(128, 128, 128) HSL: hsl(0, 0%, 50%) HSV: hsv(0, 0%, 50%) CMYK: cmyk(0%, 0%, 0%, 50%) Nearest name: gray
Good to know. The CSS name "gray" equals #808080, which is rgb(128, 128, 128). Use whichever form your tool accepts.

Gray in every format

Gray is one of the 140 named colours in CSS, so you can write color: gray; in a stylesheet instead of a code. Its HEX value is #808080, in RGB it is rgb(128, 128, 128), in HSL hsl(0, 0%, 50%), in HSV hsv(0, 0%, 50%) and in CMYK cmyk(0%, 0%, 0%, 50%).

Print colours rarely match screen colours exactly. The CMYK numbers here are a simple mathematical conversion, so use a proof from your printer for brand work.

Using it day to day

Use the copy and download buttons where they appear. They save you from selecting text by hand, which is easy to get wrong on a phone.

Everything runs in your browser, so the tool keeps working even on a slow connection once the page has loaded.

Privacy

Colours are calculated in your browser. Nothing leaves your device.

Frequently asked questions

Is Gray Color Code: HEX, RGB, HSL, CMYK free to use?

Yes, completely free. There is no sign-up, no watermark and no limit on how many times you use it.

Is my data safe when I use Gray Color Code: HEX, RGB, HSL, CMYK?

Colours are calculated in your browser. Nothing is uploaded.

Does Gray Color Code: HEX, RGB, HSL, CMYK work on my phone?

Yes. The layout adapts to small screens, and the tool works in current versions of Chrome, Edge, Firefox and Safari.

Any tips for using Gray Color Code: HEX, RGB, HSL, CMYK?

The CSS name "gray" equals #808080, which is rgb(128, 128, 128). Use whichever form your tool accepts.