Type any color in HEX (#2563eb), RGB (rgb(37,99,235)), or HSL (hsl(221,83%,53%)) and see all three formats plus a live preview swatch. Runs entirely in your browser.
HEX
RGB
HSL
How it works
The tool parses whichever format you typed, converts through the internal RGB representation, and re-renders all three formats. Conversions follow the standard CSS Color Module formulas — the same ones your browser uses when it evaluates hsl() in stylesheets.
Where you will meet it
- Theming: design systems store one format, tooling demands another — Tailwind, for example, speaks both HEX and RGB
- Design handoff: Figma exports HEX; some charting libraries want HSL
- Dark mode tweaks: adjusting HSL lightness keeps hue consistent — see it before committing the value
Pair with the password generator for a full front-end utility kit, or the number base converter when you think of colors as raw hex numbers.