← All tools
Design

Color Converter — HEX, RGB, HSL

Convert colors between HEX, RGB, and HSL formats live, with an instant preview swatch.

🔒 Runs entirely in your browser — no data is ever sent anywhere
Preview

When you need to convert between color formats

Designers and CSS often speak in different color formats for the same underlying color — a design handoff might specify a hex swatch, while you want HSL specifically because it's far easier to reason about lightening, darkening, or desaturating a color by adjusting one number instead of recalculating three interdependent RGB channels. This tool converts live between all three formats with an instant preview, so you can paste in whatever format you were handed and get back whichever format your codebase actually uses.

RGB vs HSL — and why HSL is easier to tweak

RGB defines a color by the intensity of red, green, and blue light needed to produce it — precise, but not intuitive to a human trying to make a color 'a bit lighter.' HSL (hue, saturation, lightness) describes the same color space in terms people actually think in: hue is the base color itself on a 360° wheel, saturation is how vivid or muted it is, and lightness is how close to black or white it sits. Nudging just the lightness value up or down gives a predictable lighter or darker shade of the exact same hue — something that requires recalculating all three RGB channels together to do correctly. All three output formats here (hex, rgb(), hsl()) are valid CSS values that can be pasted directly into a stylesheet.

Frequently asked questions

What's the difference between RGB and HSL?

RGB defines a color by its red, green, and blue light intensities. HSL (hue, saturation, lightness) describes the same color space more intuitively for humans — hue is the color itself on a wheel, saturation is intensity, and lightness is how close to black or white it is. HSL is often easier for tweaking a shade lighter/darker or more/less saturated.

Can I paste any of these formats directly into CSS?

Yes — all three output formats (hex like #3457d5, rgb(), and hsl()) are valid CSS color values and can be pasted directly into a stylesheet.

Does this tool support alpha/transparency?

Not currently — it converts fully opaque colors between HEX, RGB, and HSL. For transparency you'd add an alpha channel manually (e.g. rgba() or an 8-digit hex).

Bracketly is free and open-source. If this tool saved you time, consider supporting it.

☕ Buy me a coffee