HEX to RGB Converter
Reads a HEX code as red, green and blue values.
RGB
—
Share sends a link that reopens these numbers. Copy details pastes the full breakdown as a list.
Red —
Green —
Blue —
Alpha —
Full HEX —
Reading this —
The formula
channel = first digit × 16 + second digit
A to F stand for 10 to 15. In the short form each digit doubles, so #36c is #3366cc.
What to watch out for
For the other direction, use the colour converter.
Frequently Asked Questions
What is #3366cc in RGB?
rgb(51, 102, 204).
What does an eight-digit HEX code mean?
The last pair is alpha, or opacity. #3366cc80 is 50% opaque.