QR Hub
BlogScan a codePricing
Englishen
Sign inStart free
← All articles

QR code colors: which colors scan and which don't

Can a QR code be colored? Yes — if you follow a few rules. Which color pairs scan, which ones fail (red, light on dark, low contrast), and how to test before you print.

QR Hub team · 24 November 2026 · 6 min read

Also in:EspañolPortuguês

A black and white QR code works everywhere, but it doesn't always match your shop sign, menu or wedding card. So people ask: can a QR code be colored, and will it still scan?

Yes, it can. Phones read colored codes every day. But some color choices quietly break a code, and you often only find out after you print. This guide shows the rules that matter, the color pairs that work, the ones to avoid, and how to test.

The short answer

  1. Dark dots on a light background. Always. Not the other way round.
  2. Strong contrast between the dots and the background. Dark navy on cream: good. Light grey on white: bad.
  3. Avoid red or orange dots, and avoid pairs like blue on green.
  4. Keep the white border (quiet zone) around the code.
  5. Test a real print with two phones before you print hundreds.

Why color matters to a scanner

A QR code is a grid of small dark and light squares. The scanner doesn't care which color you picked — it only looks for dark and light. If the two are too close, it can't tell them apart.

DENSO WAVE, the company that invented the QR code, explains in its FAQ that "QR Code scanners use red light to capture the image of a QR Code" (DENSO WAVE FAQ). Under red light, a red code on a white background almost disappears. The FAQ says it is "impossible" to read a red code on white, or a blue code on a green background.

GS1, the organisation behind retail barcodes, gives the same advice: "Avoid red or orange in your barcode, many scanners use a red light and won't pick these colours up" (GS1 New Zealand).

Phone cameras see in full color, so they are more forgiving than shop scanners. But your code may also be scanned at a checkout, at an event gate or by an older phone in a dim room. Picking safe colors means it works for everyone.

Rule 1: dark on light, never reversed

The dots should always be darker than the background. A white code on a black background (an "inverted" code) looks stylish, but GS1 New Zealand says to "avoid reversing the colours", because "traditional scanners read the darker colour" (GS1 New Zealand).

Some phone apps can read inverted codes, many can't. If you want a dark look, put the code on a light panel inside your dark design instead.

Rule 2: enough contrast

Contrast is how different the dark and light parts are. DENSO WAVE notes that "the deepness of the color also affects the readability" (DENSO WAVE FAQ). A deep color reads better than a pale one, even if it's the same hue.

The QR Hub generator checks this for you. It measures the contrast between your dot color and background color and warns you if the dots are lighter than the background or if the contrast is below about 4:1 — a level we picked to stay safe on most phones.

Color pairs that usually work

DotsBackgroundWhy it works
BlackWhiteThe classic. DENSO WAVE's own advice is "black on a white background".
Dark navy or dark blueWhite or creamVery dark, strong contrast, easy to match a brand.
Dark greenWhite or light yellowDeep color on a light base.
Dark brown or charcoalBeige or creamGood for cafés, bakeries and wedding cards.
Dark tealWhiteWorks if the shade is really dark — test it.

Color pairs to avoid

DotsBackgroundThe problem
Red or orangeWhiteRed-light scanners can't see the dots.
BlueGreenNamed by DENSO WAVE as impossible to read.
Light grey, pastel pink, sky blueWhiteNot enough contrast.
White or yellowBlack or navyReversed (inverted) — many scanners fail.
Any colorA busy photoThe camera can't find the light squares.

Gradients, photos and see-through backgrounds

  • Gradients: if the dots fade from dark to light, the light end can fail. Keep every part of the gradient dark, and the background plain and light.
  • Photos behind the code: a busy picture breaks the light squares. Put the code on a plain light box instead.
  • Transparent PNG on a colored flyer: the "white" parts take the color of whatever is behind. Check the final design, not just the file.
  • Clear plastic, glass and shiny vinyl: DENSO WAVE warns that on transparent material not enough light bounces back from the white areas, and "glistening" can interfere. Its advice: "print a white background as well as black areas" (DENSO WAVE FAQ).

Don't forget the white border

Color the dots and the background, but leave clear, plain space around the code. DENSO WAVE says "a white space worth 4 modules is needed around it" (DENSO WAVE FAQ) — four of the small squares on every side. No text, lines or patterns inside that border. Our frames leave this space for you.

For how big to print, see What size should a QR code be?

How to make a colored QR code

  1. Open the generator below and add your link, Wi-Fi or contact details.
  2. Under Colours, pick a dark color for the dots and a light color for the background.
  3. Watch for the warning. If it says the colors are too close or reversed, make the dots darker or the background lighter.
  4. Choose a dot style and, if you like, a frame with a call to action.
  5. Download SVG for print (it stays sharp at any size) or a large PNG.

Make this QR now

Test before you print

DENSO WAVE says "detailed experimentation is necessary before actually using colored QR Codes" (DENSO WAVE FAQ). A simple version:

  1. Print one copy on the real paper, with the real printer or print shop.
  2. Scan it with two different phones, one of them older.
  3. Try it in normal light and in dim light — a restaurant at night, a hallway.
  4. If it takes more than a second or two, go darker on the dots or lighter on the background, and test again.

Printers often make colors darker or lighter than on your screen, so the paper test matters more than the screen preview.

If a printed code still won't scan, our list of 10 fixes for a QR code that isn't scanning covers the other common causes.

Contents

  1. The short answer
  2. Why color matters to a scanner
  3. Rule 1: dark on light, never reversed
  4. Rule 2: enough contrast
  5. Color pairs that usually work
  6. Color pairs to avoid
  7. Gradients, photos and see-through backgrounds
  8. Don't forget the white border
  9. How to make a colored QR code
  10. Test before you print

Make your QR code now

Free static QR codes with no sign-up and no expiry. Editable codes with scan stats when you need them.

Make this QR now

Related articles

  • QR code not scanning? 10 fixes that work6 min read
  • What size should a QR code be? A simple print size guide7 min read
  • How to add a QR code to a Word document or Excel sheet7 min read
QR Hub

Free QR codes for everyone, with codes you can edit after printing.

QR codes

  • Link
  • WhatsApp
  • Wi-Fi
  • Menu
  • Business card
  • Location
  • Song
  • Google reviews
  • Invitation
  • PDF
  • Scan a QR code
PricingBlogTerms of ServicePrivacy PolicyRefundshello@qrhub.shop

© QR Hub

Englishen

Made in Saudi Arabia 🇸🇦