EN
My tools

Replace Color in Image

Replace one color in a picture with another, make it transparent or keep only that color. Tolerance, soft edges and shading kept. Runs in your browser.

"auto" uses the most common color in each picture (usually the background).
Color distance in OKLab × 100. 0 = exact color only; 5–15 catches anti-aliased edges and JPEG noise; 30+ catches whole color families.
Used by "Replace with a new color".
Pixels between tolerance and tolerance + this value are changed partly, for smooth edges.
My tools →
Advertisement

This tool finds every pixel of one color in a picture and changes it: recolor it to a new color, make it transparent (for example to remove a plain background) or keep only that color and clear everything else. Colors are compared in the OKLab color space, so the tolerance behaves the same for light and dark colors, and the shading option keeps highlights and shadows when you recolor an object. Everything runs in your browser — your images are never uploaded.

How to use this tool

  1. Choose one or more images (PNG, JPG, WebP, GIF…).
  2. Type the color to find, or keep "auto" to use the most common color (usually the background).
  3. Pick an action and, for replacing, the new color.
  4. Raise the tolerance and soft edge until the edges look clean, then download the PNG.

Formula

distance = 100 × √((L₁ − L₂)² + (a₁ − a₂)² + (b₁ − b₂)²) in OKLab · weight = 1 if distance ≤ tolerance, falling to 0 across the soft edge

With shading on, each matched pixel keeps its own offset from the found color: new = target + (pixel − found), all in OKLab, so darker and lighter parts of the object stay darker and lighter. Black to white is a distance of 100.

Example

With the found color #2563EB and tolerance 8, a pixel of exactly that blue is replaced completely by the new color — red #FF0000 stays #FF0000 — while an orange pixel such as #F59E0B, about 50 units away, is left untouched. With "Make it transparent", the same blue pixels get alpha 0 and the PNG keeps the rest.

Frequently asked questions

Can I remove a white background?

Yes: choose "Make it transparent", set the color to #FFFFFF (or keep auto if white is the most common color) and use a tolerance of about 5–10 with a soft edge of 3–5 to clean anti-aliased edges. Areas of white inside the subject are removed too, so use a lower tolerance if that happens.

Why does the output come out as PNG?

PNG keeps transparency and does not add compression artefacts. Convert it to JPG afterwards if you need a smaller file and do not need transparency.

Why did some pixels of a JPG not change?

JPEG compression spreads small color variations across flat areas. Raise the tolerance a little (10–20) so these near-identical pixels are included.

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). Replace Color in Image. https://kakao.mobile/tools/replace-image-color-tool/

MLA

“Replace Color in Image.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/replace-image-color-tool/.

Advertisement