About this tool: HEX RGB HSL Converter
Convert opaque colors between HEX, RGB and HSL and inspect a large color swatch.
Accepted formats are #RGB, #RRGGBB, rgb(r, g, b) with integer channels 0–255, and hsl(h, s%, l%). Hue wraps around 360 degrees. HSL input is converted to 8-bit RGB, so round trips may change fractional HSL values slightly. Alpha channels are not supported.
Worked example
| HEX / RGB / HSL | #3498db |
HEX: #3498DB; RGB: rgb(52, 152, 219)
Questions and answers
What does this tool do?
Convert opaque colors between HEX, RGB and HSL and inspect a large color swatch. Accepted formats are #RGB, #RRGGBB, rgb(r, g, b) with integer channels 0–255, and hsl(h, s%, l%). Hue wraps around 360 degrees. HSL input is converted to 8-bit RGB, so round trips may change fractional HSL values slightly. Alpha channels are not supported.
What affects precision and input format?
Accepted formats are #RGB, #RRGGBB, rgb(r, g, b) with integer channels 0–255, and hsl(h, s%, l%).
Where are the calculations performed?
The calculation runs in your browser. You can use the tool without installing software.
Comments (0)
Share your thoughts — please be polite and stay on topic.
Log in to comment