Skip to content
Web4tools

Color Converter

Convert any colour between HEX, RGB, HSL and CMYK.

Runs in your browserNo accountNo watermark

In short

To convert a colour, type it as HEX (#4f46e5), RGB (rgb(79, 70, 229)) or HSL (hsl(243, 75%, 59%)), or use the picker. You'll instantly get every other format (HEX, RGB, HSL, CMYK, a CSS variable and a Tailwind class), each with a copy button.

How to use the Color Converter

  1. 1Enter a colour in any supported format or pick one.
  2. 2Read the equivalent values in every format.
  3. 3Copy the one you need.

When to use each format

HEX is the most compact way to write colours in CSS and design tools. RGB maps directly to how screens mix light. HSL (hue, saturation, lightness) is easiest for humans to adjust. Change the lightness to get tints and shades of the same hue. CMYK is used for print; on-screen conversions are approximate because real ink depends on the printer's colour profile.

Frequently asked questions

How do I convert HEX to RGB?

Split the six digits into three pairs and convert each from hexadecimal: #4f46e5 → 4f = 79, 46 = 70, e5 = 229, so rgb(79, 70, 229). This tool does it for you instantly.

Is the CMYK value exact?

It's a standard mathematical conversion. Exact print colours depend on the paper, inks and colour profile, so check with your printer for critical work.

Is my text or data sent anywhere?

No. This tool runs entirely in your browser using JavaScript. Nothing you type is uploaded, stored or logged.

Last updated