HEX to RGB Converter

What is HEX to RGB Converter

This tool converts HEX color codes (like #3B82F6) to RGB values (like rgb(59, 130, 246)). HEX is the format used in HTML and CSS, while RGB is common in design tools, JavaScript canvas APIs, and image editors. The converter also shows HSL values so you can work across all three color formats at once.

How to use

  1. Type or paste a HEX color code into the HEX field (with or without the # symbol).
  2. RGB and HSL values update instantly as you type.
  3. Click the copy button next to any format to copy it to your clipboard.
  4. Switch between conversion modes using the links at the top.

When to use it

Got a brand color in HEX (#E63946) from Figma but need it as RGB to add transparency in CSS? Paste the code and you instantly get rgb(230, 57, 70), ready to drop straight into your stylesheet as rgba(230, 57, 70, 0.8).

Frequently asked questions

What is #000000 in RGB?

Black (#000000) is rgb(0, 0, 0). All three channels are zero, meaning no red, green, or blue light.

Can I convert 3-digit HEX codes like #F00?

Yes. The converter accepts both 3-digit (#RGB) and 6-digit (#RRGGBB) formats. #F00 expands to #FF0000 = rgb(255, 0, 0).

What is the difference between HEX and RGB?

They represent the same colors differently. HEX uses a 6-character hexadecimal string (0–9, A–F) while RGB uses three decimal numbers from 0 to 255. #FF0000 and rgb(255, 0, 0) are both pure red.

What is #FFFFFF in RGB?

White (#FFFFFF) is rgb(255, 255, 255). All three channels are at maximum intensity.

Can I share this tool with my inputs pre-filled?

Yes. The URL updates automatically as you type. Copy it from the address bar or use the Share button — anyone who opens the link will see your exact inputs ready to go.

Related tools