QR CODE & BARCODE PRECISION ENGINE

QR Code Color Customizer

Design branded, genuinely scannable QR codes with custom colors and gradients, a real WCAG-based contrast checker, and gradients that export correctly in both PNG and SVG.

#000000
#ffffff
8px
Enter text to preview

How to Use This Tool

1

Enter the URL or text to encode.

Enter the URL or text to encode.

2

Pick a foreground color or enable gradient mode.

Pick a foreground color or enable gradient mode.

Pro Tip

Trust the contrast warning banner directly — it's a real WCAG-style calculation now, not a manual guideline you have to apply yourself. If you see the moderate-contrast (yellow) warning, the code should still scan but is more sensitive to print quality and lighting conditions than the red (unsafe) or no-warning (ideal) states. For gradients specifically, remember the checker evaluates every stop, so a gradient that looks fine at a glance can still trigger a warning if just one of its colors is too close to the background.

About This Tool

When to Use

  • Recoloring a QR code to match a brand's primary color for a cohesive look across packaging and marketing materials, with a real contrast check confirming it'll still scan.
  • Creating a dark-mode-friendly QR code with a light foreground on a dark background for a nighttime event flyer.
  • Matching a QR code's colors to a wedding invitation's existing color scheme for full visual consistency throughout.

Key Details

A QR code color customizer lets you set custom foreground and background colors, or a multi-stop gradient, instead of the default black-on-white pattern, so a QR code can match a brand's palette rathe...

Worked example

Set foreground to a brand navy #1E3A8A and background to white, then generate — the contrast checker shows a safe, ideal ratio well above 4.5:1, and both the PNG and SVG downloads render identically. Switch to gradient mode with a light-to-light color pair instead (e.g., two pale pastels), and the tool now shows a real warning that the code likely won't scan, computed from the actual weakest gradient stop against the background — not a guess. Downloading a Purple Sunset gradient design as SVG now shows the genuine two-color transition in the vector file, matching the PNG exactly.

QR Code Color Customizer FAQ

Will a custom-colored QR code from this tool actually scan?

Yes. The underlying QR-generation engine (shared with several sibling QR tools on this site) was rebuilt on the `qrcode` npm package, a well-established, independently-maintained implementation, after the prior hand-rolled encoder was confirmed to produce unscannable output for the large majority of real-world inputs. Verified via real generation + independent jsQR decode across a URL, plain text, and other representative inputs — all decode correctly now.

Does the tool automatically check color contrast for me?

Yes — a genuine WCAG-style relative-luminance contrast ratio is now calculated between your foreground (or, in gradient mode, every gradient stop) and background color. Below a 3:1 ratio, the tool warns that the code will likely fail to scan; between 3:1 and 4.5:1, it warns the code should scan but is more sensitive to print quality and lighting; above 4.5:1, no warning is shown.

Can I use any color for a QR code?

The foreground needs strong contrast against the background — dark colors on light backgrounds work best. This tool now checks that for you automatically and shows a warning if your combination falls below a safe threshold, rather than requiring you to judge it yourself.

What are the preset gradient options?

The tool includes 6 preset gradients — Purple Sunset, Ocean Breeze, Forest, Fire, Galaxy, and Candy — verified to exist exactly as named in the code, each a genuine two-color combination. You can also build a custom gradient with 2-5 color stops.

Does downloading as SVG keep my gradient?

Yes. SVG export now builds a real `<linearGradient>` definition with matching color stops, using the same angle math as the PNG renderer, so the vector file genuinely shows the full color transition — not just the first gradient stop as a flat fill.

What gradient angle should I use?

135° (top-left to bottom-right) is the most common and visually appealing. 90° (top to bottom) and 0° (left to right) are also popular — the angle now genuinely applies to both the PNG and SVG exports identically.

Master Your Entire Toolkit

Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.

Built and reviewed by the Toolzip Team · Based on ISO/IEC 18004 — QR Code Specification, QR Code Design Best Practices and W3C WCAG 2.1 — Contrast (Minimum)