Skip to main content

Color Replacement Techniques

Swapping an object's color while keeping its texture and shading

In This Lesson

The Challenge of Replacing Color

Replacing a color — a red car to blue, a green wall to terracotta — is only convincing if you keep the object's luminosity and texture. Paint flat blue over the car and it looks like a sticker; the highlights, reflections, and shading are what make it read as a real blue car. Every good technique here shares one principle: change the hue, preserve the value.

🎨 An Analogy

It is like re-dyeing a shirt rather than painting over it. The weave, folds, and shadows remain; only the pigment changes.

Method 1: Hue-Saturation on a Selection

The everyday method, building on Selective Color:

  1. Select the object (Select by Color or a manual selection) and feather the edge.
  2. Open Colors → Hue-Saturation on Master.
  3. Rotate Hue to the new color; adjust Saturation and Lightness to match its intensity.

Because Hue-Saturation only rotates the existing colors, all the shading rides along automatically — the highlights and shadows of the object stay intact in the new hue.

💡 Big Shifts Need Care

Rotating a hue a full 180° can leave desaturated grays looking off, because near-neutral pixels barely shift. For dramatic swaps, combine with a masked Curves adjustment to rebuild the color's richness.

Method 2: Color Exchange

Colors → Map → Color Exchange swaps one specific color for another across the image. Pick the "from" color (with a tolerance to catch its shades) and the "to" color. It excels at replacing a flat, uniform color — a solid logo background or a single-color graphic — where a whole hue range should become another exact color.

flowchart LR A[Pick source color] --> B[Set tolerance to include its shades] B --> C[Pick target color] C --> D[All matching pixels swapped]

Color Exchange is ideal for flat, well-defined colors.

Method 3: Paint on a Color-Mode Layer

The most flexible, hand-controlled method uses a blend mode that changes hue while keeping luminosity:

  1. Add a new transparent layer above the image and set its blend mode to Color (or LCh Color in GIMP 2.10 for cleaner results).
  2. Pick the new color as your foreground and paint over the object with a soft brush.
  3. Because the layer is in Color mode, your paint supplies only hue and saturation — the original brightness and texture show through.

🎓 Mask, Don't Erase

Paint a little loosely, then add a layer mask to clean the edges rather than erasing. You keep the freedom to refine the boundary and vary the effect's strength with the brush's opacity or the layer's.

Keeping It Realistic

  • Match saturation to the scene. A new color that is more vivid than everything around it screams "edited."
  • Respect reflections. Shiny objects reflect their surroundings; a pure recolor can ignore that. Leave real reflections alone.
  • Mind the edges. Feather and check for a rim of the old color, exactly as in selective color work.
  • Keep whites and blacks. Very bright highlights and deep shadows should usually stay neutral, not take the new hue.

⚠️ The Dead Giveaways

Two things expose a bad recolor: an over-saturated result that outshines the scene, and a leftover fringe of the original color at the object's edge. Fix both and even a bold swap looks natural.

Practice Activities

  1. Three ways. Recolor the same object with Hue-Saturation, Color Exchange, and a Color-mode layer. Compare realism and control.
  2. Product variants. Take one product photo and generate it in three colors — the classic e-commerce use of color replacement.
  3. Hard case. Recolor a shiny or reflective object and preserve its highlights and reflections.

Summary

✅ Key Takeaways

  • Convincing replacement changes hue while preserving value and texture.
  • Hue-Saturation on a selection is the everyday method; shading rides along automatically.
  • Color Exchange swaps a specific flat color for another exact color.
  • A Color-mode (or LCh Color) layer lets you paint a new hue by hand while keeping brightness.
  • Match saturation to the scene and eliminate edge fringing for realism.

➡️ What's Next

Next, reduce a photo to just two or three colors with Duotone and Tritone Effects.

Additional Resources