How to Use the HSL to Hex Converter: Steps and a Worked Example

By 1 min read

Convert hue, saturation and lightness to a hex colour code and RGB. This guide shows what to enter, a worked example, and the limits to keep in mind. The HSL to Hex Converter tool is free, needs no account and runs in your browser.

What you need

  • Hue (0-360), for example 217
  • Saturation (%), for example 91
  • Lightness (%), for example 60

Step by step

  1. Open the HSL to Hex Converter tool.
  2. Fill in Hue (0-360).
  3. Fill in Saturation (%).
  4. Fill in Lightness (%).
  5. Read the result, which updates as soon as the inputs change.

Worked example

With these inputs:

  • Hue (0-360): 217
  • Saturation (%): 91
  • Lightness (%): 60

the tool returns:

#3C83F6
rgb(60, 131, 246)

A second example

Changing Hue (0-360) 217 to 109 gives:

#5EF63C
rgb(94, 246, 60)

Comparing two runs like this is a quick way to see how much each input moves the result.

How it works

Standard HSL to RGB conversion, then hex. Enter hue from 0 to 360, and saturation and lightness from 0 to 100. You get the hex code and the RGB values.

Things to keep in mind

Runs entirely in your browser. Nothing you enter is uploaded.

If this is not quite what you need, try Hex to HSL Converter, Hex to RGB Converter or RGB to HSL Converter.

More from the blog