HSL to HEX

Convert HSL values into a six-digit HEX color.

Your workspace

Processed in your browser

Enter your values or try the example.

This utility converts HSL (Hue, Saturation, Lightness) values into a standard six-digit HEX color code. This is useful when you have color values defined in HSL but need to convert them to HEX for compatibility with older systems or specific design tools.

How to convert HSL to HEX

  1. Enter the Hue (0-360), Saturation (0-100), and Lightness (0-100) values separated by commas.
  2. The tool calculates the equivalent HEX color code, such as #ff0000.

Input requirements

Ensure your saturation and lightness values are provided as percentages between 0 and 100. The hue value should be an integer representing degrees on the color wheel. If the hue exceeds 360, it will wrap around automatically.

Example conversion

0, 100, 50

#ff0000

Questions about HSL to HEX

What happens if I enter values outside the valid range?

The tool will return an error if saturation or lightness are outside the 0-100 range, as these are invalid for standard HSL definitions.

How does the hue wrap around?

The hue is treated as a circle; for example, a value of 360 is equivalent to 0, and 400 is treated as 40 degrees.

Continue your workflow

Explore more tools in this category for your next step.