Gradient QR Code

Modern gradient colors for eye-catching QR codes. Contemporary design with full scanability maintained.

Why Gradient QR Codes

✨ Modern Look

Contemporary gradient trends in design

🎯 Eye-Catching

Stand out among plain black QR codes

🎨 Brand Aligned

Match your brand color palette

✅ Still Scannable

Works with all modern QR readers

Popular Gradient Combinations

Implementation

Python with Pillow

from PIL import Image, ImageDraw
import qrcode

# Generate QR
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_H)
qr.add_data('https://example.com')
qr.make()

# Create image with gradient
img = qr.make_image(fill_color='black', back_color='white').convert('RGB')

# Apply gradient colors
pixels = img.load()
width, height = img.size

# Gradient from purple to pink
for y in range(height):
    # Calculate color gradient
    ratio = y / height
    r = int(139 + (236 - 139) * ratio)  # 8B to EC
    g = int(92 + (72 - 92) * ratio)     # 5C to 48
    b = int(246 + (153 - 246) * ratio)  # F6 to 99
    
    for x in range(width):
        if pixels[x, y] == (0, 0, 0):  # Black QR module
            pixels[x, y] = (r, g, b)

img.save('gradient_qr.png')

Web/Canvas Approach

<canvas id="qrCanvas" width="300" height="300"></canvas>

<script>
const canvas = document.getElementById('qrCanvas');
const ctx = canvas.getContext('2d');

// Create gradient
const gradient = ctx.createLinearGradient(0, 0, canvas.width, canvas.height);
gradient.addColorStop(0, '#8B5CF6');    // Purple
gradient.addColorStop(1, '#EC4899');    // Pink

// Generate and apply gradient to QR (requires QR library)
const qr = qrcode.make_image('https://example.com');
// Apply gradient colors to dark pixels
</script>

Color Psychology

Red/Orange Gradients

Purple/Pink Gradients

Blue/Cyan Gradients

Green/Teal Gradients

Design Best Practices

When to Use Gradient QR

Create Gradient QR Codes

➜ Generate Gradient QR