Home › All Tools ›

HSL to RGB Converter

Use HSL to RGB Converter online for free at FreeToolZones — no sign-up, no watermark.

Loading tool...

The HSL to RGB Converter on FreeToolZones converts a color from HSL values, hue, saturation, and lightness, into RGB values, the red, green, and blue numbers that screens and many design tools use. You enter a hue from 0 to 360, a saturation and a lightness from 0 to 100 percent, and the tool instantly shows the RGB values, a swatch of the color, and a code line with the RGB notation and the HEX code. HSL is the model people think in when they describe colors: this hue, this vivid, this light. RGB is the model screens speak. This converter is the bridge between the two, and it is essential whenever you have designed or reasoned in HSL terms and need the exact screen values to implement the result. The tool runs entirely in your browser, updates live as you type, and needs no account.

What Is the HSL to RGB Converter?

The HSL to RGB Converter is a color model converter that translates an HSL description of a color into its RGB equivalent. HSL describes a color by three intuitive properties. Hue is the position around the color wheel, measured in degrees from 0 to 360, where 0 is red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, and 300 is magenta. Saturation is the vividness of the color as a percentage, where 0 percent is a pure grey with no hue visible, and 100 percent is the most vivid version of that hue. Lightness is the brightness of the color as a percentage, where 0 percent is black regardless of hue, 50 percent is the pure hue at full strength, and 100 percent is white regardless of hue.

RGB describes the same color by the amounts of red, green, and blue light to mix, each from 0 to 255. That model is native to screens, image files, and many programming interfaces, but it is hard to reason about directly. The converter takes the human-friendly HSL numbers and computes the exact RGB triple that produces the same color, using the standard conversion formula. The tool starts with HSL 159, 83 percent, 24 percent, a deep green, already entered, so a complete conversion is visible as soon as the page loads.

The output shows a swatch of the color, three statistics for Red, Green, and Blue, and a code line combining the RGB notation, such as rgb(10, 110, 78), with the HEX code for the same color. Clicking the swatch copies the HEX code. The RGB values are whole numbers from 0 to 255, ready to use in code, design tools, spreadsheets, or documentation. Because the conversion is mathematical and deterministic, the same HSL input always produces the same RGB output, so results are reproducible and safe to record in a style guide.

This converter is the natural partner of the RGB to HSL Converter. Together, the two tools support a full edit cycle: convert a known color to HSL, adjust its lightness or saturation by a chosen amount, and convert back to RGB for implementation. That cycle is the backbone of systematic color work, because it replaces guessing with arithmetic. Raising lightness by 10 points, for example, is a repeatable operation that produces the same kind of change for any starting color, while guessing new RGB numbers produces inconsistent results.

How to Use the HSL to RGB Converter

Converting an HSL color takes three numbers and no special preparation.

  1. Enter the Hue value. In the field labeled “Hue (0-360)”, type a number from 0 to 360. The default is 159, which is in the green range. Hue 0 and hue 360 describe the same red, because the wheel wraps around.
  2. Enter the Saturation value. In the field labeled “Saturation (0-100%)”, type a number from 0 to 100. The default is 83, a vivid color. Lower values produce more muted, greyish results.
  3. Enter the Lightness value. In the field labeled “Lightness (0-100%)”, type a number from 0 to 100. The default is 24, a dark color. Higher values produce lighter results, and 50 is the midpoint where the hue shows at full strength.
  4. Read the results as you type. The conversion updates live with every keystroke, so you can watch the RGB values and the swatch change as you adjust any input. You can also click the “Convert” button to run the conversion explicitly.
  5. Read the three statistics. The result panel shows Red, Green, and Blue as large, clearly labeled statistics, each a whole number from 0 to 255.
  6. Use the code line. Below the statistics, a code line shows the RGB notation followed by the HEX code. Copy the RGB notation into code or a design tool, or use the HEX code wherever a HEX value is needed.
  7. Check the swatch. The swatch above the statistics shows the color itself. Click it to copy the HEX code. If the swatch does not look like the color you intended, re-check the three inputs, especially lightness, which has the largest effect on how light or dark the result appears.

If you enter a hue outside 0 to 360, or a saturation or lightness outside 0 to 100, or leave a field empty, the tool shows an error message asking you to enter Hue 0-360 and Saturation and Lightness 0-100. Correct the entry and the conversion will run again automatically.

Key Features of the HSL to RGB Converter

  • Three simple number inputs. Hue, Saturation, and Lightness fields accept the standard ranges, with a complete example already filled in, so the tool is usable immediately.
  • Live conversion. Results update as you type, and a “Convert” button is also provided, supporting both exploration and one-shot lookups.
  • Red, Green, and Blue statistics. The three RGB components are shown as large, labeled statistics, each a whole number from 0 to 255.
  • RGB notation plus HEX code. The code line combines the rgb() notation with the HEX code, giving you two usable formats in one place.
  • Color swatch. The swatch shows the actual color and can be clicked to copy its HEX code, linking the numbers to the visual result.
  • Clear validation. Out-of-range or missing values produce a plain error message stating the valid ranges, instead of a silent wrong answer.
  • Private and instant. All conversion happens in the browser with no network requests.

Practical Use Cases

Implementing an HSL design in RGB tools. A designer specifies colors in HSL because they are easy to discuss, for example “the same hue, 10 points lighter for hover”. The developer implementing the design in a tool that wants RGB values converts each HSL specification here and uses the resulting RGB numbers or HEX codes in the code.

Creating systematic color variations. Start with a brand color in HSL, then create variations by changing one component at a time: raise lightness for tints, lower it for shades, lower saturation for muted versions, shift hue by a few degrees for neighboring colors. Convert each variation to RGB here, and you have a coherent family of colors with a clear logic behind each one.

Writing color values for programming. Many programming interfaces, canvas drawing commands, and chart libraries accept RGB values or HEX codes but not HSL. When a specification or a design token file gives HSL values, this converter produces the RGB and HEX values the code needs.

Exploring hue families. Hold saturation and lightness fixed and step the hue through the wheel in increments of 30 degrees to see the twelve main hue families at a consistent vividness and brightness. Convert each step to RGB and record the values to build a hue reference chart for a team or a classroom.

Learning color theory. Students can set saturation to 0 and watch the RGB values become equal, producing grey, regardless of hue. They can set lightness to 0 or 100 and watch the result become black or white. Those experiments make the meaning of each HSL component concrete in a way that definitions alone do not.

Checking edge cases in a design system. A design system that generates colors from HSL formulas needs to know what happens at the extremes: very low saturation, very high lightness, hue values near the wrap point. Converting those edge cases here shows the actual RGB results before they reach production code.

Preparing colors for data visualization. Charts often need a sequence of colors with the same hue and saturation but steadily increasing lightness, so that value order is encoded by brightness. Generate the sequence in HSL, convert each step here, and use the RGB or HEX values in the chart tool.

Tips and Best Practices

Keep hue fixed for families, vary lightness for steps. The most reliable recipe for a related set of colors is one hue, one saturation, and a series of lightness values. That produces a clean scale from dark to light that always looks intentional.

Use saturation to control mood. High saturation colors feel energetic and demand attention. Low saturation colors feel calm and recede. If a design feels too loud, lower the saturation of its largest color areas before changing hues.

Remember the lightness midpoint. Lightness 50 percent is where a hue shows at full strength. Below 50 percent, colors darken toward black. Above 50 percent, they lighten toward white. Knowing the midpoint helps you predict the effect of a lightness change before you make it.

Watch for clipping at the extremes. At very high or very low lightness, different hues converge toward white or black, and the RGB differences between hues shrink. If two colors must remain distinguishable, keep their lightness values in the middle range where hue differences are visible.

Note that hue 0 and hue 360 are the same. The color wheel wraps around, so a hue of 360 is red, just like a hue of 0. If a calculation produces a hue above 360, subtract 360 to bring it back into range.

Record HSL and RGB together. When you document a color, write down both the HSL specification and the converted RGB and HEX values. The HSL form explains the intent, and the RGB form is what most tools consume, so keeping both saves future conversion work.

Pair with the reverse converter. To edit an existing RGB color in HSL terms, convert it first with the RGB to HSL Converter, adjust the HSL values, and convert back here. The two tools together make HSL editing practical for any color.

Limitations

The HSL to RGB Converter handles one color at a time and accepts HSL input only. It does not accept HEX codes, RGB values, or named colors as input; for those starting points, use the Color Code Converter, which accepts several formats, or the RGB to HSL Converter for the reverse direction. The RGB outputs are whole numbers, so the conversion rounds to the nearest integer in each channel. That rounding is invisible in practice, but it means converting the RGB result back to HSL may give values that differ by a fraction of a degree or a percentage point from the originals, before rounding.

The tool does not judge whether a color is suitable for any purpose. It will convert any valid HSL triple, including colors that are unreadable as text or unpleasant in large areas, so suitability remains your judgment. It does not save conversions or keep a history, so record values you need before changing the inputs. At zero saturation, the hue has no effect on the result, and the tool does not flag that case, so do not be surprised when changing the hue of a grey produces no visible change. Finally, the tool converts in the standard sRGB color space implied by the formula, and it does not account for display calibration or print profiles, so the same RGB values may appear slightly different on different screens.

Frequently Asked Questions

What ranges do the inputs accept?

Hue must be from 0 to 360, and Saturation and Lightness must each be from 0 to 100. Values outside those ranges, or empty fields, produce an error message stating the valid ranges.

What does the tool output?

It outputs the Red, Green, and Blue values as whole numbers from 0 to 255, shown as statistics, plus a code line with the rgb() notation and the HEX code for the same color, and a swatch you can click to copy the HEX code.

Why does changing the hue do nothing when saturation is 0?

At zero saturation, the color is a pure grey, and all hues produce the same grey. The hue only affects the result when saturation is above zero.

Are hue 0 and hue 360 the same color?

Yes. The hue wheel wraps around, so 0 and 360 both describe red. Any hue calculation that goes above 360 can be brought back into range by subtracting 360.

How do I convert back from RGB to HSL?

Use the RGB to HSL Converter on this site. Enter the red, green, and blue values and it returns the hue, saturation, and lightness.

Can I enter a HEX code here?

Not directly. This tool accepts HSL numbers only. Use the Color Code Converter or Color Picker if your starting point is a HEX code.

Related Tools

Continue converting and exploring with these tools on FreeToolZones: the RGB to HSL Converter performs the reverse conversion; the Color Code Converter accepts HEX, RGB, HSL, and named colors; the HEX to RGB Converter converts HEX to RGB directly; the Color Picker shows all formats for any color; and the Color Scheme Generator builds schemes from a base color. You can also return to the FreeToolZones homepage to browse all 500 tools.

Browse More Tools