Skip to content
ColorsGuide

Recolour an SVG or image

Swap the colours in a logo, icon set or illustration for the colours in your palette. Each colour is matched to its nearest palette colour, and you can change any of them before you download. Files are processed on your device and never uploaded.

Example paletteUsed until you create or choose your own
Your palette:#FBE9C8#F4A259#E86A4A#2A7FA8#0F4C6B

Up to 2 MB. Scripts, event handlers, embedded HTML and external links are removed before anything is shown, and nothing is uploaded.

Paste or choose an SVG to see it here, before and after.

SVG or image?

An SVG stores its colours as text, for example fill="#e11d48", so recolouring it is exact: every fill, stroke and gradient stop with that colour is replaced and nothing else changes. Images are grids of pixels with no idea which pixels belong to the logo and which to the background, so recolouring them is an approximation.

How image recolouring works

The tool finds the main colours in the image, then moves every pixel that is close to one of them by the same amount the chosen colour moves. Shifting rather than painting over keeps shading, texture and smooth edges. Tolerance sets how close a pixel must be: low values change only near-exact matches, high values also catch shadows and highlights, and can start to touch neighbouring colours.

Its limits are worth knowing. It does not recognise objects, so a red logo and a red detail in a photo change together. Gradients that cross the tolerance edge change only partly, and JPEG artefacts can leave speckles. For anything that will be printed or used widely, recolour the original vector artwork instead.

How nearest colours are chosen

Suggestions use the CIEDE2000 colour difference (ΔE), which tracks how different two colours look to people better than comparing RGB numbers. The ΔE next to each option tells you how big the change is: under 2 is barely visible, over 10 is a clearly different colour.

Safety

SVG files can contain scripts and links. Before showing or changing a file, ColorsGuide removes scripts, event handlers, embedded web pages and references to outside files, and refuses files that use XML entity tricks. The preview is drawn as an image, which browsers never allow to run scripts.

Was this page useful?