Design
Colored QR Codes: Contrast Rules So They Still Scan
Use brand colors and gradients in QR codes without breaking them. Contrast ratios, colors to avoid, background rules and testing tips.
Color makes a QR code feel like part of your brand. It works well as long as you follow a few rules.
Rule 1: dark code, light background
Scanners look for dark modules on a light background. Inverted codes (light on dark) fail on many phones and most older scanners.
Rule 2: enough contrast
Aim for a contrast ratio of at least 4.5:1 between code and background, the same standard used for readable text on the web. The preview shows the ratio for your colors.
Rule 3: careful with gradients
Both ends of a gradient must stay dark. A navy-to-teal gradient works; a navy-to-yellow one fades out where it gets light.
Colors that cause trouble
- Yellow, light pink, pastel green and light gray codes.
- Red on barcodes for laser scanners (they can't see red).
- Busy photo backgrounds behind the code.
Test it
The live scan test decodes your exact design. If it turns red, darken the code color or lighten the background.
WCAG relative-luminance contrast formula. Bars under the line are risky for scanning.
Make it yourself in under a minute
Open the generator
The Custom QR code generator opens with the right content type already selected.
Fill in the content
Enter the link, network, contact or message. The preview updates instantly.
Brand it (optional)
Add your logo and colors. The scan test checks every change.
Download and print
Black codes download free as PNG. Use SVG for print with a paid plan.