Skip to content

Developer Utilities · free · no sign-up

Color Code Converter

Convert colours between HEX, RGB and other formats.

How it works Report a problem

Color Code Converter

Instantly convert HEX to RGB, HSL and view color previews.

Input Data

About the Color Code Converter

Convert colours between HEX, RGB and other formats.

How to use the Color Code Converter

  1. Enter a colour such as #ff0000 or rgb(255,0,0), or click Sample.
  2. Press Process Now.
  3. 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).