Color Converter
How to Convert HEX to RGB
A hex color like #6D4DF0 is just three pairs of hex digits for red, green and blue. Converting to RGB means turning each pair into a number from 0–255. The tool below does it instantly.
Convert HEX to RGB
HEX
#2563eb
RGB
rgb(37, 99, 235)
HSL
hsl(221, 83%, 53%)
The method
- Split the six digits into three pairs: RR, GG, BB.
- Convert each pair from hexadecimal to decimal (00–FF becomes 0–255).
- Combine them as rgb(R, G, B).
Worked example: #6D4DF0
6D = 109, 4D = 77, F0 = 240. So #6D4DF0 is rgb(109, 77, 240).
Short three-digit hex like #F0A is shorthand for #FF00AA, where each digit is doubled.
Frequently asked questions
How do I convert a hex color to RGB?
Split the hex into three pairs and convert each from hexadecimal to a 0–255 number. #6D4DF0 becomes rgb(109, 77, 240).
What does each part of a hex code mean?
The first pair is red, the second green, the third blue — each from 00 (none) to FF (full).
Can the tool also give me HSL?
Yes — the converter above shows HEX, RGB and HSL together.
Explore
113 tools. Zero uploads. One place.
Every tool opens instantly, works on your phone and keeps your files on your device.