HEX to HSL Color Converter

Convert HEX to HSL instantly — free, in your browser.

Processed locally — files never leave your device

Type a HEX code like #FF0000 or #F00, or use the color picker. The result updates as you type.

Works offline once loaded Uploaded: 0 bytes

HSL describes a color by its hue (an angle on the color wheel), its saturation (how vivid it is) and its lightness (how close to white or black). This free converter gives you the exact HEX to HSL values instantly, with a live swatch so you can see the color as you type — no tables to look up, no guessing.

It runs entirely in your browser, so nothing is uploaded and it works offline once the page loads. Designers use it to translate brand colors between tools: copy a HEX from a style guide, get the RGB for CSS, the HSL for a color picker, or the CMYK for print. For image work, pair it with the Image Compressor or the Background Remover.

How to use

  1. Type or paste your HEX color value into the box above — or pick a color with the color picker.
  2. The result updates live, with a swatch showing the exact color.
  3. Check the breakdown: every channel is shown separately.
  4. Press Copy to copy the converted value for your CSS, design tool or print file.

Why use Toolsvine

HSL is the color model designers actually think in: pick a hue, then decide how vivid and how light it should be. Getting there from a HEX code means dividing, finding maxima and doing fractions — arithmetic nobody enjoys, and one slip turns a warm orange into a muddy brown. A converter that runs locally, shows the swatch live and copies the answer in one click turns a chore into a second — free, with no account and no upload.

How does the HEX to HSL conversion work?

First turn the HEX into RGB channels from 0 to 1, then find the largest (max) and smallest (min) channel. Lightness is L = (max + min) / 2, saturation is S = (max − min) / (1 − |2L − 1|), and hue comes from which channel is largest: red near 0°, green near 120°, blue near 240°.

If max equals min the color is gray and saturation is 0, and the hue is undefined — a gray has no family on the color wheel. Otherwise saturation is S = (max − min) / (1 − |2L − 1|), and hue comes from which channel is largest.

Worked example: burnt orange #FF6B35

Burnt orange #FF6B35 is hsl(16, 100%, 60%). The channels are R = 1.0, G = 0.42 and B = 0.21, so max is 1.0 and min is 0.21: lightness is (1.0 + 0.21) / 2 = 0.60, saturation is full, and the hue of 16° sits between red at 0° and yellow at 60° — a warm, fully saturated orange.

HEX to HSL worked example showing burnt orange hex code FF6B35 converted to hsl 16 100 percent 60 percent
#FF6B35 converts to hsl(16, 100%, 60%) — hue 16°, full saturation.

Common colors

ColorValue
Red #FF0000hsl(0, 100%, 50%)
Green #00FF00hsl(120, 100%, 50%)
Blue #0000FFhsl(240, 100%, 50%)
Gray #808080hsl(0, 0%, 50%)
Orange #FFA500hsl(39, 100%, 50%)

Values are rounded for display: RGB channels are whole numbers from 0 to 255, HSL and HSV use degrees and percentages, and OKLCH lightness runs from 0 to 1. The converter itself keeps full precision and only rounds what it shows you.

Why use HSL instead of HEX?

HSL is easier to adjust: nudge the lightness up for a tint, down for a shade, without touching the hue. Want a lighter version of your brand orange? Keep H at 16° and S at 100%, and raise L from 60% to 75%. In HEX that same change means editing all six digits by hand and hoping the hue survives.

CSS accepts hsl() directly, so you can paste the result into a stylesheet as-is. To go the other way or try the screen model, the HEX to RGB Color Converter gives you the channel values.

Frequently asked questions

How do I convert HEX to HSL?

Type the value in the box above — the result appears instantly, with a swatch showing the exact color. Press Copy to use it in your CSS or design file. The converter accepts six-digit codes with or without the # sign, and three-digit shorthand like #F00 expands to #FF0000 automatically.

Is my color data uploaded anywhere?

No. The conversion runs in your browser with JavaScript. Nothing leaves your device, and the page works offline after it loads. Your brand colors and client palettes never leave your computer, which is the whole point of a local converter.

Why do the same colors have different values in different tools?

Every color model describes the same color differently: HEX and RGB store red, green and blue amounts; HSL stores hue, saturation and lightness; CMYK stores ink. They are translations, not different colors. The swatch never changes — only the numbers that describe it do.

What does the hue number mean?

Hue is the angle on the color wheel, from 0° to 360°: 0° is red, 60° is yellow, 120° is green, 180° is cyan, 240° is blue and 300° is magenta. Two colors with the same hue but different saturation or lightness are the same family — a light blue and a dark navy can both sit near 240°, for example.

Can I use the result in CSS?

Yes — copy the value straight into your stylesheet. Modern browsers accept rgb(), hsl() and oklch() directly, and HEX works everywhere. HSL is especially handy in CSS because you can build a whole palette by stepping the lightness up and down while the hue stays put.