The RGB to CMYK formula scales red, green, and blue to 0–1, sets K to 1 minus the largest normalized RGB channel, and calculates C, M, and Y from the color remaining after that black component. This standard naive conversion turns channel values into percentages without applying an ICC source or destination profile. For an RGB input, divide each channel by 255. The largest normalized channel is subtracted from 1 to obtain K, and the remaining red, green, and blue proportions become cyan, magenta, and yellow. If the input is pure black, K is 100% and C, M, and Y are 0%. Multiplying all four results by 100 produces the percentages used in a CMYK value. This calculation is useful for learning, checking a value, or creating a quick starting point for print. It is not a promise that a monitor color will appear identically on paper: RGB models additive light, CMYK models inks that subtract light, and some vivid screen colors can only be approximated in print. For a practical conversion, the RGB to CMYK Converter accepts RGB channels from 0–255 or CMYK percentages from 0–100, shows CMYK, RGB, and HEX values with a live swatch, and provides Copy controls. It also converts CMYK back to RGB, clamps out-of-range inputs rather than producing a broken result, and runs entirely in the browser. Use the formula when you want to understand or reproduce the arithmetic; use the converter when you want the values entered and copied without doing the algebra by hand.

The formula from normalized RGB to CMYK
Write the original red, green, and blue inputs as R, G, and B. The formula first converts them into lowercase normalized values, then separates the shared black component before calculating the colored inks.
- Normalize the channels: r = R ÷ 255, g = G ÷ 255, and b = B ÷ 255.
- Calculate black: K = 1 − max(r, g, b).
- Handle pure black: If K equals 1, set C = M = Y = 0.
- Calculate colored inks for every other color: C = (1 − r − K) ÷ (1 − K), M = (1 − g − K) ÷ (1 − K), and Y = (1 − b − K) ÷ (1 − K).
- Format the result: Multiply C, M, Y, and K by 100 to express them as percentages.
The special pure-black rule matters because the other equations divide by 1 − K, which becomes zero for RGB (0, 0, 0). For normal work, use RGB channels within 0–255. The browser converter also accepts out-of-range values by clamping them, but staying inside the stated ranges makes the intended color easier to verify.
Convert CMYK back to RGB
When starting with CMYK percentages, normalize C, M, Y, and K by dividing each by 100. The inverse equations are R = 255 × (1 − C ÷ 100) × (1 − K ÷ 100), G = 255 × (1 − M ÷ 100) × (1 − K ÷ 100), and B = 255 × (1 − Y ÷ 100) × (1 − K ÷ 100). The shared black term reduces all three output channels. This is the mathematical direction used when you enter CMYK into the converter to obtain an approximate RGB display value.
Convert an RGB color in three browser steps
- Enter the source values. Type the red, green, and blue channel values, using 0–255 for each channel. The equivalent C, M, Y, and K percentages appear as percentages from 0–100. If you are starting with a print specification instead, enter its four CMYK percentages to calculate the matching RGB.
- Review every readout. Check the CMYK, RGB, and HEX values, then inspect the live color swatch. The swatch helps confirm that the input represents the intended color; it is not a physical print proof.
- Copy the required format. Click Copy beside CMYK for a print-file starting value, or copy RGB or HEX when a digital design needs the screen color. Paste the selected value into the relevant application.
Everything runs locally in the browser, so no color is uploaded. The page also works offline after it has loaded. This makes the converter suitable for checking brand colors, logos, flyer elements, packaging references, and other design-to-print values without sending color data to a server.
Check one conversion by hand
Consider RGB (59, 130, 246). This example checks the formula from normalization through the final percentages.
- Normalize: r = 59 ÷ 255 ≈ 0.2314, g = 130 ÷ 255 ≈ 0.5098, and b = 246 ÷ 255 ≈ 0.9647.
- Find K: The largest channel is b, so K = 1 − 0.9647 ≈ 0.0353.
- Calculate CMY: C = (1 − 0.2314 − 0.0353) ÷ 0.9647 ≈ 0.7602; M = (1 − 0.5098 − 0.0353) ÷ 0.9647 ≈ 0.4715; Y = (1 − 0.9647 − 0.0353) ÷ 0.9647 = 0.
- Convert to percentages: The result is approximately C 76.02%, M 47.15%, Y 0%, and K 3.53%, or C 76%, M 47%, Y 0%, and K 4% when rounded to whole percentages.
This is a naive mathematical CMYK value, not a prediction of the exact percentages a print shop will use. Its main value is showing how the four output channels are derived from one RGB input.
What RGB, CMYK, and K contribute
| Component | What it represents | Range in the converter |
|---|---|---|
| RGB | Additive red, green, and blue light; all three channels at full intensity produce white. | R, G, and B each run from 0–255. |
| CMY | Cyan, magenta, and yellow inks used in the subtractive color model. | C, M, and Y each run from 0–100%. |
| K | The black key component separated from the colored inks. | K runs from 0–100%. |
RGB describes light added by monitors, phones, and cameras. CMYK describes inks absorbing light on a white surface, so adding more ink generally moves the result toward black. The K channel has a practical printing purpose: making black by combining cyan, magenta, and yellow can waste ink, over-saturate the paper, and produce a muddy result. A dedicated black plate supports cleaner blacks and sharper text while using less ink and drying faster.
The HEX value is shown as an additional digital reference beside the CMYK and RGB readouts. Use RGB or CMYK as the typed input, then copy whichever supported representation the destination application expects.
Why converted colors can still look different
RGB covers a wider and brighter gamut than CMYK. Neon greens, electric blues, bright oranges, and other highly saturated screen colors may fall outside what CMYK inks can reproduce. The converter must approximate those colors, which is why a vivid monitor value can look flatter or duller on paper. That difference is a gamut limitation, not necessarily a conversion error.
The tool treats RGB as plain sRGB-style values without a source or destination profile, so it does not know which press, inks, or paper will be used. Professional print workflows may convert through a named CMYK profile such as US Web Coated SWOP, FOGRA39, or Japan Color. Those profiles account for the actual printing conditions and dot gain, so their percentages can differ from the naive result, sometimes noticeably.
Use the estimate as a print handoff
Treat the converter’s percentages as a sensible starting point rather than the final production setting. A practical handoff follows this sequence:
- Estimate early: Convert the RGB brand or design color while building the layout, so print constraints are visible early.
- Ask for the profile: Confirm which CMYK profile the printer uses for the selected press and paper.
- Convert the production file appropriately: Have the final artwork processed through the printer’s chosen profile when exact workflow control is required.
- Review a proof: Approve the printed result only after checking the proof supplied for the production process.
The reverse mode is useful when a print specification gives you CMYK percentages and you need a rough screen preview. Enter the four values from 0–100, read the resulting RGB and HEX values, and copy the representation needed for the project. Remember that this preview remains an approximation; the printer’s profile and proof provide the stronger controls for final color accuracy.
If you're weighing options, RGB to HEX to Pantone: A Two-Step Color Workflow covers this in detail.
If you're weighing options, RGB to HSV Shades and Variations: Scale and Controls covers this in detail.