Recolor Image

Change one color in a picture to another and keep its shading, or remove a color from an image to make it transparent. You can also keep only one color and turn the rest grey, and change several colors at once.

  1. 1Choose an image
  2. 2Click a color
  3. 3Download

1Choose an image

or drop an image here, or paste one with Ctrl/Cmd+V

off

Your file stays in your browser; it is not uploaded. No cookies unless you accept: what we count.

2Pick and change colors

Colors in this image

Choose an image to see its main colors.

Click a color here, or click anywhere in the picture, to choose the color to change.

Your color changes
    Change 1
    Whole image

    One click flips every pixel to its opposite (each red, green and blue value becomes 255 minus itself), after your color changes. Transparency stays. For negatives and per-channel options, use the color inverter.

    3Download

    Before and after

    The example image, changed with this tool. Middle: the film strip's blue frames replaced with green at tolerance 18, with their lighter and darker parts kept (the small blue dot is close enough to change too). Right: only the fox's orange kept at tolerance 12, everything else grey.

    Example image: CrispKit's cartoon fox mascot in a dark hoodie with headphones, in front of a film strip
    BeforeOriginal
    The same image with the blue film frames and the small blue dot recolored green
    ReplaceBlue to green, shading kept
    The same image in black and white except the orange fox
    Keep only thisOrange kept, the rest grey

    How to change the color of something in a picture

    1. Click the color you want to change in the picture, pick it from the list of colors found in the image, or type its hex code.
    2. Choose what happens to it: Replace it with a new color, Make transparent to remove it, or Keep only this to turn everything else grey.
    3. Raise Tolerance until the pink highlight covers the whole object. Its shadows and highlights are darker and lighter versions of the color and need catching too.
    4. Raise Soft edge if the border looks cut out, and leave Keep shading and texture on: it moves every matched pixel by the same step in CIELAB, so folds and shadows survive in the new color instead of looking painted on.
    5. Press Add another color for more changes, then Download. Use PNG if you made anything transparent; JPG has no transparency.

    Tolerance is the largest color difference that still counts as a match, measured with CIEDE2000 (Delta E 2000). The tool's implementation matches all 34 test pairs in Sharma's published CIEDE2000 test data to within 0.00005. Some pairs worked out with that same code:

    Color 1Color 2Delta E 2000
    White #FFFFFFOff-white #FAFAFA1.0
    White #FFFFFFLight grey #F0F0F03.0
    White #FFFFFFGrey #E0E0E06.5
    Red #FF0000Slightly darker red #E600005.4
    Red #FF0000Darker red #CC000011.0
    Red #FF0000Dark red #99000021.1
    Red #FF0000Orange #FF800021.2
    Purple #5337E1Green #1FA97155.5

    Dark red and orange are almost the same distance from pure red, so a tolerance big enough to catch a red object's deep shadows starts to catch nearby oranges. When that happens, lower the tolerance and add a second change for the shadows. The tool starts at a tolerance of 20 with a soft edge of 8: raise it for photos and JPGs, lower it for flat graphics.

    This tool works by color. If the same color also appears somewhere you want to keep, select the object in a photo editor instead: Adobe's Photoshop help (last updated 23 February 2026, read 27 October 2026) has you select it with Quick Selection, add a Hue/Saturation adjustment layer, and move the Hue and Saturation sliders.

    What each setting does

    • Soft edge fades the change out over the next few steps past the tolerance, so borders and anti-aliased edges blend instead of looking cut out.
    • Make transparent sets the matched pixels' alpha to zero (partly transparent inside the soft edge). Save as PNG to keep the transparency.
    • Keep only this leaves the matched color as it is and turns every other pixel into a grey of the same lightness. Add several Keep changes to keep more than one color.
    • Every change matches against the original colors, so one change never catches the result of another.
    • Invert colors turns each red, green and blue value into 255 minus that value across the whole picture, after any color changes. Alpha is not touched.

    FAQ

    Can I get a color palette from an image?

    Yes. Choose an image and the main colors appear under "Colors in this image", largest first, up to 10. Open "Save this palette" to copy the HEX list or CSS variables, or download a PNG of swatches or a GIMP palette (.gpl), which Inkscape reads too. Very similar shades are merged into one, and the HEX codes are averages of those shades, so a single pixel may differ slightly.

    Created by Saad Danish.

    Report a problem or suggest a feature

    More free tools