Color

Color Converter

Convert colors between HEX, RGB, HSL and CMYK instantly, and copy any format with a single click.

Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.

Edit any field (press Enter or click away) and the other formats update instantly. Alpha is not included.

How to use this color converter

  • Type a value into any field — HEX, RGB, HSL or CMYK.
  • The other formats update instantly as you type.
  • Copy any representation with a single click.
  • Conversion is plain arithmetic, done locally in your browser.

Reading a colour in each model

The same colour, described four ways. Most of the work in a converter is translating between these four mental models.

ModelComponentsRangeTypical use
HEXRed, green, blue00 to FF eachCSS, design tools, brand guides
RGBRed, green, blue0 to 255 eachScreens, canvas, image data
HSLHue, saturation, lightness0-360, 0-100%, 0-100%Choosing and tweaking colours
CMYKCyan, magenta, yellow, black0 to 100% eachPrinting and ink

What the four color models mean

  • HEX — hexadecimal notation for RGB, used throughout CSS and design tools.
  • RGB — red, green and blue channels from 0 to 255, how screens emit light.
  • HSL — hue, saturation and lightness, which matches how people describe colour.
  • CMYK — cyan, magenta, yellow and black, the inks a printer mixes.

Screen and print do not match

Screens are additive: they start black and add light. Printers are subtractive: they start white and add ink.

There is no exact conversion between RGB and CMYK, because the colour ranges differ. Treat the CMYK value here as a starting point and always proof a print job physically.

Why designers reach for HSL

Ask for a lighter shade and you want to change one thing. In HSL that is a single number: raise the lightness.

In RGB the same edit means adjusting three channels and guessing. For building a palette or a theme, HSL is usually the better working space.

Frequently asked questions

Which color formats are supported?

HEX, RGB, HSL and CMYK. Editing any field updates the others instantly.

Does it support transparency?

This converter works with solid colors only; the alpha channel is not included.

Is it accurate?

Conversions follow the standard color formulas, with rounding to whole RGB, HSL and CMYK values.

Why does my colour look different when printed?

Screens mix light and printers mix ink, so the two cannot represent the same range of colours. Some vivid screen colours have no ink equivalent at all.

Does the converter handle transparency?

No, it works with solid colours only. For transparency you want an 8-digit HEX value such as #RRGGBBAA, which every current browser supports.

How do I make a colour darker without changing its hue?

Lower the lightness in HSL. Adjusting the RGB channels one at a time shifts the hue as a side effect, which is usually not what you want.

More Color tools