{# Als einziges Symbol OHNE fill-Attribut: Der Stern zeigt seinen Zustand ueber die Flaeche (.sts-star[aria-pressed="true"] svg { fill: currentColor }). Ein fill am symbol waere ein Praesentationsattribut und schluege die geerbte CSS-Angabe - der gemerkte Stern bliebe dann eine Kontur. #} {# Bedienungssymbole des Notizblocks. Quelle: Lucide (ISC-Lizenz), wie in der Design-Uebergabe "Alltagswerkzeuge v2". Geometrisch statt handgezeichnet: sie stehen in Leisten neben Text, nicht als Kategoriezeichen. #}
Small Things Sorted

RGB vs CMYK (and HEX): what colour codes mean and when to use which

RGB and HEX describe colours made of light, the way screens show them. HEX is just a shorter way to write the same three values. CMYK describes printing inks. For websites and apps, use HEX or RGB; for print, use CMYK, converted with your printer’s colour profile.

Colour and design Updated: 4 min read

Convert colour codes right here

Enter a colour in the colour picker below in any of the formats, and it shows the others straight away. The CMYK values are a calculated approximation without a colour profile. Why that is not enough for print is explained further down.

Design & Colour Colour picker Open full size
Your colour set

Harmony

or press space – locked colours stay

RGB: colours made of light

A screen is made of tiny red, green and blue lights. RGB says how bright each one shines, from 0 (off) to 255 (full power). rgb(255, 255, 255) is white, rgb(0, 0, 0) black, rgb(255, 0, 0) pure red. Together, the three channels give a little over 16.7 million colours.

Because light adds up, every channel makes the colour brighter. That is why it is called additive colour mixing.

HEX: RGB in shorthand

A HEX code is the same RGB colour, written in base 16. After the hash sign, two characters each stand for red, green and blue, from 00 (0) to FF (255).

An example: #1E90FF is rgb(30, 144, 255). 1E means 1 × 16 + 14 = 30, 90 means 9 × 16 = 144, FF is 255.

  • Short form: #FFF stands for #FFFFFF; each character is doubled.
  • Eight digits: #1E90FF80 adds a value for opacity, here roughly half transparent.

HSL: hue, saturation, lightness

HSL describes the same colours the way people talk about them: hue in degrees on the colour wheel, saturation and lightness in per cent. #1E90FF in HSL is 210°, 100%, 56%.

That is handy when you need lighter or darker versions of a colour: change only the lightness and the hue stays. It is also the easiest way to find the complementary colour, see Complementary colours.

CMYK: colours for print

Printing uses four inks: Cyan, Magenta, Yellow and K for black (the key plate). The values say what percentage of the area each ink covers.

Inks absorb light: the more ink on the paper, the darker it gets. That is subtractive colour mixing, the opposite of a screen. Black is an ink of its own because the three coloured inks on top of each other only make a muddy dark brown, and text printed that way would be blurry.

Why print looks different from your screen

Glowing screen colours cannot be reached with ink. A vivid green or a bright blue always looks a little duller on paper. The range of printable colours is simply smaller.

On top of that, there is no single correct conversion. Paper, printing process and press decide which CMYK values match a colour best. These properties are stored in a colour profile (ICC profile). For coated paper in Europe, PSO Coated v3 is common, for example; uncoated paper has its own profiles.

By plain calculation, #1E90FF becomes roughly C 88, M 44, Y 0, K 0. The printer’s profile gives different values. So:

  • Ask your printer which profile they expect, and let your layout software convert with that profile.
  • For colours that matter, order a proof.
  • Treat a CMYK value from an online converter as a starting point, not as a print-ready specification.

Which colour code for what?

ForFormat
Website, app, email templateHEX, RGB or HSL
Word, PowerPoint, ExcelRGB, in current versions also HEX
Social media, on-screen slidesRGB (sRGB)
Flyer, business card, posterCMYK with your printer’s profile
Logo and brand coloursall of them, recorded in the brand guidelines

Some brands also define a spot colour from a colour guide for print. It cannot be derived from a HEX value; it only exists in the brand guidelines.

Frequently asked questions

Is HEX the same as RGB?

Yes, the same colour written differently. Converting loses nothing.

Can I convert RGB to CMYK exactly?

No. Without a colour profile every conversion is an approximation, and some screen colours do not exist in print at all.

What does #FFF mean?

The short form of #FFFFFF, which is white.

Where do I enter a HEX code in PowerPoint?

In the colour menu under More Colors, on the Custom tab. It has the RGB fields and, in current versions, a field for the HEX code.

Why does my photo look more colourful on my phone than on my laptop?

Many phones show a wider range of colours than older laptop screens. The code is the same; the display is not.

More in Colour and design

Normal text needs a contrast ratio of at least 4.5:1 against its background, large text and controls at least 3:1. That is what WCAG level AA requires, the benchmark for web accessibility. The colour picker calculates the ratio for any pair of colours.

Read it later?

Tap "Save" at the top. The guide then shows up in your saved guides.

Open saved guides