Color Converter
Enter a colour as HEX, RGB or HSL and see the other formats update instantly, with a live swatch.
How to use it
- Enter a colour in any format Type a HEX code, or adjust the RGB or HSL channels.
- Read the other formats The remaining formats and the preview swatch update instantly.
Examples
| #ff0000 | rgb(255, 0, 0) |
|---|---|
| rgb(0, 128, 0) | #008000 |
| #ffffff | hsl(0, 0%, 100%) |
About this tool
Designers and developers constantly move colours between formats: HEX for CSS and design tools, RGB for image work, and HSL for making intuitive adjustments to hue, saturation and lightness.
This converter links all three with a live preview, so a change in one format immediately updates the others. The conversions are precise and run entirely in your browser.
Frequently asked questions
What is the difference between RGB and HSL?
RGB mixes red, green and blue light. HSL describes a colour by hue, saturation and lightness, which many people find more intuitive to adjust.
What does a HEX colour code mean?
A HEX code like
Related tools
Updated June 12, 2026