HEX to HSL
Turn a hex colour into hsl() for easier tweaking.
0 characters
Output
or press ⌘/Ctrl + EnterYour result appears here.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
How to use it
- Paste a colour in any form: #1e90ff, rgb(30, 144, 255), hsl(210, 100%, 56%) or a name like dodgerblue.
- Run it to see the same colour in HEX, RGB, HSL, HSB and CMYK.
- 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%).
Related tools
- Image Color PickerClick any pixel of an image to get its HEX, RGB and HSL colour, plus the main palette.
- Security Headers AnalyzerPaste a site’s response headers to grade HSTS, CSP, clickjacking protection and more.
- security.txt Generator & ValidatorCreate a valid security.txt for your site, or check an existing one against RFC 9116.
- Base64 DecodeTurn Base64 back into text, images or files, right in your browser.
- Base64 EncodeTurn text or any file into Base64, right in your browser.
- BIMI CheckerCheck whether your brand logo can show next to your emails: BIMI record, logo, certificate and DMARC.