HEX to RGB Converter
Quickly translate colors between HEX and RGB formats.
The RGB values update as you type.
HEX to RGB and RGB to HEX
Type a HEX code to get RGB, or RGB values to get HEX.
Live colour preview
A colour swatch shows the colour as you type.
Checks every value
Invalid codes are flagged straight away, with a short hint.
HEX to RGB FAQ
What is the difference between HEX and RGB?
HEX is a hexadecimal representation of color, compact and common in web development. RGB uses three separate channels (Red, Green, Blue) each with 256 levels of intensity, offering a more logical model for programatic color manipulation.
Does it accept 3-digit HEX codes?
Yes. A 3-digit code such as #fff is the short form of #ffffff, and both work.
How to use the HEX to RGB
- Type a HEX code, or the red, green and blue values.
- See the other format and the preview update.
- Copy the value.
Questions and answers
Is it free?
Yes. The tool is free to use and needs no account or sign-up.
Does it accept short HEX codes like #fff?
Yes. Three-digit codes are expanded, so #fff becomes rgb(255, 255, 255).
More free tools
Gradient Generator
Design a CSS gradient and copy the code.
Open toolLive Code Tester
Write HTML, CSS and JavaScript and see the result live in a safe sandbox.
Open toolAge Calculator
Find your exact age in years, months and days.
Open toolDays Between Dates
Count the days and weeks between two dates.
Open toolNeed a custom tool or app for your business? See our web and software development and AI automation services.