Color Converter

Convert colors between HEX, RGB and HSL online for free, in your browser.

How to use

  1. 1Enter a color in HEX, RGB or HSL format, or use the color picker.
  2. 2The other two formats update automatically.
  3. 3Copy any format you need.

Features

  • Convert between HEX, RGB and HSL
  • Visual color picker
  • Live color swatch preview

Supported formats

HEXRGBHSL

Privacy

Color conversion happens locally in your browser and is never sent to our server.

About this tool

HEX, RGB and HSL are three ways of writing down the exact same color, each suited to a different job: HEX is the compact shorthand most design tools default to, RGB maps directly onto how a screen mixes red, green and blue light, and HSL (hue, saturation, lightness) is often the easiest to reason about when you want a lighter or more muted version of a color without recalculating three channels by hand. This tool keeps all three in sync — edit any one, or pick visually with the color swatch, and the others update instantly. Need to sample a color from an existing image instead of typing one in? See the Image Color Picker.

Frequently asked questions

Can I edit any of the three formats directly?

Yes, HEX, RGB and HSL are all editable — changing one updates the other two and the color swatch.

Can I use the color picker to choose a color visually?

Yes, click the color swatch on the left to open your browser's native color picker.

Is my data sent to a server?

No, all conversion happens locally in your browser.

When should I use HSL instead of HEX or RGB?

HSL separates hue, saturation and lightness, so adjusting just one of those — making a color lighter, more muted, or rotating the hue while keeping everything else fixed — is a simple number change rather than recalculating all three RGB channels by hand.