HEX to RGB converter
Type a HEX code and see RGB, HSL and CMYK at once – or the other way round.
Drop a photo here or paste it from the clipboard
The photo stays in your browser and is not uploaded anywhere.
CMYK is an approximation without a colour profile – for print, the printer's profile is what counts.
Harmony
Leave it empty and the set gets the suggested name. Without signing in it stays in this browser – with an account it is on all your devices.
My colour sets
What do you need the colours for?
You pick and check colours in your browser. Only saved colour sets go to your account, when you are signed in.
How to do it
-
Enter the code
Type the HEX code with or without #, three or six digits.
-
Read the values
RGB, HSL and CMYK are shown below. "Values" shows and hides them.
-
The other way
Type RGB numbers into the RGB field and press Enter – the HEX field shows the code.
What this is for
Type the HEX code into the field above, and "Values" shows RGB, HSL and CMYK straight away. The other direction works the same: three RGB numbers into the RGB field, and the HEX field shows the code.
A HEX code is just three numbers in base 16. #135A60 splits into 13, 5A and 60 – for red, green and blue. 13 is 1 × 16 + 3 = 19, 5A is 5 × 16 + 10 = 90, 60 is 96. So rgb(19, 90, 96). Each pair runs from 00 to FF, which is 0 to 255. The short form #ABC doubles every digit and means #AABBCC.
The colour itself stays the same; only the notation changes. CSS understands all three: #135A60, rgb(19 90 96) and hsl(185 67% 23%). Along the way, the tool builds a set of five matching colours from yours.
Common questions
Split the code into three pairs and convert each: first digit times 16 plus the second. A to F stand for 10 to 15. #FF8000 gives 255, 128 and 0.
It is the short form: every digit is doubled. #F80 is the same as #FF8800.
Yes. Both describe the same three values for red, green and blue, once in base 16 and once in base 10. Nothing is lost in the conversion.
Missing a tool? Tell us which one.