HEX to RGB
What does HEX to RGB do?
HEX to RGB converts a hexadecimal colour code such as #1E90FF into its red, green and blue values (0-255), and shows a preview of the colour and the ready-to-use CSS value.
How to use HEX to RGB
- Enter or paste a HEX colour code.
- Press Convert.
- Read the R, G and B values and copy the CSS colour.
When is it useful?
- Use a colour from a design file in CSS rgb() or rgba()
- Find the RGB values for software that does not accept HEX
- Check what a HEX code looks like
Example
#1E90FF = R 30, G 144, B 255.
Good to know
- 3-digit codes such as #FFF are shorthand for #FFFFFF.
Frequently asked questions
Is HEX to RGB free?
Yes. You can use it as often as you like without creating an account.
Does it work on my phone?
Yes. It runs in any modern browser on a phone, tablet or computer - there is nothing to install.