Replace image color
Open Replace image color on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "image-color-replacement",
"category": "image-tools",
"built": true,
"requirements": "Runs locally without uploads. One still PNG, JPEG or WebP up to 20 MiB and 16 million decoded pixels, with at most 16,384 pixels per side. Replaces pixels within a hard RGB distance of the selected source color. Zero tolerance matches the exact color; 100 matches all colors. Decoded alpha bytes stay unchanged. The browser may discard hidden RGB values in transparent pixels and convert the source color profile. Download the complete PNG, black-and-white selection mask and settings report. Original metadata is not retained. Outputs are limited to 100 MiB in total; processing stops after 30 seconds.",
"implementation": {
"fields": [
{
"key": "source",
"label": "Source color",
"value": "#000000",
"type": "color"
},
{
"key": "replacement",
"label": "Replacement color",
"value": "#00ff00",
"type": "color"
},
{
"key": "tolerance",
"label": "Color tolerance (%)",
"value": "0",
"type": "number",
"min": 0,
"max": 100,
"step": 0.1
},
{
"key": "includeTransparent",
"label": "Include fully transparent pixels",
"value": false,
"type": "checkbox"
}
],
"registrationFamily": "pixel-editing",
"files": true,
"input": false,
"multiple": false,
"accept": ".png,.jpg,.jpeg,.webp",
"maxFileBytes": 20971520,
"deferImagePreview": true,
"note": "Runs locally without uploads. One still PNG, JPEG or WebP up to 20 MiB and 16 million decoded pixels, with at most 16,384 pixels per side. Replaces pixels within a hard RGB distance of the selected source color. Zero tolerance matches the exact color; 100 matches all colors. Decoded alpha bytes stay unchanged. The browser may discard hidden RGB values in transparent pixels and convert the source color profile. Download the complete PNG, black-and-white selection mask and settings report. Original metadata is not retained. Outputs are limited to 100 MiB in total; processing stops after 30 seconds.",
"experience": {
"automatic": false,
"single": false,
"inputMaxLength": 1000000,
"inputMode": "text",
"label": "Your text",
"placeholder": "Type or paste your input…",
"help": "Up to 1,000,000 characters. Review the settings before running.",
"helpParts": [
"Up to 1,000,000 characters.",
"Review the settings before running."
],
"action": null
},
"mode": "explicit",
"interactive": false
},
"execution": "Browser interface",
"api": null,
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Replace one color in an image while keeping transparency. Adjust tolerance and download the edited PNG and selection mask.
How to use Replace image color
- Choose a still PNG, JPEG or WebP image.
- Select the source color, replacement color and tolerance.
- Run the tool, compare the original and result, and download the PNG, selection mask or report.
Useful next steps
See exactly what changed
The selection mask is white where a pixel matched and black everywhere else. Tolerance uses RGB distance. It is a hard threshold, not a feathered selection.
Keep transparency
The replacement preserves the decoded alpha channel. Fully transparent pixels are skipped unless you include them. Browser decoding can change hidden RGB values and color profiles; original metadata is not copied.