Tools38

A PRACTICAL COLOR GUIDE

How to replace a specificcolor in a photo or PNG

Click any object hue and shift it smoothly in OKLab without losing natural folds or shine.

Select any color in a product photo, garment, or PNG icon and replace it smoothly in perceptual OKLab space with adjustable tolerance and feathering.

Follow the guide
A REAL STUDIO EXAMPLE
Before Original Blue Garment / Object: Flat paint-bucket fills destroy fabric & surface texture
After Shifted to #C81E51 Studio Ruby: Perceptual OKLab delta rotation keeps lighting real
Clicked source object hue → Smooth OKLab hue/chroma shift with intact specular shading
QUICK VIDEO TUTORIAL How to replace a specific color in a photo or PNG Click any object hue and shift it smoothly in OKLab without losing natural folds or shine. Watch the video

How to replace a specific color in a photo or PNG

Open Replace Image Color in your browser to select any color in a product photo, garment, or PNG icon and replace it smoothly in perceptual OKLab space with adjustable tolerance and feathering. Everything runs locally on your device with instant sync across the shared Active Palette bar.

01

Upload your photo and click the color you want to swap

Click Upload Image (supporting PNG, JPG, WebP, AVIF, GIF, SVG, BMP, ICO, and TIFF) and click directly on the garment, product, or icon area you want to recolor.

Then choose your desired replacement color from the target picker or click any swatch in your Active Palette bar.

Click a midtone pixel: Sampling a well-lit midtone area on the object captures both its shaded folds and brighter highlights most evenly.

02

Dial in Tolerance and Feather for seamless edges

Raise Tolerance until the entire object surface shifts cleanly, then adjust Feather to create a soft perceptual falloff where the object meets hair, skin, or background pixels.

Drag the interactive Split divider across the photo to inspect edge transitions before exporting.

Perceptual Tolerance

Measures 3D OKLab distance from your clicked sample so shaded folds of the same hue stay included.

Edge Feathering

Blends boundary anti-aliased pixels smoothly—eliminating crunchy cutout halos on PNGs and hairlines.

Shading Preservation

Retains specular highlights and shadow gradients so glossy plastics and fabrics look natural.

03

Download your recolored PNG at full sharpness

Switch to Result or click Download PNG to save the recolored image with full original alpha transparency intact.

/* Perceptual OKLab Selective Shift Summary */
Sampled Source:  #2563EB  oklch(54.6% 0.215 263)
Target Swatch:   #C81E51  oklch(53.2% 0.205 12)
Tolerance / Soft: 28% / 16% (Specular Luminance Retained)
A FEW USEFUL DETAILS

Common questions

Why did background objects of a similar color also shift?

Color replacement operates globally on matching OKLab hues across the image; lower Tolerance slightly if a nearby object shares a close hue.

Can I replace pure white or pure black objects with a color?

Neutral grays/whites have near-zero chroma; keep Tolerance tight so surrounding white backgrounds are not included.

Are product photos uploaded to an external API?

No—every pixel transform executes locally on HTML5 Canvas inside your browser.

YOUR TURN

Try Replace Image Color

Click any object hue and shift it smoothly in OKLab without losing natural folds or shine.

Open Replace Image Color

Image detail

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina