Skip to content

HEX, RGB & HSL colour converter

Convert colours between HEX, RGB and HSL with a preview, transparency and a copy button for each format.

AvailableIn your browserInput: Text

How to use: HEX, RGB & HSL colour converter

  1. Type a colour as HEX, rgb() or hsl() or use the picker.
  2. Check the preview.
  3. Copy the format you need.

What it accepts and what you get

Input
HEX colours (#rgb, #rrggbb, with alpha), rgb()/rgba() or hsl()/hsla().
Output
The same colour as HEX, RGB and HSL.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • HSL is rounded to whole numbers, so a round trip may differ by one unit.
  • To check whether two colours read well together use the contrast checker.