Calculators & Converters · runs locally

Colour Converter (HEX / RGB / HSL)

Convert formats, pick a colour and copy a usable palette.

Loading the colour converter…

The tool runs locally in your browser.

One colour, every format

Design systems, CSS, JSON and design tools each prefer a different colour format. This converter moves between HEX, RGB and HSL instantly and gives you a related palette to work with.

What you can do

  • Convert HEX ↔ RGB ↔ HSL
  • Pick a colour visually with a colour input
  • Copy any format with one click
  • Generate light and dark variants of the colour

How to use it

  1. Enter a colour in any format — the others update live.
  2. Or pick one visually.
  3. Copy the format your code needs.

Privacy

Conversion is pure arithmetic in the browser; brand colours and design work stay local.

Frequently asked questions

Which format should I use in CSS?
HEX for literals, HSL when adjusting lightness programmatically.

Why does HSL make editing easier?
Lightness and saturation are independent, so tweaks stay predictable.

Does it handle alpha transparency?
The core conversions are opaque colours; add alpha in code where needed.