Printing and design
Why gradient QR codes don't scan (and how to fix them)
A phone reads a QR code by sorting every module into dark or light. Gradients that fade toward a light color, pale codes, light-on-dark codes and busy backgrounds blur that line, so some phones give up. Keep both gradient colors dark, keep the background light and plain, and test the printed code with two phones.
Open the free QR code generator Free · runs in your browser · nothing uploaded
Check your colors before you download
- Enter your content in Single code and open the Colors and shape panel.
- Set Foreground to a dark color (black, navy, dark green, deep burgundy) and Background to white or a very light tint.
- If you use Gradient (Pro), choose Linear as the type and pick a Second color that is just as dark as the first.
- Keep Quiet zone at 4 modules, the standard margin.
- Read the warnings next to the live preview and fix any contrast or inverted-colors warning before you go on.
- Download, print one copy at the final size on the real paper, and scan it with two different phones in the light where it will hang.
Why phones lose the code
A scanner does not care about color. It turns the camera image into shades of grey and draws a line between dark and light. Every module above the line counts as light, every module below it as dark. The QR standard (ISO/IEC 18004) is built on that simple contrast.
A gradient from navy to sky blue looks smooth to you, but to the scanner the sky-blue end sits close to the white background. Part of the code lands on the wrong side of the line and turns into noise. Error correction can rebuild missing modules, up to about 30% at level H, but a whole faded corner is often too much. If the light end falls on one of the three large corner squares, the phone may not even find the code.
Phones also differ. A new flagship with a good camera may read a weak code that a three-year-old budget phone, a laptop webcam or a checkout scanner cannot. Your customers own all of them.
Light colors, inverted codes and busy backgrounds
- Light colors. Yellow, light grey, pastel pink and mint are the usual culprits. They may match your brand, but next to white they have little contrast. Keep brand colors for the frame or the text around the code.
- Inverted codes. A white code on a black or dark-blue background looks stylish on a dark flyer. The standard describes dark modules on a light background, and while many recent phone cameras cope with the reverse, plenty of scanner apps and older devices do not.
- Busy backgrounds. A code placed on a photo, a pattern or a texture picks up stray dark and light spots. This often happens with Transparent background (PNG / SVG): the file looks fine on screen, then gets dropped onto a photo in the layout.
- Shiny surfaces. Foil, gloss varnish and metallic inks reflect light, so parts of the code flash white at certain angles.
What the tool's warnings tell you
The generator compares the code color with the background while you design. With a gradient it checks both colors, so a light second color triggers a warning even when the first one is dark.
| Warning | What it means | Fix |
|---|---|---|
| Light code on a darker background | The code is inverted | Swap Foreground and Background |
| Low contrast between code and background | A code color is too close to the background | Darken the code or lighten the background |
| Transparent background | The surface under the code decides the contrast | Place it only on a light, plain area |
A warning is a strong hint, not a verdict. No warning is not a guarantee either: ink, paper, size and lighting all play a part, which is why the printed test matters.
Safe gradient recipes
The rule is simple: both ends of the gradient must be dark enough to work as a solid code on their own. A quick check is to squint at the preview. If any part of the code fades toward the background, so will the scan.
| Recipe | Colors | Verdict |
|---|---|---|
| Navy to deep purple, linear, 45° | Both dark | Safe |
| Black to dark green, linear, 0° | Both dark | Safe |
| Dark red to dark brown, linear, 90° | Both dark | Safe |
| Navy to light blue | One end pale | Risky |
| Radial with a bright center | Center washes out | Avoid |
| Orange to yellow | Both too light | Avoid |
Linear gradients are more predictable than radial ones because the change runs evenly across the code. If you want a radial look, keep the center color dark too. An Error correction level of Q or H adds some margin, and printing a little larger than you would for a black code helps; the size guide has the numbers.
A testing routine that catches problems
- Print at the final size, on the final paper or a close match. Screens are brighter and sharper than ink.
- Scan with an iPhone and an Android phone, ideally one of them a few years old.
- Scan from the distance people will actually stand, not with the phone pressed against the paper.
- Try the real lighting: a dim bar, a sunny window, a ceiling spotlight that causes glare.
- Tilt the phone a little. A healthy code still reads within a second or two.
If any phone hesitates, make a plain black-on-white version of the same code and test it the same way. If that one scans instantly, the colors were the problem.
Common mistakes
- Using the brand's light accent color for the code instead of its darkest color.
- Letting a gradient run from dark to almost white.
- Inverting the code to match a dark flyer instead of placing a dark code in a white box.
- Putting a transparent-background code on a photo or pattern.
- Setting the quiet zone to None, so the code touches other artwork.
- Testing only on screen, or only with your own phone.
- Stacking risks: a large logo on top of a weak gradient. Each may pass on its own; together they often fail. See QR codes with a logo.
Frequently asked questions
Do gradient QR codes work at all?
Yes, when both gradient colors are dark and the background is light and plain. Problems start when one end of the gradient fades toward the background color.
Can I make a white QR code on a black background?
You can design one, but the tool warns you because many scanners cannot read inverted codes. A dark code inside a white box on your dark design is the safer choice.
Is the gradient option free?
Gradients are part of the Pro pass. Solid colors, dot shapes, corner styles and logos are free.
Does a higher error correction level fix low contrast?
It adds some margin, but it cannot rescue a code whose colors are too close to the background. Fix the contrast first, then test.
Sources
Checked against the tool and the cited standards on 2026-11-06.