Color code generator

Convert any colour to HEX, RGB, HSL, HSV and CMYK.

Processed on your device

Loading the tool…

How to use Color code generator

  1. 1

    Pick a colour, type one in any format, or select “Random colour”.

  2. 2

    See it as HEX, RGB, HSL, HSV and CMYK, with contrast for white and black text.

  3. 3

    Copy the code you need, or select a tint or shade to use it instead.

Questions and answers

Which colour formats can I type?

HEX (#3B5BDB or #35D), rgb(), hsl(), hsv() and cmyk(), with or without commas. You can also pick a colour or press “Random colour”.

Are the CMYK values ready for print?

They are a simple conversion, good for a first idea. Printers use colour profiles, so ask your print shop for exact values.

What do AA and AAA mean?

They are the WCAG contrast levels for readable text: AA needs a ratio of at least 4.5:1 and AAA at least 7:1. “AA large” is enough only for big, bold text.