Skip to content
Tool Dock

RGB to HEX

Turn rgb() values into a hex colour code.

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

Can I type just the numbers?

Yes. rgb(255 87 51), rgb(255, 87, 51) and percentages such as rgb(100% 34% 20%) all work.

Why is my hex code lowercase?

Hex is case-insensitive; browsers treat #FF5733 and #ff5733 the same. Copy and change the case if your style guide prefers upper case.

All tools