Color Converter

Design work constantly moves between colour notations: HEX in CSS, RGB in design tools, HSL when you need to reason about lightness and saturation. Converting by hand invites mistakes.

Enter a colour in any notation and the other formats update immediately. A range of shades is generated as well, which is handy for building hover and border colours.

Preview

RGB channels

Shades

Runs locally in your browser โ€” nothing is uploaded.

How to use the Color Converter

  1. Type a HEX value or adjust the red, green and blue sliders.
  2. Read the matching RGB and HSL values below the preview.
  3. Use the shade grid to pick a lighter or darker variant.

Frequently asked questions

What is the difference between HEX and RGB?

They describe the same colour in different bases. HEX is base-16, so #ff0000 is red; RGB states the three channel values as decimal numbers, 255, 0, 0.

What does HSL measure?

HSL stands for hue, saturation and lightness. Hue is the colour angle from 0 to 360, saturation controls how grey the colour is, and lightness moves it from black to white.

Why do some HEX values have four or eight digits?

The extra digits encode opacity. Six digits are opaque; eight digits include an alpha channel, for example #ff000080 for half-transparent red.