Color Converter

Convert any colour between HEX, RGB, HSL, HSV and CMYK in one place, with a picker, alpha support and copy-ready CSS values for every format.

Design & CSS Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Type or paste a colour in any supported format, or use the colour picker.
  2. Read the same colour in HEX, RGB, HSL, HSV and CMYK below the preview.
  3. Click Copy next to the format you need. The text is ready to paste into CSS.
  4. Pick one of the sample swatches to see how a typical colour converts.

Example

Input: #3b82f6

Output: rgb(59, 130, 246) · hsl(217.2, 91.2%, 59.8%) · cmyk(76%, 47.2%, 0%, 3.5%)

How it works

The input is parsed into red, green, blue and alpha values, then each output format is computed from those with the standard sRGB conversion formulas.

HSL: L = (max + min) ÷ 2, S = Δ ÷ (1 − |2L − 1|), H from the dominant channel. HSV: V = max, S = Δ ÷ max. CMYK: K = 1 − max(R,G,B), C = (1 − R − K) ÷ (1 − K), and likewise for M and Y.

Limits and edge cases

  • Conversions use the standard sRGB formulas; no ICC colour profiles are applied.
  • CMYK is the simple screen formula, not a press-ready separation. Print shops will use their own profile.
  • Only a short list of common colour names is understood, not the full CSS keyword set.
  • HSL and HSV values are rounded to one decimal place, so converting back can differ by one RGB step.
  • HEX accepts 3, 4, 6 and 8 digits, with or without the leading #; the last pair is alpha.
  • Percent values and the modern space-separated syntax (rgb(59 130 246 / 50%)) are understood.
  • Pure black converts to CMYK 0, 0, 0, 100 instead of dividing by zero.

Privacy

Colours are converted locally in your browser. Nothing you type or pick is sent to a server or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Color Converter

All guides →

Related tools

FAQ

Questions about Color Converter

Which colour formats can I paste in?

HEX with 3, 4, 6 or 8 digits, rgb() and rgba(), hsl() and hsla(), hsv(), cmyk() and a short list of common names such as tomato or navy. Commas or spaces both work, and percentages are accepted. If the text cannot be read, the tool says so and shows an example of a valid format.

Why does converting back give a slightly different colour?

Hue, saturation and lightness are shown to one decimal place, while RGB uses whole numbers from 0 to 255. Rounding at either end can move a colour by one step in a channel. The HEX value is exact, so keep HEX as the source of truth if you need a precise match.

Is the CMYK result suitable for printing?

Not on its own. It uses the simple arithmetic formula that screen tools use, with no ink profile or gamut mapping, so a printer may produce a duller colour. It is fine for a first approximation; ask your print shop for their colour profile before final artwork.

Does it support transparency?

Yes. 8-digit HEX, rgba() and hsla() carry an alpha value, shown over a chequerboard in the preview. The HEX output gains two extra digits when alpha is below 1. HSV and CMYK have no alpha channel in their usual syntax, so they describe the opaque colour only.