This color converter changes a colour code between HEX, RGB, HSL and CMYK. Type a value or choose a colour with the picker, and you get every other format at once, plus a row of lighter and darker shades. It is free and made for web designers, developers, students and anyone who has a colour in one format and needs it in another.
How to use the color converter
- Enter a colour. Type a code in any of the four formats, or click the colour picker and choose a shade by eye.
- Check the results. The HEX, RGB, HSL and CMYK values appear together, so you can compare them.
- Look at the shades. A row of lighter and darker versions of your colour appears below the result.
- Copy what you need. Copy any single format and paste it into your stylesheet, design file or document.

This tool pairs well with the Color Picker from Image. If you do this kind of job often, the CSS Gradient Generator and the CSS Box Shadow Generator can save you time too.
Nothing is uploaded. The conversion happens in your browser.
What do HEX, RGB, HSL and CMYK mean?
All four describe the same colour in different ways. Each one suits a different job.
| Format | What it looks like | Best for |
|---|---|---|
| HEX | #3366CC | Web pages, CSS, design tools |
| RGB | rgb(51, 102, 204) | Screens, code, adding transparency |
| HSL | hsl(220, 60%, 50%) | Adjusting brightness or saturation by hand |
| CMYK | about 75, 50, 0, 20 | Print, brochures, packaging |
HEX and RGB are two ways of writing the same red, green and blue mix. HSL describes hue, saturation and lightness, which is easier to reason about. CMYK uses ink: cyan, magenta, yellow and black.

What is a color converter good for?
- HEX to RGB for CSS. A brand guide gives you a HEX code, but you want rgb() so you can add transparency.
- RGB to HSL for tweaking. Changing the lightness number is much easier than guessing new red, green and blue values.
- HEX to CMYK for print. You have a web colour and need a starting point for a flyer or business card.
- Building a palette. The lighter and darker color shades give you quick options for hover states, borders and backgrounds.
- Matching a colour. Use the color picker when you only have a rough idea, then copy the exact code.
Example: one colour in four formats
Pure red is a good test. In HEX it is #FF0000. In RGB it is rgb(255, 0, 0). In HSL it is hsl(0, 100%, 50%). In CMYK it is 0, 100, 100, 0.
Now try a softer blue such as #3366CC. The same colour reads as rgb(51, 102, 204) and hsl(220, 60%, 50%). Raise the lightness in HSL and you get a paler blue without touching the hue.
Tips for better results
- Start with the format you already have. Paste it in as it is, then copy the one you need.
- Use HSL for variations. Keep the hue the same and change only lightness or saturation to stay on brand.
- Treat CMYK as a guide. Screens and printers produce colour differently, so a printed result can look duller than your monitor. Ask your printer for a proof if the colour matters.
- Copy exact values. Retyping a code by hand is where most mistakes happen.
- Check contrast. If you use a lighter or darker shade for text, view it against its background before you commit.
Common problems and how to fix them
My printed colour looks different from the screen
This is normal. A screen mixes light, while a printer mixes ink, and CMYK cannot match every bright screen colour. Use the CMYK value as a starting point and test a small print first.
The HEX code does not seem to work
Check for a missing character or a stray letter. A standard HEX code has a # followed by letters and numbers from 0 to 9 and A to F. Anything else is not a valid code.
Two tools give slightly different numbers
Small differences usually come from rounding. A value of 50% in one tool may show as 49.8% in another. The colours look the same to the eye.
Why use this tool instead of converting by hand?
You can work out HEX to RGB on paper, but it is slow and easy to get wrong. This page gives you all four formats and a set of shades in one step. It is also free, and your colour values stay in your browser.
