Skip to content
ToolsLeb ToolsLeb

Color Code Converter

Convert a color between HEX, RGB, and HSL formats.

Enter a color (HEX, RGB, or HSL)

Share on Social Media:

Enter a color in HEX, rgb()/rgba(), or hsl()/hsla() form to see its equivalent value in all three formats.

Frequently Asked Questions

HEX (#rgb or #rrggbb), rgb()/rgba(), and hsl()/hsla() — entering any one of these gives you the equivalent value in all three.

HSL stands for Hue, Saturation, Lightness — a format some designers find more intuitive than RGB for adjusting a color's brightness or intensity without changing its underlying hue.

Yes — rgba() and hsla() formats include an alpha channel for transparency, which is preserved when converting between formats that support it.