Skip to content
Tool Dock

HEX to HSL

Turn a hex colour into hsl() for easier tweaking.

0 characters

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste a colour in any form: #1e90ff, rgb(30, 144, 255), hsl(210, 100%, 56%) or a name like dodgerblue.
  2. Run it to see the same colour in HEX, RGB, HSL, HSB and CMYK.
  3. Copy the format you need and check the contrast ratios before using it for text.

Why Tool Dock

  • FastEverything runs on your own device, so there is no queue and no waiting for uploads.
  • PrivateYour files and text never leave the browser. Close the tab and they are gone.
  • Batch friendlyDrop several files at once and download each result, or all of them together.

Questions

Why use HSL instead of hex?

HSL separates hue from lightness, so you can make a colour lighter or darker by changing one number, which is ideal for hover states and themes.

Is HSL supported in CSS?

Yes, in every browser, including the modern space-separated form hsl(210 100% 56%).

All tools