← Home | Tutorials
中文 English
🔒 100% Local Browser Processing · Zero Uploads · Zero Privacy Risk

Change a Product Colour in a Photo

By Web PSEditor • Difficulty: Intermediate • 7 min read • Updated: 13 Nov 2026
Target, replacement, power
Tools → Replace Color works on the selected layer and keeps the shadows.
Open Web PSEditor & Recolor →

You sold the same mug in five colours and only shot one. Or the sample arrived in the wrong shade. Recolouring a product photo is one of the few jobs where a browser editor genuinely earns its place, provided the object is a fairly uniform colour and the lighting is not wildly uneven.

Tools → Replace Color takes a Target colour, a Replacement colour, a Power tolerance, an Opacity and a Mode. That is a small set of controls, and most of the quality comes from two things you do before touching them: sampling the right hex, and choosing an object that can survive the swap.

Web PSEditor Tools menu with Content Fill and Replace Color
Replace Color sits directly under Content Fill in the Tools menu. Both act on the selected layer and both need a raster image.

Before Replacing: Get the Real Colour

Sample with the colour picker

Use the Pick color tool (the eyedropper on the left toolbar) on a mid-tone area of the object — not a highlight, not a shadow. Highlights are washed toward white and shadows toward black; both give a hex that is not the product colour, and the replacement will then look wrong across the whole surface.

Create the replacement on a separate layer if the job matters

Duplicate the layer first (Layer → Duplicate) and run Replace Color on the copy. If the result is close but not right, you can erase parts of the copy instead of undoing the whole operation.

The Five Controls

ControlRange / defaultWhat it decides
TargetCurrent foreground colourWhich colour is being replaced. Set it by sampling, not by guessing a hex
Replacement#ff0000 defaultThe new colour. Enter the exact brand hex if there is one
Power0–255, default 20Tolerance. Higher catches more shades around the target — and more of the background
Opacity0–255, default 255Alpha of the replacement. Leave at 255 for a normal swap; lower values let the layer underneath show through
ModeAdvanced / SimpleAdvanced preserves more of the original luminance variation; Simple flattens toward the replacement

Start with Power at 10 and climb in steps of five. A low value leaves a rim of the old colour where the object curves away from the light; a high value starts eating the background and neighbouring objects. The right number is the point just before the background shifts.

Worked Example: Blue Mug to Terracotta

  1. Sample a mid-tone of the mug's body with Pick Color. Note the hex.
  2. Duplicate the layer. Select the copy.
  3. Tools → Replace Color: Target = the sampled hex, Replacement = the brand terracotta, Power = 10, Mode = Advanced.
  4. Confirm, inspect at 100%. If the handle still has a blue rim, undo and retry at Power 20.
  5. Check the reflection on the table and the background near the mug's edge — that is where an over-high Power shows itself.

Why a Swap Looks Fake

When to Use a Different Approach

If the object is already isolated on a transparent or plain background, a cleaner route is: select the object, fill a new layer with the target colour, and set that layer's Composition mode to Multiply or Color. That keeps every bit of shading and gives you a single swatch to change later — the technique covered in the layer blend modes guide.

If the surface is textured, or the object has to keep a printed label, the honest answer is that no automatic replacement will look right. Reshooting in the right colour takes ten minutes; repairing a bad swap takes longer and still looks like a swap.

💡 Sample a mid-tone, start Power at 10, use Advanced mode, and fix the coloured spill on the table separately. Big hue jumps need a brightness correction afterwards.

Quick Answers

Why does the recoloured object look dirty or muddy?

Because the replacement changes hue but keeps the original luminance. A dark object turned light-coloured keeps its dark shading, which reads as mud. After replacing, use Image → Color Corrections to lift brightness, or use a blended colour layer (Multiply or Color) so the shading is applied to the new hue instead of replacing it.

What Power value should I use?

Start at 10 and raise it in steps of five until the old colour disappears from the curved edges, then stop one step earlier. If the background or a neighbouring object starts shifting, you have gone past the right tolerance.

The background near the product still has a colour cast. How do I fix it?

That is coloured spill — light bouncing off the product onto the table. Replace Color on the product does not touch it. Select the background area separately and either desaturate it with Image → Color Corrections or shift its hue toward neutral, so the cast matches the new product colour.

Web PSEditor is an independent project. Every step on this page is tested against the current build before it is published. If a menu or option has moved, tell us through the contact page and we will correct it.

Related Tutorials

🎯 Hands-on Practice 100% Local

Recolour one uniform-coloured object twice: once at Power 10 and once at 60, and note where the background starts to drift.

Try It in Web PSEditor