ToolFactory

HEX to RGB Converter

HEX to RGB Converter: free, instant and private. FF is 255 and 00 is 0, so #000000 is black and #FFFFFF is white.

How the HEX to RGB Converter works

The HEX to RGB Converter takes HEX color (e.g. #3b82f6), R (0–255), G (0–255), B (0–255) and returns the answer instantly — no button to hunt for, no page reload. FF is 255 and 00 is 0, so #000000 is black and #FFFFFF is white. Enter a full six-digit hex code — the three-digit shorthand is expanded before converting.

Enter your own numbers to replace the example values; the result panel updates as you type. Everything runs in this single page, so nothing you enter leaves your device.

Formula used

HEX uses base-16 pairs; each channel is 0–255

SymbolMeaning
hexsix hex digits, e.g. #3b82f6
r, g, bred, green and blue channel values

FF is 255 and 00 is 0, so #000000 is black and #FFFFFF is white. Enter a full six-digit hex code — the three-digit shorthand is expanded before converting.

Inputs used: HEX color (e.g. #3b82f6), R (0–255), G (0–255), B (0–255).

Worked example

Take the default example — hex color (e.g. #3b82f6) of #3b82f6, b (0–255) of 150:

Frequently asked questions

What formula does the HEX to RGB Converter use?
It uses HEX uses base-16 pairs; each channel is 0–255, where hex is the six hex digits, e.g. #3b82f6; r, g, b is the red, green and blue channel values.
Is the HEX to RGB Converter free?
Yes. There is no signup, no usage limit and no watermark — the converter runs entirely in your browser.
How do I read the result?
FF is 255 and 00 is 0, so #000000 is black and #FFFFFF is white. Enter a full six-digit hex code — the three-digit shorthand is expanded before converting.
Does the HEX to RGB Converter store or send my data?
No. Every calculation happens locally in the page, so the numbers you type are never uploaded or logged.
Does it work on a phone and offline?
Yes — the page is a single lightweight file that adapts to any screen size. Once it has loaded it keeps working without a network connection.