AnsRioSmart tools. Clear answers.
Home / Web & design / HEX to RGB and HSL
Web & design

HEX to RGB and HSL

HEX to RGB and HSL: Parse sRGB hexadecimal channels; convert normalized RGB to cylindrical HSL

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Convert color.

QUICK ANSWER

rgb(37, 99, 235) · hsl(221.2 83.2% 53.3%)

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

Parse sRGB hexadecimal channels; convert normalized RGB to cylindrical HSL

Input definitions

HEX color
Enter the value in the labeled unit.

A worked example

HEX color
#2563eb
rgb(37, 99, 235) · hsl(221.2 83.2% 53.3%)

Assumptions & limits

Uses the stated input units. Results are rounded for display; keep additional precision for subsequent calculations.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-10-17. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

Does generated CSS or a color result guarantee an accessible design?

No. Test the result in its real layout, including text contrast, browser zoom, focus and responsive behavior. A code generator only covers its documented property or color operation.

How does the HEX to RGB and HSL tool work?

Parse sRGB hexadecimal channels; convert normalized RGB to cylindrical HSL.

What are the assumptions and limits of HEX to RGB and HSL?

Uses the stated input units. Results are rounded for display; keep additional precision for subsequent calculations.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work