Color Converter

Free color converter. Convert colours between HEX, RGB, HSL and CMYK with a live preview swatch and one-click copy — instantly and privately in your browser.

✓ Free ⚡ Instant 🔒 100% private
#2563EB

🔒 All conversions happen in your browser — nothing is uploaded.

Advertisement

Free Color Converter (HEX, RGB, HSL)

This free online color converter turns any color into every common format at once. Type a HEX code like #2563eb, an rgb() or hsl() value, or pick a shade with the swatch picker — and instantly see the matching HEX, RGB, HSL and CMYK values, plus a large live preview. It’s perfect for developers, designers and anyone who needs to convert hex to rgb in a click. It’s free, instant and runs entirely in your browser.

How to use the color converter

  1. Enter a color in the box — HEX (#rgb or #rrggbb), rgb()/rgba() or hsl()/hsla().
  2. Or click the swatch picker next to the box to choose visually.
  3. The preview and all four format values update live as you type.
  4. Click Copy beside any value to copy that exact format.
  5. Use Random color for inspiration or Reset to start over.

HEX vs RGB vs HSL

HEX is a six-digit code like #2563eb that packs red, green and blue into pairs of hexadecimal digits. It is compact and is the most common way to write colors in HTML and CSS. RGB describes the same color as three numbers from 0 to 255 — one each for red, green and blue — so #2563eb becomes rgb(37, 99, 235). RGB is handy when you want to read or tweak a single channel, or add transparency with rgba().

HSL takes a different approach: hue (the color on a 0–360° wheel), saturation (how vivid it is) and lightness (how light or dark). HSL is the most intuitive for humans — to make a color lighter you simply raise the lightness, and to find a related shade you nudge the hue. Designers often pick a base hue in HSL, then export the final value as HEX. CMYK, shown here as a bonus, is used for print and describes color as percentages of cyan, magenta, yellow and black ink.

Frequently asked questions

How do I convert HEX to RGB?
Split the six-digit HEX code into three pairs and convert each pair from hexadecimal to a number from 0 to 255. For example #2563eb becomes rgb(37, 99, 235). This tool does it instantly — just paste the HEX code and read off the RGB value.
What color formats does this tool accept?
You can enter HEX (three or six digits, with or without the #), rgb() and rgba(), or hsl() and hsla(). You can also pick a color visually with the swatch picker. Every value is converted to HEX, RGB, HSL and CMYK at once.
Is this color converter free and private?
Yes. It is completely free with no sign-up, and every conversion happens in your browser with JavaScript. The colors you enter are never uploaded to any server.
What is the difference between RGB and HSL?
RGB describes a color as amounts of red, green and blue from 0 to 255, which matches how screens work. HSL describes the same color as hue, saturation and lightness, which is easier for humans to adjust when making a shade lighter, darker or more vivid.
Why does my color look slightly different in CMYK?
CMYK is a print model based on ink, while HEX, RGB and HSL describe light on a screen. The two ranges do not match perfectly, so the CMYK percentages here are a close mathematical approximation rather than an exact print match.
Advertisement