hexcolors

Tools / HEX to RGB converter

HEX to RGB converter

Paste a HEX value and get the RGB result right away, plus every other format.

How HEX converts to RGB

Split the hex code into three pairs of digits (red, green and blue). Convert each pair from base 16 to a number from 0 to 255. For #1E90FF, 1E is 30, 90 is 144 and FF is 255, so the RGB value is rgb(30, 144, 255).

Common colors in HEX and RGB

ColorHEXRGB
red#FF0000rgb(255, 0, 0)
orange#FFA500rgb(255, 165, 0)
gold#FFD700rgb(255, 215, 0)
lime#00FF00rgb(0, 255, 0)
teal#008080rgb(0, 128, 128)
navy#000080rgb(0, 0, 128)
indigo#4B0082rgb(75, 0, 130)
purple#800080rgb(128, 0, 128)
hotpink#FF69B4rgb(255, 105, 180)
coral#FF7F50rgb(255, 127, 80)
chocolate#D2691Ergb(210, 105, 30)
gray#808080rgb(128, 128, 128)
silver#C0C0C0rgb(192, 192, 192)
black#000000rgb(0, 0, 0)

How to use it

Three quick steps.

  1. Type or paste a HEX value (the # is optional).
  2. Read the RGB result instantly.
  3. Click any value to copy it.

Good to know

Get better results.

  • You can also paste a hex code, rgb(), hsl() or a color name. The tool understands them all.
  • Every other format is shown too, so one lookup covers all your needs.
  • Values are rounded to whole numbers where it makes sense.

Common questions

How do I convert HEX to RGB?

Split the hex code into three pairs of digits (red, green and blue). Convert each pair from base 16 to a number from 0 to 255. For #1E90FF, 1E is 30, 90 is 144 and FF is 255, so the RGB value is rgb(30, 144, 255).

Is this HEX to RGB converter free?

Yes. It is free, private and runs in your browser, so your colors are never uploaded.

Can I convert from other formats too?

Yes. Enter a hex code, rgb(), hsl() or a CSS color name and you still get every format.

More tools

Keep going with a related tool.