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

By 1 min read

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

What you need

  • Red (0-255), for example 59
  • Green (0-255), for example 130
  • Blue (0-255), for example 246

Step by step

  1. Open the RGB to HSL Converter tool.
  2. Fill in Red (0-255).
  3. Fill in Green (0-255).
  4. Fill in Blue (0-255).
  5. Read the result, which updates as soon as the inputs change.

Worked example

With these inputs:

  • Red (0-255): 59
  • Green (0-255): 130
  • Blue (0-255): 246

the tool returns:

hsl(217, 91%, 60%)
Hex: #3B82F6

A second example

Changing Red (0-255) 59 to 118 gives:

hsl(234, 88%, 71%)
Hex: #7682F6

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

How it works

The calculation is: Standard RGB to HSL conversion. Enter red, green and blue values from 0 to 255. You get the HSL values and the matching hex code.

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, HSL to Hex Converter or RGB to Hex Converter.

More from the blog