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
- Type or paste a HEX color code into the HEX field (with or without the # symbol).
- RGB and HSL values update instantly as you type.
- Click the copy button next to any format to copy it to your clipboard.
- 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
RGB to HEX Converter
Convert RGB color values to HEX codes instantly. Free RGB to HEX converter with live preview and one-click copy for CSS and web development.
Aspect Ratio Calculator
Calculate aspect ratios, find a missing width or height, and resize images or video while keeping the same proportions. Free and instant.
Base64 Decoder
Decode Base64 strings to plain text instantly in your browser. Supports full Unicode output including emojis. Free online Base64 decoder.