A worked example: brand blue, white and a translucent tint
A small badge like this has three colour tokens, even though one of them is written two ways:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> <rect fill="#3B5BDB" width="32" height="32" rx="6"/> <path fill="none" stroke="white" stroke-width="3" d="M9 17l5 5 10-12"/> <circle fill="rgba(255,255,255,0.5)" cx="26" cy="6" r="3"/> </svg>
The list on the right will show #3b5bdb once and #ffffff twice: white and the opaque part of the rgba() tint are the same colour with different alpha. Pick teal #0f766e for the blue and #111827 for the white, and the markup becomes:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> <rect fill="#0f766e" width="32" height="32" rx="6"/> <path fill="none" stroke="#111827" stroke-width="3" d="M9 17l5 5 10-12"/> <circle fill="#11182780" cx="26" cy="6" r="3"/> </svg>
The 50% opacity is kept as an eight-digit hex suffix (80, because 0.5 × 255 rounds to 128). The picker itself is a standard HTML colour input, so it only chooses opaque #rrggbb; existing transparency is reattached after the swap.
How to use the colour changer
- Drop an SVG or paste the markup. A preview appears on the left, and Colours found lists each swatch, its hex value, and how many times it occurs.
- Click the picker next to a colour and choose a replacement. You can change several colours before saving.
- Reset colours appears once you have made a change and restores the original palette without unloading the file. The other reset control clears the file so you can drop a new one.
- Download (the name ends in
-recolored.svg), copy the markup, or open the result in the editor if you need to adjust one shape, a gradient, or typography.
currentColor, default black, and one-shape edits
Icons meant to inherit a button's text colour should use fill="currentColor". That keyword will not show up in the swatch list, and the picker cannot write it. Set it in the SVG code editor (or the code panel of the visual editor). It only has an effect when the SVG is inlined in HTML. An <img src="icon.svg"> cannot see the page's CSS color, so those icons need a real fill.
The opposite problem is a silhouette that looks black but lists no colours. In the SVG spec, a missing fill is black. There is nothing in the file to search-and-replace. Add an explicit fill first, then recolour it here.
This page always replaces a colour everywhere it appears, including gradient stop-color values. That is the right move for a logo swap (navy to green across the whole mark). It is the wrong move if only one tab of a diagram should change. For that, select the shape in the editor instead of using a global replace.
What the matcher ignores on purpose
Anything that is not a colour is left untouched. Gradient and pattern references such as fill="url(#abc)" stay as references; the stops inside #abc are what you recolour. href="#abc" and xlink:href are not treated as hex colours, even when an id happens to look like one. Fully transparent values (transparent, or a hex/rgba with alpha 0) are skipped, as is fill="none".
Named colours are recognised only if they are in this tool's list of common CSS names (the usual ones: red, navy, goldenrod is not, for example). An unrecognised name is left as it was. If a colour you expected is missing, it may be written as a less common name, or as a presentation attribute this matcher does not scan — in that case, set it in the editor.
After you recolour
To ship the same mark at several sizes, use Resize SVG or, for a bitmap, the SVG to PNG converter — a logo on a dark slide often needs a light fill, which is easier to produce here first. SVG vs PNG explains when to keep the vector file (including currentColor icons on a website) and when a PNG is the format the destination will actually accept.