Replace Image Color
Replace pixels within a chosen RGB tolerance while preserving their alpha channel.
Your workspace
Temporary server processingThis tool swaps specific colors within an image for a new color, using an RGB tolerance setting to identify target pixels while preserving the existing alpha channel for transparency.
How to replace image colors
- Upload the image you wish to modify.
- Enter the source color you want to replace and the replacement color using hex codes, then adjust the RGB tolerance slider to control how strictly the color match is applied.
- Download the processed image, which retains the original dimensions and transparency settings.
Understanding color replacement
The tool analyzes each pixel against your chosen source color. If the difference between the pixel's RGB values and your source color is within the specified tolerance, that pixel is updated to the replacement color. This process operates on the RGB channels independently of the alpha channel, ensuring that transparent or semi-transparent areas remain unaffected by the color swap.
Managing processing limits
All images are processed on the server with a maximum limit of 16 megapixels and a 40 MB total file size. Because jobs and their outputs are deleted 15 minutes after processing, ensure you download your result immediately. No external services or AI models are used to perform these operations.
Color swap example
An image with a white background (#ffffff) and a tolerance of 20.
Pixels matching white within the tolerance range are replaced with your chosen color, while the rest of the image remains unchanged.
Frequently asked questions
Does this tool affect transparent areas?
No, the tool is designed to preserve the alpha channel, meaning transparent or semi-transparent pixels are not altered during the color replacement process.
What does the RGB tolerance setting do?
The tolerance value determines how similar a pixel must be to the source color to be replaced; higher values capture a wider range of similar shades, while lower values are more restrictive.