Developer / BROWSER-LOCAL

HEX / RGB / HSL Converter

Convert opaque sRGB colors between HEX, RGB and HSL.

Processed on your device
Maximum 200,000 characters. Input is not stored.

Ready. Use Ctrl/⌘ + Enter to run.

Completed and failed run counts are stored only on this device.

How to use this tool

Enter #RGB, #RRGGBB, rgb(r, g, b) or hsl(h, s%, l%). Run to receive all three formats.

Supported input and limits

RGB uses integer channels 0–255; saturation/lightness 0–100%. Alpha, CSS names and wide-gamut color spaces are unsupported. HSL rounds to two decimals.

Frequently asked questions

Are conversions exact?

HEX and integer RGB are exact; HSL is rounded and converting it back can differ by one channel.

Is my input uploaded?

No. Processing happens in a disposable worker on your device. Only local success/failure counts are saved; input is never stored.

Related tools