CMYK to RGB converter

Enter the cyan, magenta, yellow and black percentages and get RGB values for CSS, code and screen design tools.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter cyan (c), magenta (m), yellow (y) and black (k).
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

With the percentages as fractions: R = 255 × (1 - C) × (1 - K), G = 255 × (1 - M) × (1 - K), B = 255 × (1 - Y) × (1 - K). Then: The channels are rounded to whole numbers from 0 to 255.

Example

Inputs: Cyan (C) = 60 %, Magenta (M) = 20 %, Yellow (Y) = 0 %, Black (K) = 20 %. Result: RGB code: rgb(82, 163, 204); Red (R): 82; Green (G): 163.

Limits and caveats

  • CMYK uses the naive device-independent formula with no ICC profile, so it will not match a specific press, paper or ink.
  • RGB channels are rounded to whole numbers, so nearby inputs can give the same result.
  • All values are treated as sRGB, the default web color space, not Display P3 or Adobe RGB.

Questions about this tool

What does K do in the conversion to RGB?

K acts as an overall darkener: every channel is multiplied by (1 minus K), so K = 100% gives black whatever the other values are.

In what form do I enter CMYK values?

Enter each channel as a percentage from 0 to 100, as design apps show it, not as a fraction from 0 to 1.

Why are the RGB values whole numbers?

Each channel of a standard 8-bit screen color has 256 levels, 0 to 255, so the result is rounded to the nearest whole number.