Home › Image Tools › Replace Color in Image

Replace Color in Image

Click any color in your picture and swap it for a new one, or make it transparent. Matching uses perceptual CIELAB color distance and keeps the original shading, so a red car turns into a believable blue car, not a flat blue blob.

Click the image to pick a color

Advertisement
Advertisement

How to use the Replace Color in Image

  1. Add an image: drop, paste or choose a file. A sample photo of a red car is loaded to show how it works.
  2. Click the color you want to replace in the picture. It becomes the Find color of the active color card.
  3. Choose the new color with Replace with, or tick Make transparent.
  4. Adjust Tolerance until the whole object changes. Use the Selection view to see exactly which pixels are matched, and Edge softness to blend the borders.
  5. Download the result as PNG or JPG. Use Add another color to swap several colors at once.

How the color replacement works

  1. Convert to CIELAB. Every pixel is converted from sRGB to the CIELAB color space (D65 white point), where L is lightness and a/b are the color axes. Equal distances in Lab look roughly equally different to the human eye.
  2. Measure similarity. For each pixel the tool computes the Delta E distance to your picked color: ΔE = √(ΔL² + Δa² + Δb²). With Keep shading on, ΔL is weighted at 35 % so darker and lighter versions of the same color still match.
  3. Build a soft mask. Pixels closer than the tolerance are fully replaced; pixels a bit farther fade out over the edge-softness range, which avoids jagged borders.
  4. Transfer the color. The new color is shifted by each pixel's own difference from the picked color (L_new = L_target + (L_pixel − L_picked), and similarly for a and b at half strength), then converted back to RGB.

Tolerance guide

ToleranceMatchesGood for
0–10Only nearly identical colorsFlat graphics, logos, icons, screenshots
10–30The color plus its lighter and darker shadesClothing, cars, painted walls, products
30–50A broad family of related colorsSkies, foliage, gradients
50+Many different colorsRarely useful: combine with "Only the area I clicked"

Tips

  • Use the Selection view while you adjust Tolerance: matched pixels glow pink, everything else turns gray.
  • Two-tone objects: add a second color card for the shadow tone if one card does not catch the whole object.
  • Change a background color: click the background, enable Only the area I clicked, then pick the new color or make it transparent.
  • White or black areas have no hue to shift. Turn off Keep shading to paint them a solid new color.

Frequently asked questions

How do I change one color in a picture to another?

Load the picture, click the color you want to change, then choose a new color in the Replace with box. Raise Tolerance until the whole area changes and lower it if neighboring colors change too. Keep shading and texture on for a natural look.

What does Keep shading and texture do?

Instead of painting every matched pixel the same flat color, the tool converts colors to CIELAB and moves each pixel by the same amount the picked color moves. Highlights stay lighter, shadows stay darker and texture stays visible, so the new color looks like it was always there.

How is color similarity measured?

Pixels are compared in the CIELAB color space with the Delta E (CIE76) distance, which matches human perception better than raw RGB differences. With Keep shading on, lightness differences count less, so shadows and highlights of the same color are matched too.

Can I replace a color with transparency?

Yes. Tick Make transparent on a color card and download as PNG. JPG cannot store transparency, so transparent areas would become white in a JPG.

Why do other parts of my image change color too?

They are similar to the color you picked. Lower Tolerance, or tick Only the area I clicked so only the connected region around your click is changed.

Is my picture uploaded anywhere?

No. All processing happens on your device with the Canvas API. Nothing is uploaded and no account is needed.

Related tools

Make Image TransparentRemove a white or solid-color background and save a transparent PNG, right in your browser.Image Color PickerPick any pixel colour from an image and get HEX, RGB, HSL plus a palettePhoto FiltersApply 27 one-click photo filters like Vintage, Noir and Teal & Orange with an intensity slider.Duotone GeneratorTurn any photo into a bold two-color duotone image with presets, custom colors and intensity.Background RemoverRemove image backgrounds automatically with AI.Image to Text (OCR)Extract text from images, screenshots and photos with OCR in 25+ languages, right in your browser.Image CompressorShrink images to a target size like 100 KB.Image ResizerResize images to any size without losing quality.Compress Image to 20KBShrink any photo to under 20KB (or any target size).Compress Image to 100KBShrink any photo to under 100KB automatically, with the best quality that fits.Compress JPEG to 50KBShrink photos to under 50KB for forms, passports and exams.HEIC to JPGConvert iPhone HEIC photos to JPG.WEBP to JPGConvert WEBP images to JPG in bulk.PNG to JPGBatch convert PNG images to JPG with a background color.JPG to PNGBatch convert JPG images to PNG.Image CropperCrop images, including circle crops for profile pictures.Rotate & Flip ImageRotate images by any angle or mirror them, one or many at once.Meme GeneratorMake memes with classic templates and custom text.Collage MakerCombine photos into a grid collage.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Logo MakerDesign a text logo with fonts, icons and colors, then save SVG or PNG.Certificate MakerDesign certificates from templates and export one or many as PDF.WEBP to PNGConvert WEBP images to PNG, keeping transparency.SVG to PNGConvert SVG graphics to PNG or JPEG at any scale.PNG to ICOCreate multi-size favicon .ico files from PNG.GIF MakerTurn videos and images into GIFs, trim and compress.Business Card MakerDesign business cards and download a print-ready PDF.Flyer MakerDesign printable and social media flyers from free templates.Poster MakerDesign posters in A0–A5 and US sizes and download a print-ready PDF.Invitation Card MakerCreate printable birthday, wedding and party invitations for free.Color Palette GeneratorGenerate beautiful color palettes and export them.HEX to RGBConvert HEX colors to RGB and other formats.RGB to HEXConvert RGB to HEX with sliders, live swatch and one-click copy.HEX to HSLConvert HEX colors to HSL and back with interactive sliders.RGB to CMYK ConverterConvert RGB and HEX colors to CMYK for print, and back.Color Contrast CheckerCheck WCAG contrast ratios and find accessible text colors.Pantone to HEXLook up approximate HEX, RGB and CMYK values for Pantone colors.Color Name FinderFind the closest color name for any HEX or RGB color.AVIF to JPGConvert AVIF images to widely supported JPG.PNG & JPG to WEBPConvert PNG and JPG images to smaller WEBP files.Aspect Ratio CalculatorCalculate image sizes for 16:9, 4:3 and any ratio.Thumbnail Safe ZonePreview YouTube and TikTok thumbnail safe zones.Color Blindness SimulatorSee any image as people with protanopia, deuteranopia, tritanopia or achromatopsia see itAdd Text to ImageAdd styled text layers with outline and shadow to any photo, then downloadThumbnail MakerDesign 1280×720 YouTube thumbnails with templates, bold text and stickersImage Border AdderAdd a border, rounded corners, matte and shadow to a photo onlineWallpaper GeneratorCreate gradient and pattern wallpapers sized for any phone, tablet or desktopColor Shades GeneratorTurn one HEX color into a 50-950 scale plus tints, shades and tones, ready to export.Round Corners ImageGive any picture rounded, circle or squircle corners and save a transparent PNG.Printable Calendar MakerMake a printable month or year calendar with holidays, then print or save PDF.YouTube Thumbnail GrabberPaste a YouTube link to get every thumbnail size, from HD 1280x720 down to 120x90.Tailwind Color GeneratorTurn one color into a full Tailwind 50–950 shade scale and export the config or CSS.Image Flipper & MirrorMirror photos horizontally or flip them vertically, one image or a whole batch.Printable Planner GeneratorDesign daily or weekly planner pages with your dates and colors, then print them as a PDF.CSS Gradient GeneratorDesign linear, radial and conic CSS gradients with draggable stops and export CSS or PNG.Grayscale Image ConverterTurn color photos into black and white with luma, luminance or average methods and sepia.Graph Paper GeneratorMake printable square, dot, isometric or hex graph paper and download it as PDF, PNG or SVG.Color MixerMix two colors in sRGB, linear, OKLab or OKLCH, or blend them with Photoshop-style modes.Lined Paper GeneratorCreate printable lined paper: wide, college or handwriting ruling, Cornell notes, PDF or PNG.Random Color GeneratorGenerate random HEX colors one at a time or in batches, with hue, saturation and lightness ranges.Photo EditorEdit photos online: brightness, contrast, saturation, crop, rotate, flip and filters with undo.Chart MakerMake bar, line, area, pie and doughnut charts from a simple table and download PNG or SVG.Color WheelFind complementary, triadic, analogous and other color harmonies on an interactive wheel.Image SharpenerSharpen soft or slightly blurry photos with a real unsharp mask and before/after view.Venn Diagram MakerMake 2- or 3-circle Venn diagrams from lists; overlaps are found for you. Export PNG or SVG.Invert Image ColorsTurn any picture into a color negative, with R/G/B channel toggles and an intensity slider.Mind Map MakerBuild mind maps fast with keyboard shortcuts and auto layout, then export PNG, SVG or JSON.Image SplitterSplit an image into a rows × columns grid of tiles and download them one by one or as a ZIP.Org Chart MakerType an indented list of names and titles and get a clean org chart to download as PNG or SVG.Image CombinerCombine images side by side, stacked or in a grid, with spacing, background color and alignment.Timeline MakerCreate horizontal or vertical timelines from dated events with colors, then save PNG or SVG.Screenshot BeautifierPut screenshots on gradient backgrounds with padding, rounded corners, shadow and a browser frame.Gantt Chart MakerPlan tasks with dates, progress and dependencies on a Gantt chart, then export PNG or CSV.Image UpscalerEnlarge images 2×, 3× or 4× with Lanczos-3 or bicubic resampling and optional sharpening.Word Cloud GeneratorTurn any text into a word cloud in shapes like a heart or star, then save it as PNG or SVG.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.Pie Chart MakerMake pie and donut charts with labels, percentages and a legend, then download PNG or SVG.Favicon GeneratorMake a favicon.ico, PNG icons, apple-touch-icon and web manifest from an image, text or emoji.Color PickerPick any color and get HEX, RGB, HSL, HSV and CMYK codes, shades and a screen eyedropper.HTML Color CodesAll 140 HTML color names with HEX and RGB codes, plus the 216 web-safe colors. Click to copy.Passport Photo MakerMake passport and visa photos for any country and print them on a 4x6 sheet.PNG to SVG ConverterConvert PNG or JPG images to scalable SVG vectors with color and detail control.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.Image DPI ChangerChange the DPI of JPG and PNG images without re-encoding, and see the print size.Online PaintDraw and paint in your browser: brushes, shapes, fill bucket, text, undo and PNG export.Signature MakerDraw or type your signature and download it as a transparent PNG or SVG.Color Palette from ImageExtract the main colors of any photo as HEX codes, CSS variables and a palette PNG.Photo to SketchTurn any photo into a pencil, charcoal or color sketch in your browser and download it.Image ConverterConvert images between JPG, PNG, WEBP, AVIF, BMP, GIF and ICO in batches, right in your browser.HEIC to PNGConvert iPhone HEIC and HEIF photos to lossless PNG in batches, with ZIP download.GIF Frame ExtractorSplit an animated GIF into PNG frames with delays, a sprite sheet and ZIP download.GIF to MP4Convert animated GIFs to MP4 video with loops, scaling and background color, in your browser.ICO to PNGExtract every size from ICO and CUR icon files and save them as PNG images or a ZIP.Pixel Art MakerDraw pixel art on an 8 to 64 px grid with palettes, fill and mirror, then export PNG or SVG.Quote Image MakerTurn a quote into a shareable image for Instagram, Stories or X with backgrounds and fonts.Social Media Image ResizerResize photos for Instagram, Facebook, X, LinkedIn, YouTube, TikTok and Pinterest in one go.Profile Picture MakerMake a round or square profile picture with a ring border and color or gradient background.Before and After Image MakerCombine two photos into a labeled before and after image or an animated slider video.Image Diff CheckerCompare two images and highlight every changed pixel, with % difference and a swipe slider.Photo Frame MakerPut photos in polaroid, film strip, gallery, rounded or shadow frames with a caption.Device Mockup GeneratorPut a screenshot into a phone, tablet, laptop, monitor or browser frame and download a PNG.Glitch Image EffectAdd RGB split, scanlines, slice shifts and noise to a photo for a digital glitch look.Emoji to ImageTurn any emoji into a PNG image from 64 to 1024 px, transparent or on a color, in batch.Text to ImageTurn text into a PNG image with your font, size, colors, padding, alignment and wrapping.Seamless Pattern GeneratorMake seamless dot, stripe, wave, grid, zigzag and check patterns. Export CSS, SVG or PNG.SVG OptimizerMinify SVG files: strip metadata, comments and editor junk, round numbers, compare sizes.Compress Image to 200KBShrink any photo to under 200KB automatically, with the best quality that fits.CMYK to RGBConvert CMYK percentages to RGB and HEX color codes with sliders and a live preview.HSL to HEXConvert HSL and HSLA colors to HEX and RGB with sliders and a live preview.HEX to RGBAConvert HEX color codes to CSS rgba() with an opacity slider and one-click copy.RGBA to HEXConvert rgba() colors to 8-digit HEX, or flatten transparency onto any background.HEX to CMYKConvert HEX color codes to CMYK percentages for print, with a live preview.