Image Color Changer
Click any color directly on your image to replace it with a new shade or turn it transparent. Fine-tune perceptual color tolerance and edge feathering, preserve natural shadows and highlights, stack multiple color swaps, and export as PNG, WebP, or JPEG.
Drop an image here to change its colors
Supports PNG, JPG, WebP, and SVG. Processed privately in your browser.
- 01Click directly on the image with the live eyedropper to pick the exact source color.
- 02Preserve luminance and shading so logos, icons, and apparel keep natural depth instead of looking flat.
- 03One-click Make Transparent toggle turns any solid color or background into clean alpha transparency.
- 04Stack multiple color replacement rules cleanly in order without rules overwriting each other.
- 05Compare Before and After with an interactive split slider or side-by-side preview.
- 06Runs 100% locally in your browser — export crisp PNG, WebP, or JPEG with zero uploads.
Why Use This Image Color Changer
Interactive Click-to-Pick Eyedropper
Hover over any part of your image to inspect its live RGB swatch and hex code, then click to target that exact color for replacement.
Shading-Aware Recoloring
Preserve Luminance shifts hue and base tone while retaining original highlights, gradients, and shadows so recolored logos and photos look authentic.
Perceptual Distance & Smooth Feathering
Uses perceptual redmean color distance plus smoothstep edge feathering to prevent harsh jagged borders around anti-aliased graphics.
Make Any Color Transparent
Toggle Make Transparent on any rule to knock out solid white, black, or colored backgrounds directly to a clean transparent PNG.
Multi-Rule Color Swaps
Add multiple replacement rules to recolor a two-tone logo or remove a background and recolor an icon in the same pass without cascading conflicts.
Before / After Split Preview
Drag the interactive split handle or switch to side-by-side comparison to inspect every edge before exporting PNG, WebP, or JPEG.
How Selective Image Color Replacement Works
Changing one color in a raster image without damaging the rest of the graphic requires matching pixels by perceptual similarity rather than rigid exact RGB equality. Anti-aliased logo edges, JPEG compression, and shaded surfaces always span a range of neighboring shades.
From rebranding icons and UI badges to testing alternate product colors or knocking out solid backgrounds, you can finish the edit right in your browser.
- Perceptual Redmean Matching
- Human eyes are far more sensitive to green and red shifts than to pure Euclidean RGB math. Redmean weighting groups visually similar tones cleanly at lower tolerance values.
- Soft Edge Feathering
- Hard binary masks create crunchy outlines on curved icons and text. Edge feathering applies a smooth transition weight near the tolerance boundary.
- Relative Luminance Preservation
- Instead of painting a flat solid color over a shaded object, luminance preservation measures how much brighter or darker each pixel is than your picked swatch and applies that exact shading delta to the new target color.
- Conflict-Free Multi-Rule Pipeline
- Every rule evaluates color distance against the original image pixels, so swapping Blue to Red in Rule 1 and Red to Green in Rule 2 works cleanly without overwriting Rule 1's output.
How to Change the Color of an Image
- 01
Upload an Image or Load Sample
Drop a PNG, JPG, WebP, or SVG onto the canvas, or click Try Sample Logo to explore recoloring and transparency immediately.
- 02
Click the Color to Replace
Move your cursor over the image to inspect the live hex swatch and click the color you want to change, or enter a hex value manually.
- 03
Pick New Color & Tune Sliders
Choose a target color (or enable Make Transparent), then adjust Tolerance, Edge Softness, and Preserve Luminance until edges look natural.
- 04
Compare and Export
Stack extra color rules if needed, verify with the Before/After split slider, and download your finished PNG, WebP, or JPEG.
Tips for Clean Color Replacement
Pick the Midtone of Shaded Objects
When recoloring a gradient icon or shaded product, click a midtone pixel rather than the brightest highlight or darkest shadow so Tolerance captures both ends evenly.
Keep Preserve Luminance On for Photos
Turning Preserve Luminance on keeps natural lighting, folds, and gradients intact. Turn it off only when you want a completely flat solid fill.
Use Edge Softness on Anti-Aliased Logos
A small Edge Softness value (15–35%) smooths the semi-blended border pixels around text and vector icons so no colored halo remains.
Stack Separate Rules for Multi-Color Graphics
Rather than cranking Tolerance too high on one rule, add a second color rule for a neighboring shade or background.
Check Transparency on Multiple Backdrops
When using Make Transparent, switch the preview backdrop between Checkerboard, White, and Dark to verify edges are completely clean.
Export PNG or WebP for Transparency
Choose PNG or WebP whenever your image contains transparent areas. JPEG automatically flattens transparent pixels onto a white background.
Color Distance & Luminance Math
Why Euclidean RGB Falls Short
Treating R, G, and B channels equally over-weights blue differences and under-weights green differences compared to human vision. Weighted perceptual redmean distance tracks visual similarity much more closely while running in real time on millions of pixels.
When to Use Preserve Luminance
- Recoloring shaded logos, 3D badges, buttons, and icons.
- Previewing alternate clothing, car, or product colorways.
- Turning a colored highlight into another hue without losing glossy reflections.
Export Format Trade-Offs
PNG preserves full lossless detail and transparency for logos and UI assets. WebP keeps transparency at much smaller file sizes for the web. JPEG is best for opaque photographs when file compatibility is the top priority.
Pixel Matching Formulas
Perceptual Redmean Distance
d = √((2 + r̄/256)·ΔR² + 4·ΔG² + (2 + (255 − r̄)/256)·ΔB²)
Normalized by max distance 765 into a 0–100% tolerance scale.
Smoothstep Feather Weight
w = 1 − smoothstep(innerEdge, outerEdge, d_norm)
Full replacement inside innerEdge, smooth blend across the feather band.
Relative Shading Shift
L_out = clamp(L_target + (L_pixel − L_source), 0, 1)
At the picked source pixel, L_out equals L_target exactly; shadows stay proportionally darker.
Transparency Knockout
α_out = α_orig · (1 − w)
Matched background pixels fade smoothly to alpha = 0 without jagged steps.
Image Color Changer FAQ
Q01How do I change a specific color in an image without affecting other colors?
Click directly on the color you want to change in the preview canvas, pick your new target color, and keep Tolerance tight (usually 15–30%). Only pixels perceptually close to your picked color are updated while unrelated colors stay untouched.
Q02How do I keep shadows and gradients when recoloring an image?
Leave Preserve Luminance & Shading enabled. The tool shifts each matched pixel to your target hue and tone while preserving its original brightness offset, so shadows and highlights remain natural.
Q03Can I make a color or background transparent instead of changing it to another color?
Yes. Click the background color on the image, check Make Transparent (alpha = 0), adjust Tolerance and Edge Softness until fringes disappear, and download as PNG or WebP.
Q04Can I replace more than one color in the same image?
Yes. Click + Add Color Rule to add as many replacement rules as you need. Click any rule to make it active, pick its source color on the image, and set its target color or transparency.
Q05Are my images uploaded to a server?
No. Every color pick, pixel calculation, and file export happens entirely inside your browser's Canvas 2D engine. Your images stay private on your device.
Q06Which image formats can I upload and export?
You can upload PNG, JPG, WebP, and SVG files, and export your edited image as transparent-safe PNG, compact WebP, or standard JPEG.
Browser Image Utilities
More Image & Signature Tools
Combine, slice, recolor, and extract transparent assets locally in your browser — no upload required.
- PNG / JPG / WebPMerge ImagesCombine multiple photos side by side, stacked vertically, or in a custom grid with spacing controls.
- Grid & ZIPSplit ImageSlice any picture into equal grid tiles, carousels, or strips and download all pieces as a ZIP.
- Transparent PNGTransparent Signature MakerDraw a clean digital signature or extract a handwritten one from a photo as a transparent PNG.