Free online color converter
This color converter translates any color between the three formats you use most on the web: HEX, RGB, and HSL. Pick a color with the native color picker, paste a hex code, or type raw channel values — every other representation updates live, and the large swatch shows exactly what you'll get. It's built for designers, front-end developers, and anyone matching brand colors across CSS, design tools, and style guides.
How to convert a color
- Choose a starting point: use the color picker, or type into the HEX, RGB, or HSL fields.
- Watch the other formats and the preview swatch update instantly as you edit.
- Fine-tune with the RGB (0–255) or HSL (hue 0–360, saturation and lightness 0–100) inputs.
- Click Copy next to the HEX,
rgb(), orhsl()value to grab it for your stylesheet.
HEX, RGB, and HSL explained
HEX codes like #3b82f6 pack red, green, and
blue into three two-digit hexadecimal pairs — compact and perfect for CSS.
RGB expresses the same channels as decimal numbers from 0
to 255, which is handy when a design tool reports values that way.
HSL describes a color by hue, saturation, and lightness,
making it easy to build consistent tints and shades by nudging a single
number. Because all three describe the same color space, converting between
them is lossless for whole-number values.
Related tools
Working with color codes often goes hand in hand with other quick utilities. Turn a link or palette note into a scannable image with the QR code generator, or encode assets and data URIs with the Base64 encoder. Everything runs entirely in your browser, so your work stays private.