RGB, CMYK and YCbCr: Colour Models Explained for Screens, Print and JPEG
A photo can be described in several colour models. Your screen uses RGB, a printer uses CMYK, and a JPEG file usually stores YCbCr. Knowing how they differ explains several practical problems: why a photo printed at a shop looks duller than on the phone, why JPEGs smear colour on stamps, and why "black" in a scanned signature is rarely 0, 0, 0. This explainer is written for B.Tech and diploma students and anyone who works with images.
In short: RGB adds red, green and blue light (screens). CMYK subtracts light with cyan, magenta, yellow and black inks (printing). YCbCr separates brightness (Y) from colour difference (Cb, Cr) so that image compression can treat them differently.
RGB: additive colour for screens
Each pixel on a screen emits red, green and blue light. Adding all three at full strength gives white, and all three off gives black. In 8-bit images each channel runs 0–255, so a pixel has 256 × 256 × 256 = 16,777,216 possible values. Web colours such as #FFFFFF (white) or #1A73E8 are just these three bytes written in hexadecimal.
RGB numbers on their own do not fix an exact colour. The same (255, 0, 0) can look different on two monitors. A colour space pins the numbers to real colours. The W3C CSS Color Module Level 4 defines colours on the web in terms of colour spaces such as sRGB, which is the default for ordinary CSS colours and the usual assumption for images without an embedded profile.
CMYK: subtractive colour for printing
Paper does not emit light; ink absorbs part of the light falling on it. Cyan ink absorbs red, magenta absorbs green and yellow absorbs blue. Mixing them subtracts more light, so combining the three ideally makes black. In practice it makes a muddy dark brown, which is why printers add a separate K (black) ink for text and deep shadows.
Two practical points follow:
- Some very bright screen colours (vivid greens, blues, neon pinks) cannot be produced with inks. Printed photos therefore often look less saturated than on a phone screen.
- Paper and print settings matter as much as the file. For passport-size prints, an accurate pixel size and "actual size" printing matter more than the colour model. See how to print 2×2 photos.
Online forms and the web work in RGB. If a form asks for a JPG, send an ordinary RGB JPG. A CMYK JPG from a design tool may display wrongly or be rejected.
YCbCr: brightness plus colour difference
The JFIF file format, used by most .jpg files, defines the conversion from 8-bit RGB:
Y = 0.299 R + 0.587 G + 0.114 B
Cb = −0.1687 R − 0.3313 G + 0.5 B + 128
Cr = 0.5 R − 0.4187 G − 0.0813 B + 128
And back again:
R = Y + 1.402 (Cr − 128)
G = Y − 0.34414 (Cb − 128) − 0.71414 (Cr − 128)
B = Y + 1.772 (Cb − 128)
Worked examples (example pixels)
| Pixel (R, G, B) | Y | Cb | Cr | What it shows |
|---|---|---|---|---|
| Grey (128, 128, 128) | 128 | 128 | 128 | Any grey has Cb = Cr = 128: no colour difference |
| Skin tone (200, 150, 120) | ≈ 161.5 | ≈ 104.6 | ≈ 155.4 | Warm colours have Cr above 128 and Cb below |
| Pure blue (0, 0, 255) | ≈ 29.1 | ≈ 255.5 → clipped to 255 | ≈ 107.3 | Blue looks dark: low Y despite being "full" |
Look at the Y coefficients: green counts for 58.7% of brightness and blue for only 11.4%. That matches how we see brightness. It is also why a blue-ink signature turns pale when converted to greyscale, while a black-ink one stays dark. Official notices that ask for black ink (for example, the IBPS signature guidelines) make sense on purely technical grounds.
Why compression uses YCbCr
Once brightness and colour are separated, an encoder can keep Y at full resolution and store Cb and Cr at half or quarter resolution (chroma subsampling) with little visible loss. It can also quantize colour more coarsely. How JPEG compression works follows this through the DCT and quantization steps.
Greyscale and "black and white"
- Greyscale keeps only Y, with 256 shades in 8 bits. A greyscale JPG has one component instead of three, so it is usually much smaller. This helps when you must fit a document scan into a small KB limit.
- Black and white (1-bit) keeps only two values. It is excellent for text pages, but it ruins photos and stamps with shading.
A scanned "black" signature is usually a dark grey such as (40, 40, 45), not (0, 0, 0), and the "white" paper is often (230, 228, 220). Raising contrast so the paper reaches 255 and the ink gets darker is what scanner apps do when they "clean" a page. See how to scan a signature with your phone.
Exercise
- Use the converter formulas above in a spreadsheet: enter R, G, B and compute Y, Cb, Cr. Check that any R = G = B gives Cb = Cr = 128.
- Convert a colour photo of a blue-ink signature to greyscale and compare it with a black-ink one.
- Extract the main colours of a photo with the colour palette tool and note their hex and RGB values.
Frequently asked questions
Should I upload a CMYK JPG to an online form?
No. Web browsers and portals expect ordinary RGB (sRGB) JPGs. Convert CMYK files to RGB before uploading.
Why does a blue-ink signature look pale in greyscale?
Brightness Y = 0.299R + 0.587G + 0.114B, so blue contributes only 11.4% of brightness. Black ink stays dark in any conversion.
What does Cb = Cr = 128 mean?
No colour difference: the pixel is a neutral grey, white or black.
Sources
- W3C copy – JPEG File Interchange Format (JFIF) version 1.02, RGB ↔ YCbCr conversion (PDF)
- W3C – CSS Color Module Level 4 (sRGB and colour spaces)
- IBPS – Detailed Notification CRP-PO/MT-XVI (30.06.2026), Annexure III: Guidelines for scanning and upload of documents
Sources checked on 23 November 2026. Official notices and orders change; the latest version on the issuing body's website is final.