Short answer: a scanner does not see colour, it sees brightness. Convert your design to greyscale — if the modules and the background are not obviously different after that, the code will not scan reliably, no matter how strong the contrast looks in colour.
What happens inside the scanner
A QR decoder converts the camera image to a grid of light and dark cells using a threshold: anything darker than the local average becomes a module, anything lighter becomes background. Two colours with almost the same brightness — a mid red on a mid green, a blue on a purple, a pastel on white — produce a threshold that cuts through both, so modules and gaps merge.
That is why saturated, high-chroma palettes are the most common cause of "it works on my screen but not on paper". The colour difference is real; the luminance difference is not.
The quick greyscale test
Take a screenshot of the finished code, desaturate it completely, and look at it. If you can still read the pattern easily at the size it will be printed, the contrast is probably fine. If you have to squint, it is not.
For a number rather than an eyeball: compute the relative luminance of the two
colours and use the standard contrast ratio,
(L1 + 0.05) / (L2 + 0.05). Aim for at least 7:1
between modules and background for print, and never go below 4.5:1 even for
screen-only codes. Pure black on white is about 21:1, which is why the default
designs are so forgiving.
Inverted codes
Light modules on a dark background are the design everyone wants on a dark brand and the arrangement most likely to fail. Many phone cameras handle inverted symbols, and most do not: the specification does not require it, and desktop scanners frequently assume dark-on-light.
The generator's verifier attempts both polarities when it decodes, so an inverted design that passes here will work with software that also tries both — which is not the same as working with every scanner in the world. If the code matters, keep it dark-on-light.
Gradients
A gradient is two colours, and the code is only as readable as its weakest region. A blue-to-purple linear gradient is usually fine because both ends stay dark; a dark-to-light gradient is a code that fades out halfway across. Radial gradients are worse: they put the lightest colour in the centre, exactly where an embedded logo already removes modules.
If you want a gradient, keep both stops dark enough to hold contrast against the background on their own, then check the greyscale result — not the colour preview.
Corner eyes and logos
Styling the three finder patterns is fine as long as they stay darker than the background. A pale eye frame on white is the one place where a "subtle" colour choice breaks detection entirely, because the decoder finds the code by looking for those patterns before it reads a single module.
The same applies to a logo plate: a light plate on dark modules is required, but a plate that is very close to the background colour blurs the boundary and the logo reads as missing modules rather than as an intentional feature.
Transparent backgrounds
A transparent code takes on whatever it is placed on, so its contrast is decided by the layout, not by the file. That is fine for a white menu and disastrous on a photograph or a coloured wall. Test the code on the actual substrate, and be aware that the preview's checkerboard is a debugging aid, not a background.
Brand palettes, practically
- Pick the darkest colour in the brand palette for the modules; almost every palette has one.
- Keep the background white or near-white, and put the code on a white patch if the substrate is coloured.
- Avoid mid-greys and pastels entirely — they are the colours that fail quietly.
- If the brand demands a light-on-dark code, treat it as a test item, not a default.
- Check the exported PNG or a print proof in greyscale, at final size.
The generator verifies every render by decoding it at camera resolution and warns when the result fails — the scannability guide explains what that check does and does not cover. Sizing rules are in the print guide.