🎨
Runs in your browserNothing is uploadedDesign & Color

Color Converter

Paste any CSS colour and get it as HEX, RGB, HSL, HSV, HWB, CMYK and OKLCH, plus the nearest CSS colour name.

Loading tool…
Short answer

Color Converter reads any CSS colour, from a hex code, rgb(), hsl(), hwb() or oklch() value to a name such as teal, and shows it as HEX, RGB, HSL, HSV, HWB, CMYK and OKLCH, plus the nearest CSS colour name. It runs in your browser.

What are the common colour formats?

HEX and RGB

Both describe a colour as amounts of red, green and blue from 0 to 255. HEX writes them as three pairs of base-16 digits, so rgb(255, 99, 71) is #ff6347.

HSL, HSV and HWB

These describe the same colours by hue (an angle on the colour wheel) plus how saturated, light or mixed with white and black it is. They are easier to adjust by hand than RGB.

OKLCH and CMYK

OKLCH is a newer CSS format where equal steps in lightness look equal to the eye. CMYK is the ink mix used in print; here it comes from a plain formula with no printer profile, so it is a starting point, not a proof.

Why use Color Converter?

  • Paste anything. Copy a colour from a design file, a stylesheet or a brand guide in whatever format it uses and get every other format at once.
  • Name a colour. The nearest CSS name is measured in OKLab, so the suggestion matches what you see rather than raw RGB distance.
  • Copy one value. Every row has its own Copy button, so you take exactly the format your code or tool needs.

How to use Color Converter, step by step

Color Converter in PrintxPDF with a file loaded, options on the right and the run button below
Color Converter with a file loaded: the steps below follow this screen.
  1. Type or paste a colour into Color Converter. Hex with or without #, rgb(), rgba(), hsl(), hwb(), oklch() or one of the 148 CSS names all work.
  2. Read the formats. The results update as you type, with the hex code shown large at the top.
  3. Copy the one you need. Press Copy next to any row to put that value on your clipboard.

Frequently asked questions

Is the CMYK value ready for print?

No. It uses the simple RGB to CMYK formula without an ink or paper profile, so real print colours will differ. Ask your printer for a proof or convert with their profile.

Does it keep transparency?

Yes. A colour with alpha, such as #ff634780 or rgba(255, 99, 71, 0.5), keeps it in the HEX, RGB, HSL and OKLCH rows.

Why is the nearest name not an exact match?

Only 148 colours have CSS names. When yours is not one of them, the tool shows the closest one and its hex code so you can judge the difference.

Looking for the long version? The guides cover each of these jobs in depth.