Paste a hex code or an rgb() value and get every format back, including the bare HSL triple that CSS custom properties usually want. Shorthand hex like #abc is expanded correctly.
Runs entirely in your browser
Colours in web work show up in several notations, and you constantly need to move between them. This converter takes a HEX code or an rgb() value and returns every common format — HEX, RGB and HSL — so you can grab whichever your stylesheet or design tool expects. It also outputs the bare HSL triple that CSS custom properties usually want, without the surrounding hsl() wrapper.
Small details are handled correctly. Shorthand hex like #abc is expanded to its full six-digit form, and the conversions are exact rather than approximate, so a value round-trips without drift. A live preview shows the actual colour as you work, which catches the times a pasted value is not quite what you thought.
Everything runs in your browser, so it is instant and nothing is uploaded. Use it to translate a colour from a design handoff into the format your code needs, or to understand a colour by seeing it in HSL where hue, saturation and lightness are legible.
TechToolsHQ is an independent, reader-supported tech platform. If this free tool saved you time, solved a problem, or helped your workflow, consider supporting our work. Your support helps us keep our utilities 100% free, private, and ad-free for everyone.