freeqrmaker.app

QR Code Colors and Contrast: What Works

A black-and-white QR code is the safest, but you can use brand colors if you respect one rule: the code must stay much darker than its background.

The one rule: dark on light

Scanners detect the difference in brightness between the modules and the background. They do not care about hue. So a deep blue on white works, and a bright yellow on white fails, even though the colors look very different to you, because yellow is nearly as light as white.

Colors that work well

Colors that cause trouble

Inverted codes

A light code on a dark background is called inverted. Many current phone cameras read it, but some scanners and apps do not. If the code is on a poster or product that anyone must be able to scan, avoid inverting it.

Transparent backgrounds

A transparent background lets you place the code on a colored surface or image. It is only safe if what lies behind the code stays light and plain. Check the contrast against the final surface, not against the white of a preview.

A fast contrast test

  1. Convert a screenshot of the code to grayscale. If the modules and the background look clearly different, contrast is probably fine.
  2. Scan it from a screen at arm’s length with two different phones.
  3. Print one copy at the real size and scan it in ordinary room light.

Note: Brand colors on the code itself are optional. If in doubt, keep the code dark and put your brand color in the frame, the logo and the call to action around it.

Frequently asked questions

Can QR codes be any color?

Technically yes, but scanners need strong brightness contrast between the modules and the background. Dark on light is the reliable choice.

Can I make a QR code with a white code on a black background?

You can, and many phones read it, but some scanners do not. Use dark on light if the code must work for everyone.

Why will my yellow QR code not scan?

Yellow is almost as light as white, so there is little contrast between the code and the background. Use a darker color.

Does a gradient work in a QR code?

Only if every part of the gradient stays dark enough against the background. A gradient that fades to a light color will break the code.

Free tools mentioned in this guide

More guides

Published 2026-11-17. Every freeqrmaker.app tool runs in your browser: what you type is never uploaded.