---
title: "QR Code Colours and Dot Styles: What Still Scans (Tested)"
description: "We ran 41 colour pairs and 6 module styles through three QR decoders. Inverted codes, yellow and dot styles failed first. The numbers and what to pick."
url: "https://www.proupiqr.in/blog/qr-code-colors-styles-scan-test/"
language: "en"
type: "article"
modified: "2026-11-14T00:00:00.000Z"
alternates:
  en: "https://www.proupiqr.in/blog/qr-code-colors-styles-scan-test/"
---

> For AI agents: an index of every page on this site, with links to Markdown versions, is at https://www.proupiqr.in/llms.txt

[Home](https://www.proupiqr.in/)/ [Blog Guides](https://www.proupiqr.in/blog/)/QR Code Colours and Dot Styles: What Still Scans (Tested)

By [Kunal Siyag](https://www.proupiqr.in/authors/kunal-siyag/)•14 November 2026•Reviewed 14 November 2026•Next review by 14 November 2027

# QR Code Colours and Dot Styles: What Still Scans (Tested)

We ran 41 colour pairs and 6 module styles through three QR decoders. Inverted codes, yellow and dot styles failed first. The numbers and what to pick.

#QR codes#Design#Printing

If you want a QR code in your brand colour, three rules cover almost everything we saw: keep the code **darker than its background**, aim for a contrast ratio of **4:1 or more**, and prefer **square or smoothly rounded modules over dots**. Light-on-dark codes, yellows and dot styles were the first to fail in our tests, and they failed in some decoders while passing in others, which is the worst kind of failure: it works on your phone and not on your customer’s.

Here is what we ran and what came out.

## How we tested

Every image was decoded by three open-source decoders: [zxing-cpp](https://github.com/zxing-cpp/zxing-cpp), the engine behind many Android scanner apps; [OpenCV’s QR detector](https://docs.opencv.org/4.x/de/dc3/classcv_1_1QRCodeDetector.html); and [jsQR](https://github.com/cozmo/jsQR), common in browser-based scanners. A result counts only if the decoder returns exactly the encoded text.

- **Colours:** one UPI payment link at error correction M, drawn in 41 colour pairs. Greys from black to very light grey on white, 15 common brand colours on white, dark code on six coloured backgrounds, and four inverted pairs (light code on a dark background). Each was decoded as a clean image and as a *photo* stand-in (rotated 4°, about 6 pixels per module, slight blur, JPEG compression, noise). Contrast is the [WCAG contrast ratio](https://www.w3.org/TR/WCAG21/#dfn-contrast-ratio), from 1:1 (same colour) to 21:1 (black on white).
- **Styles:** a link and a UPI code at all four error-correction levels in six module styles, rendered at 3, 4, 6 and 10 pixels per module: 192 images.

The raw results are public: [colour tests (CSV)](https://www.proupiqr.in/data/qr-lab/colour-decode-tests.csv) and [style tests (CSV)](https://www.proupiqr.in/data/qr-lab/module-shape-decode-tests.csv).

## Inverted codes: the clearest failure

| Code on background | Contrast | zxing-cpp | OpenCV | jsQR |
| --- | --- | --- | --- | --- |
| White on black | 21:1 | reads | fails | reads |
| Yellow on near-black | 10.3:1 | reads | fails | photo only |
| White on purple | 9.3:1 | reads | fails | photo only |
| White on green | 5.3:1 | reads | fails | fails |

OpenCV failed every inverted code, even white on black at the maximum possible contrast. jsQR, which tries an inverted reading by default, managed some. zxing-cpp read them all. So a white-on-brand-colour code can look perfect and still be invisible to a share of scanners. If your design needs a dark background, put the code on a light panel inside it.

## How much contrast is enough

On perfectly clean digital images, zxing-cpp and OpenCV read astonishingly faint codes: light grey (#e0e0e0) on white, a contrast of 1.3:1, still decoded. That tells you more about clean digital images than about real life. A printed code meets glare, shadow, cheap paper and a moving hand.

jsQR was the stricter judge and the more realistic one:

- On clean images it started failing below about **4:1**. Mid grey (#808080, 3.95:1) and Google green (#34a853, 3.06:1) failed, and so did every lighter colour we tried. Google blue (#4285f4, 3.56:1) happened to pass, which shows how thin the margin is in that range.
- On the photo-like images the line sat around **2.1–2.2:1**. Grey #b0b0b0 (2.17:1) failed while amber (2.16:1) and saffron (2.13:1) just passed, and everything at 1.8:1 or less failed: silver, light grey, yellow (#f5c400, 1.64:1) and Google yellow.
- Everything at **4.2:1 and above** read in all three decoders in both conditions: red (#d84a3a), green (#1f7a52), blue (#0369a1), PhonePe purple (#5f259f), and dark ink on cream, pale blue, yellow, mint, pink and slate backgrounds.

| Colour on white | Contrast | Verdict |
| --- | --- | --- |
| Ink, navy, dark green, purple, red | 4.2:1 and up | Safe |
| Mid grey, Google green, Google blue | 3–4:1 | Risky: two of the three failed jsQR on clean images |
| Pink, sky blue, amber, saffron | 2.1–2.7:1 | Avoid: borderline |
| Silver, light grey, yellow | under 2:1 | Fails in jsQR in both conditions |

Coloured backgrounds were fine as long as the code stayed dark. Ink (#1c1d1f) on yellow, mint or pink read everywhere. The colour of the background matters far less than the gap in lightness between it and the code.

## Dots and rounded modules

| Module style | zxing-cpp | OpenCV | jsQR |
| --- | --- | --- | --- |
| Square | 32 / 32 | 29 / 32 | 32 / 32 |
| Rounded, connected (corners round only where they face empty space) | 32 / 32 | 29 / 32 | 32 / 32 |
| Rounded squares with gaps between them | 32 / 32 | 30 / 32 | 21 / 32 |
| Dots, 0.80 module wide | 32 / 32 | 31 / 32 | 7 / 32 |
| Dots, 0.90 module wide | 32 / 32 | 29 / 32 | 19 / 32 |
| Dots touching (1.0 module wide) | 32 / 32 | 30 / 32 | 28 / 32 |

Each row is 32 images: two payloads, four error-correction levels, four sizes. zxing-cpp read everything. OpenCV’s misses were almost all one code, the UPI link at level L, in every style alike, so they say more about that code than about shapes. jsQR is where styles separated.

The odd part is the direction. For gapped styles, jsQR did *worse* at higher resolution: 0.90-wide dots read in all eight cases at 3 pixels per module but none at 10. A crisp 4000-pixel export or a large print can fail where a small one works, because at high resolution the white gaps between dots look like real light modules.

The fix is to keep modules touching. Connected rounding, where each module stays a full square and only its exposed corners are rounded, scored exactly like plain squares in every decoder at every size. It is the rounded look without the gaps.

## What to pick

1. **Dark code, light background.** Never the reverse.
2. **Contrast of 4:1 or more.** Most brand purples, blues, greens and reds pass. Yellows, oranges, light greys and pastel blues do not.
3. **Square or connected-rounded modules.** Skip dots, or test them in more than one scanner app.
4. **Style the corners freely.** Rounded and circular corner squares (the three finder patterns) decoded at every level and size in our renderer tests with jsQR, as long as they were solid and dark.
5. **Keep the four-module quiet zone** that [DENSO WAVE specifies](https://www.qrcode.com/en/howto/code.html), in the background colour, with nothing printed in it.
6. **Scan the final print with two different phones**, ideally one iPhone and one Android.

## What this test does not cover

These are digital images, not printed and photographed codes, and the decoders are open-source libraries, not the closed camera apps on iPhones (Apple Vision) or Android (Google ML Kit). Those apps may read more or less than these three. Use the results to compare choices, which is what they measure fairly, not as a promise about any particular phone. Glossy paper, metallic inks and screens with reflections were not tested at all.

## Try it

The [universal QR code generator](https://www.proupiqr.in/universal-qr-generator/) only offers module styles that passed in all three decoders, warns when a colour pair is inverted or under 4:1, and decodes the finished image before you download it. Adding a logo? Read our [QR code logo size test](https://www.proupiqr.in/blog/qr-code-logo-size-test/) first.

## Sources and testing

- [W3C: contrast ratio definition (WCAG 2.1)](https://www.w3.org/TR/WCAG21/#dfn-contrast-ratio)
- [DENSO WAVE: quiet zone and code area](https://www.qrcode.com/en/howto/code.html)
- [zxing-cpp (decoder used in the test)](https://github.com/zxing-cpp/zxing-cpp)
- [OpenCV QRCodeDetector (decoder used in the test)](https://docs.opencv.org/4.x/de/dc3/classcv_1_1QRCodeDetector.html)
- [jsQR (decoder used in the test)](https://github.com/cozmo/jsQR)

[Accuracy policy](https://www.proupiqr.in/accuracy-policy/) · [Corrections log](https://www.proupiqr.in/corrections/)

KS

### [Kunal Siyag](https://www.proupiqr.in/authors/kunal-siyag/)

Founder, Pro UPI QR

Founder of Pro UPI QR. Builds the generators and calculators, writes the merchant guides, and cites NPCI, RBI, and bank sources instead of inventing a research team.

[Author profile](https://www.proupiqr.in/authors/kunal-siyag/) [Editorial policy](https://www.proupiqr.in/editorial-policy/) [About](https://www.proupiqr.in/about/)

### Related Articles

[Nov 14, 2026 How Big Can a QR Code Logo Be? We Tested 248 Codes We cleared logo areas from 0% to 60% of a QR code's width and ran 2,232 decodes. Results by error-correction level, with a safe size to print. Read Guide →](https://www.proupiqr.in/blog/qr-code-logo-size-test/) [Jul 20, 2026 Print Free UPI QR Code Sticker Sheets on A4 Paper Print 4, 6, or 12 UPI QR stickers on one A4 sheet for counters, parcels, and tables — layouts, paper types, and a two-app scan test. Read Guide →](https://www.proupiqr.in/blog/printable-upi-qr-sticker-sheet-guide/) [Sep 13, 2026 PhonePe QR Sticker: Print Free or Order Print a PhonePe-compatible UPI sticker at home for free, or order the official PhonePe Business sticker. Sizes, vinyl vs paper, and when each option makes sense. Read Guide →](https://www.proupiqr.in/blog/phonepe-qr-sticker-print-free-vs-order/)

Four siblings in this topic — the full inventory lives on the hub.

[UPI standee generator Full-page payment posters for acrylic T-stands. Open →](https://www.proupiqr.in/) [Printable template gallery A4, A5, 5×7, table tents, counter cards, and sticker sheets. Open →](https://www.proupiqr.in/print-templates/) [PhonePe / GPay QR stickers Print 4, 6, or 12 shop stickers. Not an official PhonePe kit. Open →](https://www.proupiqr.in/qr-sticker-generator/) [Shop sale poster builder Discount banners with your UPI QR baked in. Open →](https://www.proupiqr.in/offer-poster-generator/)

[Browse topics →](https://www.proupiqr.in/print-upi-qr/)

### Need to create your own UPI QR Code standee?

Create, customize, and print standard compliant posters in 30 seconds.

[Generate Free QR Code Now](https://www.proupiqr.in/)

Source: https://www.proupiqr.in/blog/qr-code-colors-styles-scan-test/ (HTML). This Markdown version is generated from that page. Site: https://www.proupiqr.in/
