Loading tool…
Convert any color between HEX, RGB and HSL. Type into any field and the other two update instantly, with a live preview swatch.
Loading tool…
Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
HEX (#3b82f6) and RGB (59, 130, 246) describe a color by its red, green and blue components. HSL (217, 91%, 60%) describes it by hue, saturation and lightness, which is often more intuitive for tweaking.
HEX and RGB are two notations for the same values, so conversion is exact. HSL is a different model, computed from the RGB values — handy for creating lighter/darker variants by adjusting lightness.
CSS, design tools and brand palettes mix all three formats. This converter saves you from manual math when a spec gives you one format but you need another.
#39f is expanded to #3399ff automatically.