Toolvito

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

The code colour, its background and the colour around it, checked the way a scanner app sees them.

Your values

The colour of the squares (modules). Hex, rgb(), hsl() or a CSS colour name, such as #1f3a93 or navy.

The colour between the squares.

The border of 4 squares around the code (the quiet zone), such as the colour of the page. Leave it empty when it is the background colour.

The sample code holds this text. The server reads the code back and checks that it gives this text.

More options

With the border. Used for the drawing and for PDF and EPS files.

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.

Test a sample code, or make the real code in these colours

Task
Test the sample code: the server reads it back

The file is the sample code in your colours, drawn above. The server reads it back with zxing-cpp and says whether it gave the text of the sample code. The file comes back either way.

Pixels per inch at the printed width of the sample (under More options above).

More options

Leave it empty for qr-colour-test.

The contrast check runs on your device. To make and read a sample code on the server, Toolvito receives its colours and text. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to check your colours

  1. Enter the colour of the code (the squares) and the background colour, such as #1f3a93 and #ffffff.
  2. If the code stands on a page of another colour, enter that colour under Colour around the code.
  3. Press Check. You get the verdict, the estimated symbol contrast and grade, and the difference in grey.
  4. Look at the sample code in your colours and in grey. Try to scan it from the screen.
  5. 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.

Related tools