ToolFlow
Home›Utility Tools›Color Converter

Color Converter

Use our free Color Converter tool to convert colors between hex, rgb, hsl. It runs in your browser — no installation, no registration, no hidden fees.

Frequently asked questions

Can I use QR codes commercially?+
Yes, generated QR codes are yours for any purpose.
Are passwords stored?+
No. Generated in your browser, never transmitted.

The Color Converter shows any colour in the three formats used on the web: HEX, RGB and HSL. Choose or enter a colour and the equivalent codes appear side by side, each with a Copy button, so you can paste the one your CSS, design tool or document needs.

It runs in your browser and nothing is uploaded.

How to convert a colour

  1. Click the colour input to open your browser’s colour picker
  2. Choose a colour, or type a HEX value if your browser’s picker allows it
  3. Read the HEX, RGB and HSL values below the preview
  4. Click Copy next to the one you need

How the conversion works

  • HEX is converted by reading its red, green and blue pairs as numbers from 0 to 255, which gives the RGB value.
  • HSL is calculated from those RGB numbers: hue in degrees from 0 to 360, saturation and lightness as percentages.
  • Values are rounded to whole numbers. For example, a colour may show as hsl(243, 75%, 59%) alongside #4F46E5 and rgb(79, 70, 229).

Which format should I use?

  • HEX is compact and universal in CSS and design software.
  • RGB suits code and graphics tools that work with channel values.
  • HSL is the easiest to adjust by hand: raise lightness for a lighter shade, lower saturation for a muted one, or shift hue to move around the colour wheel.

Limits

  • The converter works with solid colours. Transparency (alpha) and newer colour spaces are not included.
  • The three code boxes are read-only. Enter your starting colour through the picker.
Tip: keep a copy of the HEX code for your brand colours. It is the format other people and tools are most likely to accept.

Related tools

Frequently asked questions

What formats does it convert between?
HEX, RGB and HSL.
Does it support RGBA or transparency?
No. It converts solid colours only.
Are the HSL values exact?
They are rounded to whole numbers, so tiny differences can appear when converting back and forth.
Can I type an RGB value to convert it?
The code boxes are outputs. Choose your colour with the picker (many browsers let you type values in its dialog) and read the others.
Is my data uploaded?
No. The conversion runs in your browser.

Related tools

Why ToolFlow?

100% free, no hidden costs
No account or login required
Works on any device
Fast results in seconds