Blog / Printing
QR Code Colors and Contrast: How to Pick Colours That Scan
5 min read · 26 November 2026
A QR code can be any colour as long as the code itself is dark, the background is light, and the difference between them is strong. Keep to that rule, avoid inverted codes, pale tones and gradients, and test the printed result on several phones before you print in bulk.
Colour is the easiest way to make a QR code match your brand. It is also the easiest way to break one. Here is how to get it right.
How phone cameras read colour
A phone doesn’t see your QR code in colour the way you do. To decode it, the scanner turns the image into light and dark areas and looks for the pattern. What matters is brightness, not hue.
That is why a navy code on a cream background works, while a red code on a green background of similar brightness may fail, even though the two colours look very different to the eye.
So when you choose colours, ask one question: if this were printed in black and white, would the code still be clearly dark and the background clearly light?
Rule 1: dark code on a light background
QR codes were designed as dark modules on a light background. Most scanners expect that, and it remains the most reliable option.
Good combinations:
- Black on white
- Dark navy, dark green or deep purple on white
- Dark brown or charcoal on cream or light grey
- A deep brand colour on a very pale tint of the same colour
If your brand colour is light, like yellow, light blue or pastel pink, use it in the frame or around the code instead of in the code itself.
Rule 2: keep the contrast strong
The bigger the brightness difference, the faster and more reliably the code scans in real conditions, such as dim restaurants, bright sun, or older phones.
A practical guide:
- The code colour should be close to black in brightness.
- The background should be close to white.
- Mid-tones on mid-tones, like a medium grey code on a light grey background, are risky.
If you’re unsure, convert your design to greyscale in any image editor. If the code still looks crisp and obvious, the contrast is fine.
Rule 3: avoid inverted codes
An inverted code is light on dark, for example a white code on a black background. It can look stylish, and some phone cameras will read it. Many scanners won’t, and you can’t control which one your audience uses.
If your design has a dark background, put the code on a white or light panel with a clear margin around it, rather than inverting the code. You keep the look of your design and the code scans everywhere.
Rule 4: skip light colours and gradients in the code
Light colours
Yellow, light orange, pastel tones and light grey are too close to white for a camera to separate reliably. They fade further under bright light or on glossy paper.
Gradients
A gradient across the code means part of it may be dark enough and part not. The lightest section is where scanning fails. If you want a gradient, keep both ends dark, or use a solid colour.
Multiple colours
Colouring different parts of the code in very different colours adds the same risk. A single dark colour is safer.
Rule 5: give the code a clean background
The background matters as much as the code.
- No photos or patterns behind the code. Busy images confuse the scanner. Place the code on a solid light area.
- Keep the quiet zone. Leave a clear margin around the code, roughly four modules wide, in the same light colour as the background.
- Watch transparent backgrounds. A PNG with a transparent background may look fine on white, then disappear when placed over a dark design. Check how it sits in the final layout.
- Mind the surface. Glossy, metallic and transparent materials reflect light. A matte, light area scans best.
Colour and logos
Adding a logo in the centre works well with a dark code on a light background, because the rest of the pattern stays strong enough to carry the missing area. Keep the logo modest in size and avoid placing a pale logo where it blends into the background. Our guide to adding a logo to a QR code covers sizing.
How to set colours on QRGeneratorBox
- Open a generator such as URL, vCard or Wi-Fi.
- Enter your content.
- Choose a dark colour for the code and keep the background light.
- Add a logo if you want.
- Download PNG or JPG in high resolution for screens, or SVG for print.
- Scan the result before you use it.
Colour and logo customisation are free, with unlimited codes.
Testing before you print
A code that scans from your monitor might not scan once printed. Screens are backlit, while ink on paper is often lighter and less sharp than you expect.
- Print a proof on the real material, at the real size.
- Test with several phones, at least one iPhone and one Android, including an older model if you can.
- Test in realistic light: dim indoor light, bright daylight, and under the kind of lamp the code will actually sit under.
- Test from the real distance and at a slight angle, the way people will hold their phones.
- Check the greyscale version of the design once more if anything fails.
If a code scans slowly, increase contrast first, then size. Our guide to QR code print size helps with the second part, and why a QR code is not scanning lists other causes.
A note on dynamic codes
Colour can’t be changed on a printed code, but where it points can, if you use a dynamic code with Pro. That doesn’t fix a bad colour choice, but it means a well-designed, well-tested code can stay in use for years. See static vs dynamic QR codes.
FAQ
Can a QR code be colourful?
Yes. Any dark colour works for the code, as long as the background is light and the contrast is strong. Bright and pale colours belong in the frame, not in the code.
Do white QR codes on black backgrounds work?
Some phones read inverted codes, but many scanners don’t. Put a dark code on a light panel instead, so it works for everyone.
Why does my code scan on screen but not on paper?
Screens are bright and backlit, so contrast looks stronger than it is once printed. Increase contrast, print larger and test a proof on the real material.
Is a transparent background a good idea?
Only if you check it in the final layout. Over a dark or busy design, a transparent background can make the code unreadable.
Create a code that matches your brand
Open the URL QR code generator, pick a dark brand colour on a light background, add your logo and download a print-ready SVG. It is free, and you can test as many versions as you like.