Change Image Base Color
Upload an image, auto-detect the dominant base color, and replace it with any color using hue-shift or direct replacement.
Detected Base Color
Replacement
Mode
Original
Recolored
Swap the dominant color in any image without opening Photoshop — the tool auto-detects the base color, then replaces it using Hue Shift (keeps gradients and shading) or Direct Replace (flat swap). Dial the tolerance slider to target similar shades, or override the detected color with the picker when the guess is off. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool scans every pixel and builds a frequency map to find the dominant color. When you pick a target color, it loops through each pixel again: if the pixel's color distance from the source is within your tolerance, it either shifts the hue (preserving lightness and saturation) or replaces the RGB values directly. Transparent pixels get skipped entirely.
Examples
Product Photo Background Swap
An ecommerce seller needs their blue-backdrop product shots converted to white for Amazon listings.
Photo with #2563EB blue background
Mode: Hue Shift
Tolerance: 55
Same photo, background now #FFFFFF
Product edges clean, no blue halo
Game Sprite Recolor
A game dev creating team variants from a single character sprite — red team, blue team, green team.
Red knight sprite (#DC2626)
Target: #2563EB
Mode: Direct Replace, Tolerance: 40
Blue knight sprite — flat color swap
Transparency preserved on edges
Brand Color Migration
A marketing team rebranded from teal (#0D9488) to purple (#7C3AED). They have 30+ social media templates with the old color baked in.
Social banner with teal (#0D9488)
Target: #7C3AED
Mode: Hue Shift, Tolerance: 60
Banner now purple — gradients, shadows,
and overlays all shifted naturally
Who Uses This
Generate team-colored sprite variants from a single base asset without reopening the editor.
Swap product photo backgrounds to marketplace-required white in seconds.
Test color scheme changes on mockups before committing in Figma or Illustrator.
Rebrand template graphics to new colors after a company palette update.
Common Mistakes
Cranking tolerance to 90+ bleeds into skin tones, shadows, and other colors you didn't intend to change. Start around 40–50 and go up slowly.
Direct Replace produces flat, poster-like results on photographs because it ignores shading. Use Hue Shift for any image with gradients or lighting variation.
The auto-detection picks the most common color, which isn't always the one you want changed. If it grabs a background gray instead of the shirt red, click the source color picker and set it manually.
Technical Details
- Processing: 100% client-side — Canvas API pixel manipulation
- Browser Support: Chrome, Firefox, Safari, Edge
- Output Format: PNG (lossless, preserves transparency)
- Max Size: Limited only by your browser's available memory
- Color Space: RGB input, HSL conversion for hue-shift mode
Frequently Asked Questions
Can I change just one color in an image without affecting the rest?
Yes. Set the source color to the exact shade you want to replace, then lower the tolerance so only pixels close to that color get changed. Everything else stays untouched. You might need to try a few tolerance values to get it dialed in.
What's the difference between hue shift and direct replace?
Hue Shift rotates colors in HSL space, which keeps shadows and gradients looking natural. Direct Replace swaps the exact RGB values, giving you a flat, uniform color. For photos, Hue Shift almost always looks better. For logos or flat graphics, Direct Replace is cleaner.
Does this tool upload my image to a server?
No. The entire process runs in your browser using the HTML5 Canvas API. Your image stays on your device the whole time — nothing is uploaded, stored, or sent anywhere.
Why does my recolored image look flat or posterized?
You're probably using Direct Replace mode on a photo. Switch to Hue Shift — it preserves the original lightness and saturation of each pixel, so gradients and shadows come through naturally instead of getting flattened to one solid color.
How do I change the background color of a photo?
Upload your photo and check which color the tool detected. If the background color is the dominant one, you're set — just pick your new color and adjust tolerance. If it detected something else, click the source color picker and manually select the background shade. Bump tolerance up to 50–65 to catch slight variations in the background.