HSL to HEX converter.
Type an HSL color and get its hex code at once, alpha included, with every other notation below.
HSL to HEX converter.
Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.
Get ProHow it works
3 steps, no account. It runs in your browser and nothing is uploaded.
Type the HSL
As hsl(), hsla() or three values.
Read the hex
The hex code appears under it.
Copy it
One press copies it; the other notations are below.
Related tools
More color tools. Every one free, in the browser.
Pricing
Build it with Pro
The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Questions and answers
Before you trust the result: what to know about the format, the limits, your data and the tools next to it.
HSL is turned into red, green and blue (CSS Color 4 gives the formula: each channel is the lightness moved toward or away from gray by the saturation, depending on the hue), then each channel is scaled to 0 to 255 and written as two hex digits.
Hex holds whole steps of 1/255 per channel, and HSL can name colors between them, so a value like hsl(217 91% 60%) rounds to the nearest hex code. Converting that code back gives hsl(217.2 91.2% 59.8%), the exact HSL of the hex color.
Degrees by default; CSS also takes turn, rad and grad, so hsl(0.6turn 90% 60%) works here too.
hsl(217 91% 60%), hsl(217, 91%, 60%), hsla() with alpha, or the three values on their own: 217 91% 60%.
As a fourth hex pair: hsl(217 91% 60% / 0.5) becomes an 8-digit code ending in 80.
No. The conversion runs in your browser.
No. The HSL to HEX converter is free and opens without a sign-in, an account or an install.
Nothing. The HSL to HEX converter holds your input in the page's memory, so closing or reloading the tab clears it, and it saves nothing in this browser.
Closest to the HSL to HEX converter: HEX to HSL converter, RGB to HSL converter, Color converter, Color palette generator. Each opens on its own page, free and in the browser.
The HSL to HEX converter is one of 17 in its group. The group's page, /tools/color, lists them all.
The tool is free. Its interface is built from shadcn.io's own components (Button, Input, Slider and the rest of the registry under /ui), which come in React, Vue, Svelte and Solid. Pro adds the blocks and templates for the product around it.
4.9 out of 5 from 150+ developers
Build the product around it
Every block, template and icon, installed by your AI agent in your theme. The tools stay free.
Get Pro


