Developer Tools

HSL Converter

Live

Calculate hex from hue, saturation, lightness.

About HSL Converter

Calculate hex from hue, saturation, lightness. Enter hue, saturation, lightness in a purpose-built hsl converter interface designed for this subject. HSL coordinates are normalized and converted through chroma and lightness into RGB and HEX. The result includes hex, rgb, normalized hsl, color channels, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up HSL Converter

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Enter hue.

Enter saturation.

Enter lightness.

HSL Converter result

Enter the values above, then process to see a detailed result.

How HSL Converter works

HSL coordinates are normalized and converted through chroma and lightness into RGB and HEX.

How it works

HSL coordinates are normalized and converted through chroma and lightness into RGB and HEX. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.

Examples

HSL Converter worked example

Example input
{
    "hue": 217,
    "saturation": 91,
    "lightness": 60
}
Expected result
{
    "hex": "#3C83F6",
    "rgb": "rgb(60, 131, 246)",
    "hsl": "hsl(217 91% 60%)",
    "channels": [
        {
            "channel": "Red",
            "value": 60
        },
        {
            "channel": "Green",
            "value": 131
        },
        {
            "channel": "Blue",
            "value": 246
        }
    ]
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web APIs

Frequently asked questions

How does the HSL Converter work?

HSL coordinates are normalized and converted through chroma and lightness into RGB and HEX.

What information should I enter?

Enter hue, saturation, lightness. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports hex, rgb, normalized hsl, color channels, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.