Output will appear here
Click in the output to select all text
Output will appear here
Click in the output to select all text
Convert HEX color codes to Hue, Saturation, and Lightness (HSL).
Convert RGB / RGBA color values to 6-digit or 8-digit HEX codes.
Convert HSV / HSB color values to standard RGB components.
Convert simultaneously across HEX, RGB, RGBA, HSL, HSLA, HSV, CMYK, and HWB formats.
Visual color picker showing real-time HEX, RGB, HSL, HSV, and CMYK formats.
All-in-one generator for complementary, analogous, triadic, split-complementary, and tetradic schemes.
This HSL to HEX converter turns a hue, saturation, and lightness combination into a standardized hex color code you can paste directly into CSS, design tools, or code editors. It's ideal for developers who've picked a color using HSL sliders and now need the equivalent hex value for a stylesheet, or designers translating a color theory concept - like a specific hue at a set lightness - into a usable swatch. Enter your hue in degrees along with saturation and lightness as percentages, and the tool calculates the exact hex output in real time, complete with a live color preview. Since the conversion runs entirely client-side, nothing you enter is ever uploaded or logged, keeping your design work fully private. The underlying math follows the standard HSL-to-RGB-to-HEX pipeline precisely, so results are consistent with what browsers and design apps render. Use the fields below to start converting HSL to HEX.
HSL is first converted to RGB using the standard HSL-to-RGB formula, then each RGB channel is converted to a two-digit hexadecimal value to form the final hex code.
hsl(200, 100%, 50%) converts to #00aaff, a bright sky blue.
HSL lets you reason about color intuitively - increasing lightness brightens a color, and adjusting hue rotates it around the color wheel without changing saturation or lightness.
Yes, at 100% lightness any hue or saturation combination results in pure white (#ffffff).
Yes, 0% saturation removes all hue information, producing a grayscale color regardless of the hue value.
Yes, if alpha is provided it's converted to an extra two hex digits, producing an 8-digit hex-with-alpha code.