ToolMill

Color Converter (Hex / RGB / HSL)

Type a color in any format — Hex, RGB or HSL — and get the other two instantly, with a live preview and CSS-ready values.

CSS hex—
CSS rgb()—
CSS hsl()—

The three formats

Hex packs red, green and blue into one compact code (#3b82f6) and is what design tools and CSS most often show. RGB spells the same three channels out as numbers from 0 to 255. HSL describes a color the way people think about it — hue (the color itself, 0–360°), saturation (how vivid) and lightness (how bright) — which makes it the easiest format for building lighter and darker variants of a brand color: keep H and S, move L.

FAQ

What is the short 3-digit hex, like #fff?

A shorthand where each digit is doubled: #fff means #ffffff and #000 means #000000. It only works when each pair consists of two identical digits. This converter accepts both forms.

How do I make a color lighter or darker?

Convert it to HSL above, then raise or lower the L (lightness) value while keeping H and S the same. That preserves the color's character better than scaling the RGB numbers.

Does this check accessibility contrast?

No — for text/background contrast ratios and WCAG AA/AAA verdicts, use the Color Contrast Checker.

Is my data sent anywhere?

No. Everything is calculated locally in your browser.

Related tools