Sub topic 12
Practical workflow: picking a model for web, app and print
This chapter turns the earlier concepts into a decision process. It assumes you know the following:
- How additive (RGB) and subtractive (CMYK) mixing differ.
- How 8-bit channel values and hex codes work.
- What a colour space and a gamut are.
- That sRGB values are non-linear.
- That ICC profiles and rendering intents exist.
The goal is a repeatable workflow. It tells you which model to author in, when to convert, and how to catch the usual mistakes before a file reaches a screen or a printer.
Start from the destination
Pick the colour model by asking where the colour will end up. The destination decides the model. Your design tool does not.
| Destination | Final model | Typical colour space | Colour notation |
|---|---|---|---|
| Website or web app | RGB | sRGB | Hex, `rgb()` |
| Mobile app | RGB | sRGB, sometimes Display P3 | Platform colour types, hex |
| Email and social media | RGB | sRGB | Hex, embedded image profiles |
| Office printing, home printing | RGB or CMYK, depending on the driver | Printer profile | Usually RGB files |
| Commercial offset or digital press | CMYK | A press profile such as FOGRA39 or SWOP | CMYK percentages |
| Spot-colour jobs (logos, packaging) | Named inks | Pantone or similar | Spot colour names |
Two points follow from the table.
- Screens only ever show RGB. Even if a file is "in CMYK", the display converts it to RGB for preview. A CMYK preview on screen is a simulation.
- Print shops usually want CMYK, but many accept RGB and convert it themselves. Ask which they want. Do not guess.
The core rule: convert once, as late as possible
Every RGB-to-CMYK conversion discards information. Many RGB colours fall outside the CMYK gamut, and the conversion clips or compresses them. A conversion back to RGB cannot restore what was lost. This gives the central rule of the workflow:
- Author and store master artwork in a wide, editable RGB space.
- Convert to the destination space once, at the end.
- Never round-trip RGB to CMYK and back to RGB.
Notice that the fix for a bad proof goes back to the RGB master. You edit the master and convert again. You do not patch the CMYK copy, because each copy stays disposable.
Web and app workflow
For the web, the target is sRGB. Browsers assume untagged CSS colours are sRGB, so hex and rgb() values are predictable.
Define colours as tokens
Store each brand colour once, as a token, and reference it everywhere. This avoids the common bug where #ff8800 in one file and #ff8801 in another drift apart.
:root {
--brand-orange: #ff8800;
--brand-orange-rgb: 255 136 0;
--text-on-brand: #fff;
}
.button {
background-color: var(--brand-orange);
border-color: rgb(var(--brand-orange-rgb));
color: var(--text-on-brand);
}The two orange tokens describe the same colour. Keep both only if you need the channels separately, for example to build rgb(255 136 0 / 50%) for a translucent overlay.
Check your hex values in code
If you generate colours or accept them from users, validate them at the boundary. This script converts both ways and rejects bad input.
function hexToRgb(hex) {
const m = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(hex);
if (!m) throw new Error("Invalid hex colour: " + hex);
return m.slice(1).map((h) => parseInt(h, 16));
}
function rgbToHex(r, g, b) {
return "#" + [r, g, b].map((v) => v.toString(16).padStart(2, "0")).join("");
}
console.log(hexToRgb("#ff8800")); // [255, 136, 0]
console.log(rgbToHex(255, 136, 0)); // "#ff8800"This function accepts only six-digit hex. The three-digit shorthand #fff expands to #ffffff, so expand it first if your inputs may contain it.
Images for the web
- Export photographs and artwork in sRGB. If you export in a wider space with an embedded profile, colour-managed browsers will convert correctly, but some apps and older software ignore the profile and show dull or oversaturated colours.
- Embed the sRGB profile, or set the file to sRGB explicitly. Do not leave it ambiguous.
- Do not upload CMYK JPEGs to the web. Browsers handle them inconsistently, and some show inverted or muddy colour.
Wide-gamut screens
Many phones and laptops now use Display P3, which has a larger gamut than sRGB. If you design for these, you can use the CSS color() function with display-p3. Always provide an sRGB fallback so that older displays still get a sensible colour.
.hero {
background-color: #ff8800;
background-color: color(display-p3 1 0.55 0);
}Browsers that do not understand the second declaration ignore it and use the first. This pattern is called progressive enhancement. Test both declarations, because P3 colours that look vivid on one display will look identical to the sRGB value on a standard display.
Print workflow
Print has more steps and more ways to go wrong. Follow them in order.
1. Ask the printer for specifications
Before you start, get these from the print provider:
- The expected colour mode (CMYK or RGB).
- The target ICC profile, for example FOGRA39 for coated European paper or a SWOP profile for North American web offset.
- The total ink limit (total area coverage), often around 300% for coated stock.
- Bleed and resolution requirements.
- Whether any colours must be spot inks.
The ICC profile is the most important item. The profile describes how that exact press, ink and paper respond. Without it, any conversion is a guess.
2. Keep the master in RGB
Work in RGB while editing. You get a wider gamut, more editing tools in most applications, and the freedom to reuse the artwork for web. Make a separate print copy when the design is final.
3. Soft-proof before converting
Soft proofing is a screen preview of how the file will look on the target press. Your editing tool loads the press profile and simulates it. It shows which colours fall out of gamut. Bright oranges, saturated greens and electric blues usually shift the most.
4. Convert with a profile and a rendering intent
Use the profile conversion command in your design tool. Choose the destination profile and a rendering intent:
| Intent | What it does | Typical use |
|---|---|---|
| Relative colorimetric with black point compensation | Keeps in-gamut colours exact and clips out-of-gamut ones to the nearest printable colour | Default for most print work |
| Perceptual | Compresses the whole range so relationships between colours stay natural | Photographs with many out-of-gamut colours |
| Saturation | Boosts vividness | Charts and graphics where punch matters more than accuracy |
| Absolute colorimetric | Simulates the paper white | Proofing only |
Relative colorimetric is the common default. If a photo has large areas of out-of-gamut colour and the clipped result looks flat or banded, try perceptual and compare the two proofs.
5. Do not rely on the naive formula
The simple formula below shows the idea of subtracting light with ink:
def rgb_to_cmyk_naive(r, g, b):
r, g, b = r / 255, g / 255, b / 255
k = 1 - max(r, g, b)
if k == 1:
return 0.0, 0.0, 0.0, 1.0
c = (1 - r - k) / (1 - k)
m = (1 - g - k) / (1 - k)
y = (1 - b - k) / (1 - k)
return c, m, y, k
print(rgb_to_cmyk_naive(255, 136, 0)) # (0.0, 0.466..., 1.0, 0.0)It treats the page as perfectly white and the inks as perfectly pure, and it knows nothing about any press. Use it for teaching and quick estimates only. A real conversion uses an ICC profile, which models the actual inks and paper.
6. Handle black carefully
Black needs special attention because K is its own ink.
- For body text, use pure K only (0, 0, 0, 100). Text built from all four inks can show colour fringes if the plates are slightly misaligned, and it is harder to keep sharp.
- For large solid black areas, a rich black adds some C, M and Y under the K for depth. A common recipe is around 60, 40, 40, 100, but follow your printer's guidance and ink limit.
- Do not use rich black for small text. Thin strokes made of four inks are fragile at press tolerances.
7. Check the output
Before approving the job:
- Open the converted file and confirm the mode and the embedded profile.
- Inspect key brand colours in the CMYK values.
- Check that total ink coverage stays below the printer's limit.
- Ask for a hard proof, a physical sample, when colour accuracy matters, such as brand-critical packaging.
Brand colour across media
A brand colour rarely survives all media unchanged. Plan for that by keeping a small colour specification sheet per brand colour:
| Field | Example for the orange |
|---|---|
| Hex (screen) | `#ff8800` |
| RGB | 255, 136, 0 |
| CMYK (coated paper) | Values taken from a profile conversion, then approved on a proof |
| Spot colour | A named ink, if the brand uses one |
| Use notes | Large areas only on screen, check proof for print |
The CMYK values should come from an approved conversion and a proof, not from a formula. If exact matching is critical, specify a spot ink, because a spot ink is mixed to match instead of built from four process inks.
Common mistakes
- Designing in CMYK for the web. The file then loses gamut for no gain. Design in RGB.
- Converting twice. RGB to CMYK to RGB to CMYK compounds the clipping. Always go back to the master.
- Ignoring the embedded profile. An image opened with the wrong profile assigned, instead of converted, shifts all colours. Assigning a profile changes the meaning of the numbers. Converting changes the numbers to preserve the appearance.
- Trusting an uncalibrated screen. A display with wrong brightness or colour balance misleads every judgement. Calibrate it, or rely on proofs.
- Mixing the intents. Choosing one intent for a photo and another for the logo in the same file leads to inconsistent results. Decide per asset type, and record the choice.
- Forgetting the paper. Uncoated paper absorbs ink and gives duller, darker results than coated paper. Use a profile that matches the stock.
A short checklist
- Identify the destination and the required colour model.
- Keep one RGB master.
- For the web and apps, export sRGB, with a Display P3 enhancement only if needed.
- For print, get the printer's profile and limits.
- Soft-proof, then convert with a profile and a deliberate intent.
- Use pure K for text and rich black only for large areas.
- Verify the output, and request a hard proof when it matters.
Exercise
A client sends a logo in CMYK and asks you to put it on their website. They also need a printed flyer next week. Describe the steps you would take and which file you would treat as the master.
Show answer
The CMYK file is already limited to the print gamut, so it should not be the master for the website. Ask the client for the original RGB or vector artwork. If none exists, rebuild the logo in RGB, matching the brand hex values as closely as possible. Keep that RGB file as the master. For the website, export in sRGB and use the hex tokens in CSS. For the flyer, get the printer's ICC profile and ink limit, soft-proof the RGB master, convert once with relative colorimetric intent, use pure K for any black text, and check the result on a proof. Do not convert the CMYK logo to RGB for the web, because that cannot recover colours already lost.
Exercise
A designer converts a bright orange photo from RGB to CMYK with relative colorimetric intent, and large areas look flat. What can they try, and why?
Show answer
The orange is probably outside the press gamut, and relative colorimetric clips such colours to the nearest printable value, which makes neighbouring tones merge. They can convert again from the RGB master with perceptual intent, which compresses the whole range so that relationships between tones are kept, then compare both soft proofs. They should convert from the master, not from the already-converted CMYK file.