Please enable JavaScript to use CodeHS

Color & Design

Color Mode Converter

Screens mix red, green, and blue light to make colors. Printers use cyan, magenta, yellow, and black ink. Use the sliders to convert a color between the two systems.

Design ~8 min Middle / High school
The Big Idea

RGB and CMYK

There is more than one way to describe a color. The two most common systems are built for different kinds of output.

  • RGB (red, green, blue) is additive. When you add more light, the color gets brighter. Screens use RGB because they emit light. Combining full red, green, and blue makes white.
  • CMYK (cyan, magenta, yellow, black) is subtractive. When you add more ink, the color gets darker. Printers use CMYK because ink absorbs light. Combining full cyan, magenta, and yellow makes a dark brown, so black ink is added for deep shadows.

Simple definition: RGB is for screens and adds light. CMYK is for print and adds ink.


Interactive

Try it: Color Mode Converter

Below is the same kind of tool that powers the CodeHS Color Mode Converter PowerUp. Drag the RGB sliders or the CMYK sliders and watch the preview, hex value, and the other set of sliders update together.

Color Mode Converter

#000000

RGB

HEX: #000000

CMYK


Real World

Screens vs print

Not every color that a screen can show can be printed with ink. The range of colors a device can reproduce is called its gamut. RGB screens can usually show brighter and more saturated colors than CMYK printers can produce.

That is why designers often work in RGB while designing for the web, then convert to CMYK before sending a file to a printer. Conversions can be lossy, so professionals use color profiles to keep colors as close as possible.


Check Yourself

Quick quiz

1. Which color mode is used for screens?

2. What happens when you add more light in RGB?

3. Why do printers add black (K) ink?

Keep exploring color and design

Color modes are just one part of digital design. You can learn about color contrast, accessibility, color palettes, and how CSS uses color values on the web.

Part of the Color & Design tutorial series.