Skip to content
Tool Dock

HEX to RGB

Turn a hex colour code into rgb() values.

0 characters

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste a colour in any form: #1e90ff, rgb(30, 144, 255), hsl(210, 100%, 56%) or a name like dodgerblue.
  2. Run it to see the same colour in HEX, RGB, HSL, HSB and CMYK.
  3. Copy the format you need and check the contrast ratios before using it for text.

Why Tool Dock

  • FastEverything runs on your own device, so there is no queue and no waiting for uploads.
  • PrivateYour files and text never leave the browser. Close the tab and they are gone.
  • Batch friendlyDrop several files at once and download each result, or all of them together.

Questions

How is hex converted to RGB?

Each pair of hex digits is one channel: ff → 255 red, 57 → 87 green, 33 → 51 blue. Three-digit codes double each digit first.

What about 8-digit hex?

The last two digits are alpha (transparency). The result is shown as rgba() with the alpha as a decimal.

All tools