HSL to HEX
Convert HSL values into a six-digit HEX color.
Your workspace
Processed in your browserThis 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
- Enter the Hue (0-360), Saturation (0-100), and Lightness (0-100) values separated by commas.
- 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.
RGBA to HEX with Alpha
Encode red, green, blue and opacity values as an eight-digit CSS HEX color.
Color Blend Calculator
Mix two colors by a chosen proportion using sRGB channels or linear-light RGB.
Color Blindness Simulator
Apply approximate protanopia, deuteranopia or tritanopia RGB matrices to an uploaded image; simulations do not diagnose vision.
Color Inverter
Invert an opaque HEX color by subtracting RGB channels from 255.