About Color Code Converter

Color Code Converter takes a colour in any one of HEX, RGB, or HSL and shows the other two, updating as you type. An alpha value is kept and shown as an 8-digit hex and as rgba() or hsla().

The conversion runs in JavaScript in the open tab. Nothing you enter is uploaded.

How to use it

  1. Type a colour, or use the swatch picker.
  2. Read the HEX, RGB, and HSL forms below.
  3. Press Copy on the one you need.

Common questions

Which formats does it read?

3, 4, 6, and 8 digit hex; rgb() and rgba() with numbers or percentages; hsl() and hsla().

Are CSS colour names supported?

No. Enter a colour as hex, rgb(), or hsl().

How is alpha shown?

An alpha below 1 appears as an 8-digit hex and in the rgba() and hsla() strings.

Is anything sent to a server?

No. It is a local calculation in your browser.