How to use Replace a Color in an Image
Select a color, adjust tolerance and softness, and replace matching pixels while preserving transparency.
About Replace a Color in an Image
Use a replacement color on flat product backgrounds or simple graphics. Start with a narrow tolerance. Matching colors can occur in more than one part of the image.
- Open JPEG, PNG or WebP.
- Choose source and replacement colors.
- Preview the affected area, then apply and export.
How it works
Calculate the distance between each RGB pixel and the selected source. Blend into replacement RGB according to the tolerance and edge softness.
A quick example
Change an isolated red accent to blue. A narrow tolerance helps preserve the rest of the image.
Assumptions, edge cases & limits
- The editor re-encodes a new local image. Check preview and output before replacing the original.
- Review your output and keep your original file.
Questions about Replace a Color in an Image
How do I replace a selected color in a picture?
Open JPEG, PNG or WebP. Choose source and replacement colors. Preview the affected area, then apply and export. Change an isolated red accent to blue. A narrow tolerance helps preserve the rest of the image. The editor re-encodes a new local image. Check preview and output before replacing the original.
Will this affect all pixels of the matching color?
Yes. It matches colors throughout the image. A narrower tolerance limits changes to close matches.
Can I undo it before exporting?
Yes. The operation is an editable step in the in-memory history.
Related image workflows
For processing, privacy and service availability, see our privacy details and methodology. Tool-specific questions and limitations are explained above.
A result or explanation needs correcting? Tell us the tool name and an example.