HEX to RGB

Convert HEX color codes to RGB values.

Convert a HEX colour code to RGB: #FF5733 becomes rgb(255, 87, 51). Paste 3, 4, 6 or 8-digit codes, with or without the #, or several codes one per line, and each is shown with a swatch. Short codes are expanded (#F53 is #FF5533), and 8-digit codes include transparency as rgba. The table below gives the same colour as HSL, HSV, CMYK and the nearest CSS colour name.

RGB

rgb(255, 87, 51)

HEX#FF5733
RGBrgb(255, 87, 51)
HSLhsl(11, 100%, 60%)
HSV / HSBhsv(11, 80%, 100%)
CMYKcmyk(0%, 66%, 80%, 0%)
CSS nametomato (closest)

Common use cases

  • Get RGB values for a design tool, game engine or Android app
  • Convert a brand's HEX colours for a presentation or document
  • Check what colour a code in a stylesheet actually is
  • Convert a whole palette at once, one code per line

How to use

  1. Paste a HEX code, or several on separate lines.
  2. Read the RGB value beside each swatch.
  3. Copy the value, or use the HSL, CMYK and other formats in the table.

FAQ

What do the six digits mean?

They're three pairs: red, green and blue, each from 00 (none) to FF (full, 255).

What is a 3-digit HEX code?

A shorthand where each digit is doubled: #0AF means #00AAFF.

Can I pick a colour instead of typing one?

Yes. Use the color picker to choose from a palette or an image and copy its code in any format.