ColorTool 01
HEX to RGB
Translate a hex code into the numbers a canvas, a design tool or a CSS function expects, with the colour shown beside the values.
Convert colour
26 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.
How to use it
Enter a hex code with the leading # sign. Shorthand like #0bf is accepted.
Read the RGB and HSL equivalents, plus hue, saturation and lightness values.
Copy the formatted block and paste it into your stylesheet or design notes.
When to use it
CSS work
Move between hex tokens and rgb() functions without a mental conversion.
Design handoff
Give a developer the RGB values behind a brand swatch.
Palette edits
Adjust lightness in HSL after reading the starting values.
Questions
What is the difference between HEX and RGB?
They describe the same sRGB colour. HEX is base-16 shorthand; RGB lists the three channel values from 0 to 255.
Does it support transparency?
Yes, 8-digit hex with an alpha channel is parsed. The RGB output shows the colour without alpha.
Are colours colour-managed?
No. Values are treated as sRGB, which is the safe default for the web.
What is #ffffff in RGB?
White is rgb(255, 255, 255). Each pair of hex digits is one channel from 00 to ff, which maps to 0–255, so #ffffff is the maximum of all three and #000000 is black.
Does it accept shorthand codes like #0bf?
Yes. Shorthand expands by doubling each digit, so #0bf becomes #00bbff before conversion. Both forms produce the same RGB and HSL numbers in the result panel.