Developer Utilities · free · no sign-up
Color Code Converter
Convert colours between HEX, RGB and other formats.
Color Code Converter
Instantly convert HEX to RGB, HSL and view color previews.
About the Color Code Converter
Convert colours between HEX, RGB and other formats.
How to use the Color Code Converter
- Enter a colour such as #ff0000 or rgb(255,0,0), or click Sample.
- Press Process Now.
- Copy the format you need.
Formula and method
HEX uses two digits each for red, green and blue: #RRGGBB. Each pair is a value from 0 to 255.
Worked example
#ff0000 equals rgb(255, 0, 0), which is pure red.
Tips
- Use web-safe colours with good contrast for text.
Frequently asked questions
What is the HEX code for white?
#ffffff, which is rgb(255, 255, 255).