Calculates on this device. File exports run online.
QR Code Color Checker
Choose the colour of your QR code and its background. The page says whether a scanner app will see enough difference, and shows the code the way a camera sees it. The server can then read a sample code in your colours back.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to check your colours
- Enter the colour of the code (the squares) and the background colour, such as #1f3a93 and #ffffff.
- If the code stands on a page of another colour, enter that colour under Colour around the code.
- Press Check. You get the verdict, the estimated symbol contrast and grade, and the difference in grey.
- Look at the sample code in your colours and in grey. Try to scan it from the screen.
- To be sure, press Make the test file below: the server reads the sample code back with zxing-cpp. Or make the real code in these colours with Make the code.
What a scanner needs
- A darker code on a lighter background. Light squares on a dark ground (an inverted code) are allowed by the QR Code standard, but many scanner apps cannot read them.
- Enough difference in brightness. The page estimates the symbol contrast from your colours: the luminance of the background minus the luminance of the code. Print grading of codes (ISO/IEC 15415) gives grade A at 70% or more, B at 55%, C at 40% and D at 20%. Aim for C or better; black on white is about 100%.
- Enough difference in grey. Scanner apps make the picture grey first. Readers built on ZXing ignore a difference of 24 grey levels or less (out of 255).
- A light border. A QR code needs a quiet zone of 4 squares on every side, as light as its background.
- Hue does not help: red on green with the same brightness is blank to a scanner, even when it looks clear to you.
Fix colours that do not scan
Choose Find a darker code colour or a lighter background that scans. The page keeps the hue of the colour you want to change and makes it darker or lighter in small steps until the pair reaches grade C, B or A. Which colours of my palette work for a QR code? checks every pair of your brand colours at once.
Limits you should know
- The contrast is estimated from colour codes on a screen. Ink, paper, gloss, size, distance and light change what a camera sees, so print a test and scan it with several phones.
- The server check reads a clean, sharp picture of the code with zxing-cpp, which also tries inverted codes. It can read colours that are closer than a phone camera can handle, so a passing check is a good sign, not a promise that every app reads the code.
- This page does not look up colour codes or colour names. For that, use the Color Code Converter.