IT Market
Tools/Design/Colors/HSL to HEX Converter Online for Designers
HSL → HEX

Конвертер цветов из HSL в HEX

Tool guide

HSL to HEX Converter Online for Designers

This is the reverse job: a palette is easiest to build in HSL, stepping around the wheel and adjusting lightness, yet HEX is still what email templates, older CMS themes, colour pickers and brand books ask for. Set hue, saturation and lightness in three fields and get a code such as #1F8FFF. Fractions round to the nearest byte, so two neighbouring shades can collapse into one code. It all runs in the browser. See also: break a HEX code into hue, saturation and lightness, the same HSL coordinates written as RGB, dial in a shade on the palette by hand.

How to use it

  1. Set the hue in «H (0-360)»: 0 red, 60 yellow, 120 green, 210 blue, 300 magenta.
  2. Set saturation in «S (0-100%)»: 100 is the pure colour, 0 is grey of the same lightness.
  3. Set lightness in «L (0-100%)»: 50 gives the open shade, below 25 is dark, above 80 is close to pastel.
  4. Press «Convert» and check the swatch against what you expected.
  5. Press «Copy» and paste the code into your layout, email template or theme settings.

FAQ

Why does hue stop mattering when saturation is zero?

Zero saturation means there is no colour component left, only lightness, so all three RGB channels take the same value. H 0 and H 340 both give #333333 at S 0 and L 20. If you want a warm or cool grey, raise saturation to at least 5-8 percent.

What do I enter if my hue is written as 210deg?

Just the number. A number field will not accept the CSS unit, so drop deg and type 210. Values above 360 should be wrapped by hand as well: 400 degrees is the same as 40.

Will the result match Figma or Photoshop?

Usually, to within one step per channel. Differences appear when the editor is showing HSB rather than HSL — they are different models and the same numbers mean different colours. In HSB, brightness 100 is the pure hue; in HSL, lightness 100 is always white.

How do I turn one hue into a full interface palette?

Hold H and S steady and walk the lightness in steps of roughly ten percent: 95 for backgrounds, 60 for the main element, 45 for hover, 30 for pressed. Convert each step separately and store the codes as CSS custom properties so the scale stays consistent.

Can I get a colour with transparency here?

No, the output is six characters with no alpha channel. Add transparency where you use it: in CSS append two more hex digits, for example #1F8FFF80 for half opacity, which every current browser understands.

Are my values remembered between visits?

No. The fields reload with their defaults every time and the maths runs in the page script without contacting a server. If you are assembling a long palette, write each code into a file right after copying — the tool will not keep them.

Examples

Accent blue for an email template
Before: H = 210, S = 100%, L = 56%
After: #1F8FFF — ready to drop into a bgcolor attribute
Neutral dark grey body text
Before: H = 0, S = 0%, L = 20%
After: #333333