How to Use the Hex to RGB Converter: Steps and a Worked Example
Convert a hex colour code to RGB values (also shown as HSL). This guide shows what to enter, a worked example, and the limits to keep in mind. The Hex to RGB Converter tool is free, needs no account and runs in your browser.
What you need
- Hex colour, for example #3B82F6
Step by step
- Open the Hex to RGB Converter tool.
- Fill in Hex colour.
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- Hex colour: #3B82F6
the tool returns:
rgb(59, 130, 246)
RGB values: 59, 130, 246
hsl(217, 91%, 60%)
How it works
Split the hex code into red, green and blue pairs. Paste a hex colour code such as #3B82F6. You get the rgb() value, the plain channel numbers and the HSL equivalent.
Things to keep in mind
Runs entirely in your browser. Nothing you enter is uploaded.
Related tools
If this is not quite what you need, try RGB to Hex Converter, Hex to HSL Converter or RGB to HSL Converter.