Sub topic 12
Practical workflow: picking a model for web, app and print
This chapter assumes you know the RGB and CMYK models, how hex codes encode 8-bit channels, and what a colour space, gamut and ICC profile are. Here you turn that knowledge into a decision process.
Start from the destination
Choose the colour model by where the work will be seen, not by which tool you happen to have open. Screens emit light, so web and app work stays in RGB. Presses lay ink on paper, so print work ends in CMYK.
| Destination | Final model | Typical profile | How colours are written |
|---|---|---|---|
| Website | RGB | sRGB | Hex or `rgb()` in CSS |
| Mobile or desktop app | RGB | sRGB, sometimes Display P3 | Hex, or platform colour types |
| Office or home printing | RGB sent to the driver | sRGB | Driver converts |
| Commercial print | CMYK | Profile named by the printer | CMYK percentages, ICC-tagged files |
A workflow that avoids most mistakes
- Ask the destination questions first. Is it screen only, print only, or both? For print, ask the printer which ICC profile and ink limit they use.
- Create the document in the matching space. Use sRGB for screen work. Use the printer's CMYK profile for print-only work.
- Keep master artwork in RGB when it is used in both places. RGB has the larger gamut, so you lose nothing by waiting.
- Convert once, as late as possible, with an ICC profile and a rendering intent. Never use the naive formula for final output.
- Keep the converted file separate from the master. Convert from the master each time, not from a previous conversion.
- Proof the result. A soft proof on a calibrated display shows the out-of-gamut shifts before you pay for printing.
Web and app: define colours once
On the web, store each brand colour once as a hex code and reuse it. CSS custom properties keep the values in one place.
:root {
--brand-orange: #ff8800;
--brand-ink: #1a1a1a;
--on-brand: #fff;
}
.button {
background-color: var(--brand-orange);
border-color: var(--brand-ink);
color: var(--on-brand);
}Design tools often show hex, but code sometimes needs separate channels, for example to build rgb() strings with transparency. The conversion is just base-16 parsing.
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));
}
const [r, g, b] = hexToRgb("#ff8800");
console.log(`rgb(${r} ${g} ${b} / 50%)`); // rgb(255 136 0 / 50%)Apps add one wrinkle. Many phones have wide-gamut displays such as Display P3. Colours defined as plain sRGB still look correct there. Only opt in to P3 when you need more saturated colours and have a fallback.
Print: let the profile do the conversion
Print files need CMYK values that match one specific press and paper. The naive formula from the previous chapters has no knowledge of either, so it is only for learning or rough previews. Real conversion uses the printer's ICC profile and a rendering intent. Relative colorimetric with black point compensation is a common default for design work. Perceptual is often better for photographs with many out-of-gamut colours.
Common errors
| Mistake | Result | Fix |
|---|---|---|
| Sending an untagged RGB file to a press | The printer guesses a profile and colours shift | Embed the profile or convert to the requested CMYK profile |
| Setting body text as four-colour black | Misregistration blurs small text | Use K-only black for text |
| Using a CMYK JPEG on a web page | Browsers may show wrong colours | Export web images as sRGB |
| Judging colour on an uncalibrated display | Proof looks right but prints wrong | Calibrate and soft proof |
| Expecting a neon orange to print as shown | It is outside the CMYK gamut and gets clipped | Check gamut warnings and pick a printable colour or a spot ink |
Exercise
A client wants a poster and a landing page using the same bright orange, #ff8800. You have an RGB master. Describe the steps for each deliverable and name the main risk for the poster.
Show answer
For the landing page, keep the file in sRGB and write the colour as #ff8800 in CSS, ideally as one custom property. For the poster, ask the printer for their ICC profile, convert once from the RGB master with that profile and a suitable rendering intent, then soft proof. The main risk is gamut. Saturated orange can fall outside the printable CMYK range and be clipped, so the printed orange may look duller than the screen. Check the gamut warning and agree an acceptable CMYK value with the client.