Why QR codes have a white background...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2022 02:22 PM - edited 03-18-2022 02:47 PM
The answer is ‘Yes and No’, as driven by two primary factors:
- The tolerance of the specific software being used to scan the QR code,
- The specification of QR codes allows for some tone/shade/brightness tolerance, which can be affected by the environment at the time of scanning.
The big one is the scanner software. There are many different scanning apps out there, though this is now consolidating to much less numbers as cellphone operating systems are starting to supply QR code scanning as a baseline function of their baseline operating system features. Some of the scanning apps out there will even process a tonally inverted QR code (white dots on black), even though the proper specification of QR codes is that the background be white. So, the technical specification of QR codes is that the background should be white, but it is not always the case that the scanning software has that limitation.
Also, the specification of QR codes is that the background be white, but the specification is also designed to be tolerant of QR code damage. So you on the one hand you can have a very faded QR code that scans under certain lighting just fine, or you can have a red background (which is commonly converted to grayscale as very dark for image processing) which visually looks quite clear to people but is un-scannable.
There’s certainly a good practice to keep the background lighter than the code pixels, but I suspect over time the scanning software out there will become more and more tolerant of custom colors, and even inverted codes.
But as of now, keeping the background as white as possible, you lower the chances of scanning difficulties."

