~/lokafile / developer / hex-to-rgb

Color Converter

Convert a color between HEX, RGB and HSL. Type any format or use the picker — the others update instantly.

Edit HEX or RGB and press Enter.

How to use it

  1. Pick a color with the swatch, or type a HEX or RGB value.
  2. All three formats update in sync.
  3. Copy whichever format your tool needs.

HEX, RGB and HSL explained

HEX (#5850ec) is the compact form used in CSS and design tools. RGB lists red, green and blue from 0–255. HSL describes hue, saturation and lightness — easiest for adjusting a color by hand.

Questions people ask

Is my file uploaded to a server?

No. Every other online converter uploads your file to a server. Lokafile never uploads anything — the work happens in your browser, so your file physically never leaves your device.

Do I need to sign up or pay?

No account, no payment, no watermark, no CAPTCHA before download. Free.

Does it work offline?

Yes — once loaded, you can disconnect and it still works. You can even install Lokafile as an app.

Is there a file size limit?

No artificial cap. The only limit is your device’s memory.

Can I use these codes in CSS?

Yes. HEX, rgb(…) and hsl(…) all work directly as CSS color values.

What’s HSL useful for?

HSL separates hue from lightness, so nudging a color lighter, darker or more muted is a one-number change.

More tools