freetoolsY

How to convert hex, RGB and HSL colors

Designers and developers switch between color formats constantly: hex in CSS, RGB in code, HSL when tweaking hue and lightness. Converting between them by hand is error-prone; a converter does it instantly with exact values.

The common formats

Hex (#2563EB) is compact and CSS-friendly. RGB (37, 99, 235) separates red, green and blue channels. HSL (222, 82%, 53%) describes the same color by hue, saturation and lightness, which makes adjustments like 'slightly darker' trivial.

Convert and sample with FreetoolsY

Paste any color format into the Color Converter to see it in all the others at once. Need a color that is inside an image? Open Image Color Picker, click any pixel and copy its code. To build a whole palette, start from one flat color and let the Palette Generator propose harmonious variations.

Keep your palette consistent

Save every brand color in one place — a hex dashboard — and reference it everywhere. Small shifts in lightness change perceived color more than small shifts in hue, so prefer HSL when you tune a shade.

Tools used in this guide

All guides