HSL to HEX Converter
Convert an HSL color value to its hex equivalent.
#4d90fergb(77, 144, 254)hsl(217, 99%, 65%)Convert HSL colors to HEX online
This free HSL to HEX converter turns hue, saturation, and lightness values into a HEX color code for CSS and design workflows. Enter standard hsl(...) syntax or comma-separated values, then copy the converted result.
What is HSL?
HSL stands for hue, saturation, and lightness. It is a way of representing colors using three values instead of a hexadecimal color code.
Hue represents the position of a color around the color wheel, while saturation controls how vivid or muted the color is. Lightness controls how light or dark the color appears. An HSL value can be written in CSS ashsl(217, 99%, 65%).
How to convert HSL to HEX
Enter the hue, saturation, and lightness values into the converter. You can use standard HSL notation or enter the values separately as comma-separated numbers.
The converter calculates the equivalent RGB color and then represents those RGB channel values as a hexadecimal color code. The resulting HEX value can be copied and used in CSS, design tools, graphics software, or other applications that accept hexadecimal colors.
Understanding HSL values
Hue is measured around a 360-degree color wheel. Saturation and lightness use percentage values, with 0% representing the lowest supported value and 100% the highest.
For example,hsl(0, 100%, 50%)represents a fully saturated color at the midpoint of the lightness range. Changing the hue, saturation, or lightness produces a different color that can then be represented as HEX.
Why convert HSL to HEX?
HSL is useful for thinking about hue and lightness adjustments, while HEX is compact and widely used in stylesheets. Converting the value helps you move a chosen color from a design or color experiment into CSS code.
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No. The conversion happens directly in your browser.
- Either hsl(217, 99%, 65%) or just 217, 99%, 65% both work.
- It returns an uppercase HEX value and also shows the corresponding RGB and normalized HSL values from the shared color converter.
- Saturation and lightness are constrained to the supported 0–100 range before the color is converted.
- Hue values are normalized around the color wheel, so values outside one full turn wrap to an equivalent hue.
- Yes. The shared converter accepts supported HEX, RGB, and HSL input, although this page focuses on converting HSL to HEX.
- No. It converts typed color values. Use the Color Picker from Image tool to sample a pixel from an uploaded image.
Related tools
Or browse the full list of free tools.