Barcode Colors: Which Color Combinations Will Scan

Most barcode colors fail at the scanner. Learn why dark bars need a light background, which colors to avoid, and which combinations actually scan well.

A barcode printed in the wrong colors can look perfectly normal and still fail to scan at the register. The symbology itself does not care about brand colors, it cares about contrast and wavelength, and getting that wrong is one of the most common reasons a freshly printed label gets rejected by a retailer or jams up a warehouse scanner.

Can a Barcode Be Any Color?

No. A barcode needs dark bars on a light background with strong contrast between the two, and not every color pair that looks different to a human eye looks different to a scanner. The safest approach is to treat color as a functional constraint on the design, not a creative choice, and verify any non-standard combination before printing a full run.

Scanners read a barcode by shining light at it and measuring how much comes back. Dark bars absorb that light and show up as low reflectance, while the light background bounces most of it back, and the sensor reconstructs the bar pattern from that difference. Color is only relevant because of how a given pigment interacts with the specific wavelength of light the scanner uses, which is why two colors that look equally dark side by side can produce very different scan results.

Do Barcodes Need a White Background?

White is not strictly required, but it is the most reliable and most widely tested background available, which is why GS1 and most retailers default to it. GS1 UK's barcode color guidance identifies black bars on a white background as the best combination of colors for a barcode, while still permitting other light backgrounds for dark bars, such as light gray, pale yellow, or very light shades of other hues.

The underlying rule is reflectance, not the specific hue of white. Any background color that reflects a high enough percentage of light, and does so evenly, can stand in for white. Where this breaks down is on packaging with textured, glossy, or patterned backgrounds, since uneven reflectance across the background can create false edges that a scanner misreads as part of the bar pattern, independent of the color chosen.

Why Do Dark Bars Need a Light Background?

Dark bars need a light background because the scanner's decoding logic depends on alternating zones of low and high reflectance, and that pattern only holds up when the background consistently reflects more light than the bars across the entire symbol. GS1 UK's guidance specifies that dark elements such as black, dark green, or dark blue must appear against a light background for the symbol to decode correctly.

This is also why gradients, shadows, and background images behind a barcode are risky even when every individual color used is otherwise acceptable. A gradient can shift the background from a safely light shade into a mid-tone or dark one across the width of the symbol, and the scanner has no way to tell that shift apart from an actual bar. Keeping the background a single flat, light color inside the barcode's quiet zone avoids this failure mode entirely.

Can a Barcode Be White on Black?

No. A reversed barcode, with light-colored bars printed on a dark background, is not reliably readable even though its contrast ratio can be identical to a standard black-on-white symbol. GS1 UK states plainly that reversed codes, light bars on a dark background, are not readable, because the GS1 symbologies and the scanning equipment built around them assume a specific polarity: dark marks on a light surface.

Some specialized readers can be configured to decode reversed symbols in controlled environments, such as internal tracking systems where every scanner is set up for that exact use case. But for any retail, logistics, or general-purpose barcode meant to work across a wide range of scanners and point-of-sale systems, a reversed color scheme should be avoided entirely.

Which Barcode Colors Should You Avoid?

Avoid red, orange, brown, and other reddish or warm tones for the bars themselves, because most barcode scanners illuminate the symbol with red light and these colors reflect red light in much the same way the white background does. That reflectance similarity erases the contrast the scanner depends on, so bars that look dark red to a person can appear almost invisible to the sensor.

This issue traces back to how classic laser scanners work, and it still affects many of today's devices. A patent on barcode printing inks notes that red ink, while visually dark under ordinary light, has historically provided insufficient contrast against a white background for laser-based readers because of how it reflects red wavelengths. GS1 Canada's printing guidance extends this warning to the entire red spectrum, recommending that all reddish colors be avoided for the bars, and GS1 UK adds orange to that list of colors that fail when used as the dark element.

Camera-based imaging scanners, including most modern smartphone cameras and 2D barcode readers, are less sensitive to this specific red-light problem than older laser scanners, but relying on that tolerance is risky. A barcode is meant to work across the full range of scanning hardware a business might encounter, not just the newest devices, so sticking to colors outside the red family keeps a symbol compatible with older laser-based equipment still common in logistics and retail.

What Color Combinations Actually Scan Well?

Black bars on a white background is still the combination with the most testing behind it and the one least likely to cause problems anywhere in a supply chain. Beyond that default, dark blue or dark green bars on white, pale yellow, or light gray backgrounds are workable alternatives that several barcode printing guides list as acceptable when a brand wants to move away from plain black and white without risking scan failures.

Backgrounds in the red or orange family are a more contested case. A barcode design guide from Barcode Graphics lists black bars on red or orange backgrounds among its acceptable combinations, since the background's color only matters for how much light it reflects back, not for whether it happens to share a hue family with the colors to avoid in the bars. Even so, treating red and orange backgrounds as acceptable only after direct verification is the safer practice, since guidance on this specific case is not fully consistent across sources.

How Can You Verify a Colored Barcode Will Scan?

The only definitive way to confirm a colored barcode will scan reliably is to test a printed sample, ideally with a verifier that measures symbol contrast against the ISO/IEC 15416 standard rather than relying on how the colors look on screen. That standard grades a linear barcode on measurements including symbol contrast, edge contrast, and modulation, and a verifier's grade is a far more reliable signal than visual inspection of a proof or a digital mockup.

For teams without access to dedicated verification hardware, printing a physical sample at full production size and checking it with several different scanner types, including an older laser scanner if one is available, a modern camera-based scanner, and a smartphone app, is a reasonable substitute. Testing with this free barcode scanner at different angles and distances can catch an obvious color or contrast failure before a full print run goes out, though it is not a replacement for formal ISO/IEC verification on barcodes bound for strict retail or logistics compliance. For a deeper look at the full verification process and ISO grading scale, see the barcode print quality and verification guide.

Getting the color right is only one part of producing a barcode that scans consistently. Print resolution, label material, and sizing all affect the same contrast and edge-sharpness measurements that color choices do, and the barcode label size guide and how to print barcode labels cover those factors in more detail.

Sources

Frequently Asked Questions

Can a barcode be any color?
No. A barcode's bars must be a dark color and its background a light color, with enough contrast between them for a scanner to tell the two apart. Many color combinations that look fine to the human eye, especially anything in the red family, do not register as dark bars to a scanner and will fail to read.
Do barcodes need a white background?
White is the safest and most tested background, but it is not the only option that works. Light backgrounds such as pale yellow or light gray can also work, as long as they reflect enough light for the scanner to register a strong difference from the dark bars printed on top of them.
Can a barcode be white on black?
No, a reversed barcode with light bars on a dark background is not reliably readable by standard scanners. Barcode scanning equipment and the GS1 symbology specifications are built around dark marks on a light surface, so inverting that pattern breaks decoding even though the contrast ratio looks identical to the eye.
Which barcode colors should you avoid?
Avoid red, orange, brown, and other warm or reddish tones for the bars. Most barcode scanners, including handheld laser scanners and many camera-based readers, illuminate the symbol with red light, and bars printed in red or a similar hue reflect that light the same way the white background does, making the bars invisible to the sensor.
What is the best color combination for a barcode?
Black bars on a white background remain the most reliable and most tested combination across every scanner type. Dark blue, dark green, or black bars on white, light yellow, or light gray backgrounds are also workable alternatives when a brand needs to move away from plain black and white.