QR QR Studio

Free tool · runs in your browser

QR code colour contrast checker

Published 7 September 2026

Contrast ratio

Runs entirely on your device. Nothing you enter or upload is sent to a server.

Why contrast matters more than colour

A scanner converts the image to greyscale and then decides, module by module, whether each square is dark or light. It does not care what the colours are, only how far apart they are in brightness. Two colours that look distinct to you, such as red and green, can have almost identical brightness and scan terribly.

Do this

Deep purple modules (#4B3FBF) on cream. Ratio about 8 to 1.

Not this

Coral modules (#FF7F50) on white. Ratio about 2.5 to 1. Fails in low light.

Try it in QR Studio

QR Studio measures this for every design automatically and refuses to let a failing combination reach the export screen without a warning.

How the ratio is calculated

Each colour is converted to relative luminance using the sRGB formula, then the ratio is (lighter + 0.05) ÷ (darker + 0.05). It is the same calculation the Web Content Accessibility Guidelines use for text, which is why the thresholds 4.5 and 7 will look familiar.

Try it yourself

Pick two colours above and scan the preview with your phone. Then read the guide for the cases the ratio alone does not catch, such as glossy paper and backlit screens.

Read the colours guide

Frequently asked questions

Which colours are safest?

Any dark colour on white or near-white. Navy, dark green, deep purple and charcoal all read as well as black. Yellow, light grey and pastel modules do not.

Can I use a gradient?

Yes if every colour in it passes on its own against the background. Check the lightest colour of the gradient here.

What about a coloured background?

Fine if it is light. Measure the darkest module colour against the lightest background colour.

Related reading

Make yours in QR Studio

Unlimited static codes free, no ads, no watermark. AI design, dynamic codes and print-ready export when you need them.

Download on the App Store