Hex to RGB Color Converter
Free hex to RGB color converter. Convert between #RRGGBB hex codes and RGB values with a live color swatch. No signup.
What is a hex to RGB converter?
A hex to RGB converter translates colour codes between hex format (#FF8800) and the red, green, blue values (rgb(255, 136, 0)) used in CSS and design tools. Both represent the same colour — one in base 16, one in decimal.
How this converter works
- In hex mode, paste a colour like #FF8800 and it decodes the three pairs into RGB values.
- In RGB mode, enter r, g, and b values and it builds the hex code.
- A live swatch shows the colour as you convert.
- Short 3-digit hex (#F80) is expanded automatically.
How to use the result
- Use the hex form for HTML and CSS; use RGB for image editors and canvas APIs.
- Match a brand colour by pasting its hex and reading the RGB equivalent.
- Adjust brightness by tweaking the RGB channels and watching the swatch.
- If values land outside 0–255, the converter clamps them — fix the source if the colour looks off.
How do you convert hex to RGB?
Split the six hex digits into three pairs — one per channel — and convert each pair from base 16 to decimal. #FF8800 becomes FF (255), 88 (136), and 00 (0), so rgb(255, 136, 0). It’s the same number base conversion the base converter performs, applied to colours.
Common mistakes
- Forgetting the # sign or including it inconsistently. The converter accepts either, but copy the code cleanly.
- Reading hex digits as decimal. A = 10 through F = 15 in each digit position.
- Assuming 8-digit hex (with alpha) is handled. This tool covers standard 6-digit colours — the leading alpha pair is ignored.
Colour codes are just numbers — the number base converter explains the hex math behind them, and the scientific notation converter handles the different notation scales you meet in design specs.