Color Converter

Color Converter converts a color between HEX, RGB, and HSL formats instantly as you type, with a live preview swatch, entirely in your browser.

No upload Instant Free No sign-up

Drag to adjust

How to convert colors

  1. 1 Enter a color in HEX, RGB, or HSL format in any of the fields.
  2. 2 The other two formats update instantly, with a live preview swatch.
  3. 3 Copy whichever format you need for your CSS, design tool, or code.

Frequently Asked Questions

What's the difference between HEX, RGB, and HSL?
HEX and RGB both describe a color by its red, green, and blue components (HEX in base-16, RGB in base-10) — they're mathematically equivalent. HSL describes a color by hue, saturation, and lightness, which is often more intuitive for adjusting a color's shade or brightness.
Does this tool upload anything?
No — conversion happens entirely in your browser using JavaScript.
Can I use this for CSS?
Yes — all three formats (hex, rgb(), hsl()) are valid CSS color values; use whichever your project's style conventions prefer.