Skip to main content

Color Converter

Convert HEX, RGB and HSL color codes instantly, with a live preview.

Preview

Online color converter

Web design constantly switches between color notations: a mockup gives you HEX, CSS wants HSL to tweak lightness, or code needs RGB values. This color converter converts HEX, RGB and HSL in real time with a live preview — change one and the other two update instantly.

How to use

  1. Enter a color in any field (HEX, RGB or HSL).
  2. The other two formats and the preview update instantly.
  3. Copy the format you need into your CSS or design tool.

Common use cases

  • Turn a mockup's HEX into the HSL you want in CSS.
  • Use HSL to fine-tune light/dark variants of one hue.
  • Get RGB values for use in code.

Frequently Asked Questions

What is the difference between HEX, RGB and HSL?

HEX is the hexadecimal web code (#RRGGBB); RGB uses red/green/blue 0–255; HSL uses hue, saturation and lightness, which is more intuitive for tweaking a shade. All three interconvert.

Does it support transparency (alpha)?

This tool focuses on the three base representations HEX/RGB/HSL; you can add an alpha value on top for RGBA/HSLA as needed.

Is the conversion accurate?

Yes. It uses standard color formulas. HEX and RGB map exactly; HSL may round very slightly, imperceptibly to the eye.