Source format does not match the tool
Conversions fail when the pasted input is not actually in the expected source format.
Fix: Verify the source format first, then paste it into the correct converter.
header • up to 320x100 / 728x90
Convert HEX color to HSL
Convert HEX while keeping a visual preview and related formats nearby.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Hexadecimal (base 16) uses digits 0-9 and letters A-F to represent bytes compactly, widely used for colors, hashes, and low-level binary data.
HEX to HSL Converter reads a hex color (#RGB, #RRGGBB, or #RRGGBBAA) and returns the equivalent hsl() triple — hue in degrees (0–360), saturation and lightness as percentages.
HSL is the preferred notation when you're tuning a color palette because lightness and saturation are intuitive sliders, unlike RGB where you need to adjust three coupled channels at once.
Paste your HEX input so it can be converted into HSL for your next step.
Get HSL output converted from HEX that is ready to review, copy, or export into the next step of your workflow.
Conversions fail when the pasted input is not actually in the expected source format.
Fix: Verify the source format first, then paste it into the correct converter.
Broken rows, missing fields, or incomplete markup can block conversion.
Fix: Use a complete input sample with the structure intact before converting it.
Different target formats can flatten, restructure, or serialize values differently.
Fix: Review the converted output and confirm it matches the target system before using it downstream.
Hue is measured in degrees around the color wheel — a full rotation back to red is 360°. This matches how artists and designers describe color (red=0°, green=120°, blue=240°) and makes finding complementary colors straightforward: add 180° to the hue.
The standard sRGB-to-HSL formula: normalize RGB to 0–1, find max and min channels, compute lightness as (max+min)/2, saturation from the max-min delta divided by the chroma denominator, and hue from the dominant channel. The result is identical to Chrome DevTools, Figma, and CSS hsl() values.
No — HSL uses Lightness where 50% is a pure hue and 100% is white. HSV (also called HSB) uses Value/Brightness where 100% is a pure hue and 0% is black. They're different conversions with different formulas, so mixing them up leads to unexpected output.
Yes, within 1 unit of rounding. HSL channels are continuous (0–360, 0–100%, 0–100%) while hex is 256 discrete steps per channel, so converting hex → HSL → hex is lossless within display precision. You'll see at most ±1 rgb unit drift in edge cases.
Yes. Modern Tailwind v3+ and every major CSS-in-JS library support native hsl() — paste the output directly. If you're locking to a legacy stylesheet that only accepts hex, use our HSL to HEX converter as the round-trip pair.
Yes — and it's especially powerful because you can parametrize each channel separately: `--primary: hsl(var(--primary-hue) 80% 50%);` lets you theme by only swapping the hue token. The tool output is ready to drop straight into that pattern.
Continue the workflow with related tools for hEX to HSL, adjacent input and output steps, or other utilities in the same category. You can also browse the full Color Converters category for more options.
Convert HSL color to HEX
Convert HEX color to HSV
Convert HEX color to RGB
Convert HEX color to CMYK
Convert HEX color to OKLCH (CSS native)
Convert HSL color to RGB
Convert HSV color to HEX
Convert RGB color to HEX
Convert RGB color to HSL
Convert CMYK color to HEX
Convert OKLCH color to HEX
Convert HSV color to RGB