HEX to HSL
Every color format describes the same thing in a different language: HEX for stylesheets, RGB for screens and code, HSL for building palettes, CMYK for print. Pick the conversion you need and get the exact value, a live preview and the formula behind it.
This color in every format
The same color written as HEX, RGB, HSL and CMYK. Copy any value.
HEX to HSL conversion
Every conversion first normalises HEX into an sRGB triplet — red, green and blue on a 0–255 scale — and then encodes that triplet as HSL. Both notations describe the same pixel, so the visible color does not change.
Read the input
Split the HEX value into its channels (hex digit pairs, numbers or percentages).
Normalise to sRGB
Scale each channel onto 0–255 so rounding differences do not accumulate.
Encode HSL
Write the result in HSL notation and copy it into your stylesheet or design tool.
Formula
#FF5733 → sRGB rgb(255,87,51) → HSL hsl(11, 100%, 60%)
Worked example
#FF5733 = #FF5733 = hsl(11, 100%, 60%)
Values are rounded to whole channels; convert back with the same tool to avoid drift.
HEX to HSL reference table
Common values converted with the same formula.
| Input (HEX) | Result (HSL) | |
|---|---|---|
#FF5733 | hsl(11, 100%, 60%) | |
#4F46E5 | hsl(243, 75%, 59%) | |
#2ECC71 | hsl(145, 63%, 49%) | |
#3498DB | hsl(204, 70%, 53%) | |
#E74C3C | hsl(6, 78%, 57%) | |
#19AE99 | hsl(172, 75%, 39%) | |
#9B59B6 | hsl(283, 39%, 53%) | |
#F39C12 | hsl(37, 90%, 51%) | |
#34495E | hsl(210, 29%, 29%) | |
#E91F63 | hsl(340, 82%, 52%) | |
#000000 | hsl(0, 0%, 0%) | |
#FFFFFF | hsl(0, 0%, 100%) |