MediaKitLogo
All articles
Brand colors

Brand Color Codes: HEX, RGB, CMYK and Spot Colors

· · Creators Team Inc.
In short

Write a brand color differently for each medium: HEX or RGB for screens (web, slides), CMYK for print, and a DIC or PANTONE spot color number where print must not drift. RGB-to-CMYK conversion has no single result (it depends on the paper and printing conditions), and vivid colors come out duller in print, so decide both from the start and write them together. If a color will be used for text, check that its contrast ratio against the background is at least 4.5 : 1 (WCAG 2.x AA, normal-size text).

Contents8
  1. Which code for which medium
  2. HEX vs. RGB
  3. CMYK and its limits
  4. Spot colors (DIC, PANTONE)
  5. How to write them down
  6. Can it be a text color?
  7. Common mistakes
  8. Frequently asked questions

Brand colors often get written down as one value, like #1E6FEB. That value only describes the color on a screen. Print needs its own values, and when the color can’t be allowed to drift, you specify it by swatch number.

The table below shows which notation to use for each medium. The sections after it explain how HEX, RGB, CMYK and spot colors (DIC, PANTONE) differ, how to record colors in your guidelines, and how to check whether a color works as a text color.

How should a brand color be written for each medium?

Which brand color notation to use for each medium
MediumNotationExample
Websites and appsHEX (or RGB)#1E6FEB
Slides and WordRGB30, 111, 235
Offset print (business cards, flyers, brochures)CMYKC87 M53 Y0 K8 (rough, from a formula)
Print where the color must not drift, plus fluorescents, gold and silverSpot color (DIC or PANTONE number)A swatch number
Signs, paint and molded partsA swatch numberDIC, PANTONE, paint standards

What is the difference between HEX and RGB?

They’re two notations for the same color. A screen makes color by mixing red, green and blue light at different intensities. RGB writes each intensity as a number from 0 to 255, in red, green, blue order. HEX writes the same three numbers in base 16, two digits each, run together after a #.

In #DFF000, for example, red is DF (223), green is F0 (240) and blue is 00 (0), so the RGB value is rgb(223, 240, 0).

  • When each channel’s two digits match (FF, CC, 00 and so on), you can shorten the value to three digits: #FC0 is the same as #FFCC00.
  • Case doesn’t matter. Pick upper or lower case for your guidelines and use it throughout.
  • Web color is defined in the sRGB color space, and both HEX and RGB describe screen colors within it.

Which one you use depends on the tool. Web work usually takes HEX; slide software and design tools often ask for RGB, and many tools have fields for both. You get the same color either way.

What is CMYK, and why can’t RGB be converted to it exactly?

CMYK describes a color as percentages of four inks: cyan, magenta, yellow and black. A screen adds light to make color. Print works the other way round: ink goes on paper, and the color you see is the light the paper reflects.

As a result, screens and print can reproduce different ranges of color (different gamuts). A vivid yellow-green or blue on screen may be out of reach for CMYK and print duller. Paper (coated or matte) and printing conditions also affect the result. Commercial printers in Japan widely use Japan Color profiles.

CMYK values from a formula are only a rough guide

There is a mechanical way to get CMYK from RGB: K = 1 − max(R, G, B) ÷ 255, C = (1 − R÷255 − K) ÷ (1 − K), with M and Y worked out the same way as C. For Acme’s main color, rgb(30, 111, 235), that gives C87 M53 Y0 K8.

The formula doesn’t account for gamut or paper, and the values that actually go to press are adjusted for the printer’s conditions. So don’t rely on conversion: decide RGB and CMYK separately from the start and record both.

When should you use a spot color (DIC or PANTONE)?

A spot color is an ink mixed in advance and printed as a single color. CMYK builds a color from four inks; with a spot color, the same number means the same ink, so the color drifts far less. Paper and ink thickness still affect how it looks.

  • DIC: numbers from DIC Corporation’s DIC Color Guide, widely used in Japanese printing.
  • PANTONE: swatch numbers from Pantone, a US company, often specified for international work. Each number has a paper suffix (C for coated, U for uncoated), so write it in full, for example “PANTONE 286 C”.

Reach for a spot color in these cases:

  • A corporate color that has to stay tightly consistent
  • Fluorescents, gold or silver, which CMYK can’t produce
  • A vivid color that CMYK would dull

Each spot color adds a printing plate, which costs more. Short runs such as business cards are often printed in CMYK as an approximation, so list both the spot color number and its nearest CMYK values in your guidelines. Then either kind of job is covered.

How should colors be written in the guidelines?

An example brand color table (the fictional brand “Acme”)
Name and roleHEXRGBCMYK (rough)
Acme Blue (main)#1E6FEB30, 111, 235C87 M53 Y0 K8

In real guidelines, the CMYK column holds the values agreed with the printer. The figure here is the rough formula value.

  • Name each color so people can refer to it easily when sharing.
  • State its role: main, secondary, background or text.
  • Use one format throughout. HEX in upper case with a #, RGB as comma-separated numbers from 0 to 255, CMYK as percentages.
  • Keep screen and print values apart. For screens, HEX and RGB (sRGB). For print, CMYK, plus a spot color number if you use one.

How MediaKit™ handles colors

MediaKit™’s color section shows each color’s name with its HEX and RGB values for screens, and clicking a value copies it to the clipboard. If you want to publish CMYK or spot color numbers as well, add them as text in your guidelines overview. The upload guide walks through the steps.

Can a brand color be used as a text color?

Text readability is measured by the contrast ratio between the text and its background. WCAG 2.x, the international web accessibility standard, requires at level AA a ratio of 4.5 : 1 or more for normal-size text and 3 : 1 for large text (about 24px and up, or about 19px and up in bold).

The ratio is calculated from each color’s relative luminance: (lighter luminance + 0.05) ÷ (darker luminance + 0.05). A contrast checker does the math for you from two colors, so there’s no need to memorize it.

Calculated contrast ratios (WCAG 2.x AA requires 4.5 : 1 or more for normal text)
Text colorBackgroundRatioNormal text (AA)
#DFF000White #FFFFFF1.26 : 1Fails
#DFF000Black #00000016.6 : 1Passes
#1E6FEB (Acme Blue)White #FFFFFF4.64 : 1Passes (barely)

#DFF000 is one of the brand colors registered in Creators Team Inc.’s kit. As text on white it fails, so use it on black or as a background color. If your guidelines say for each color which backgrounds it can sit on as text, you avoid low-contrast mistakes.

WCAG has no contrast requirement for text that is part of a logo (a logotype). This section is about brand colors used for ordinary text, not about the logo itself.

Common mistakes and how to fix them

Don’t

Give the printer only a HEX value and get a duller color back.

Specify a color only by a name like “corporate blue”.

Expect the printed color to match what the screen showed.

Do

Give CMYK too, plus a spot color number if drift matters.

List each color’s name together with its HEX, RGB and CMYK values.

Check print color against a swatch or proof, since monitor settings also change how a color looks.

  • Each color has a name, role, HEX, RGB and CMYK
  • CMYK was checked against the printer’s conditions, not left as a formula value
  • Colors that must not drift carry a spot color number
  • Each color states which backgrounds text may sit on
  • One format throughout (the #, upper case, units)

For the overall structure of brand guidelines, see How to Write Brand Guidelines: Six Essentials. For choosing logo file formats, see Logo File Formats: SVG, PNG, PDF and AI.

Frequently asked questions

What is the difference between HEX and RGB?

They are two ways of writing the same screen color. RGB gives the red, green and blue intensities as numbers from 0 to 255; HEX writes the same three numbers as two hexadecimal digits each, prefixed with #, so #DFF000 is rgb(223, 240, 0).

Can RGB be converted to CMYK?

A formula will produce CMYK values, but it ignores gamut and paper, so the result is only an approximation. Set the print values with your printer’s conditions and list RGB and CMYK side by side in the guidelines.

When should I use DIC or PANTONE?

DIC is the color guide most used in Japanese printing; PANTONE is the one usually specified internationally. PANTONE colors look different on coated (C) and uncoated (U) paper, so write the number for the paper, as in “PANTONE 286 C”.

How do I know if a brand color works for text?

Check its contrast ratio against the background. WCAG 2.x level AA requires at least 4.5 : 1 for normal-size text and 3 : 1 for large text; any contrast checker will compute it from the two colors.

Give your logo one official home

MediaKit™ publishes your logos, brand colors and usage rules as one page anyone can download from, free of charge.

More articles

  • Logo rules6 min read

    How to Set Logo Clear Space and Minimum Size

    How to decide a logo’s clear space and minimum size and write them down: choosing the unit, measuring at real size, setting screen px and print mm separately, and wording people will follow. Written for whoever publishes the logo.

  • Brand operations7 min read

    How to Write Brand Guidelines: Six Essentials

    The six items brand guidelines actually need, an outline you can copy, and how to specify colors, typefaces and naming, written for teams without a dedicated designer.

  • File formats8 min read

    Logo File Formats: SVG, PNG, PDF and AI

    SVG, PNG, JPEG, WebP, PDF, AI and EPS compared in a table: which to use on the web, in slides and in print, why SVG text breaks, and which formats to supply when you publish a logo.