Minify colours (convertColors)
Converts colors to shorter forms (#RGB, named colors) and merges equivalent values.
What Minify colours does in SVGO
SVGO applies convertColors as part of its plugin pipeline. In SVGOMG the toggle is labeled Minify colours (enabled by default). Optimization runs entirely in your browser — files are not uploaded to a server.
Use the SVGOMG optimizer with Show original to compare before and after. If output looks wrong, disable this plugin first, then re-enable related transforms one at a time.
When to enable
Most illustrated SVGs using hex or rgb() fills and strokes.
When to disable
When wide-gamut or document-specific color profiles must be preserved exactly.
Watch out for
Verify brand colors still match after conversion.
Try it in SVGOMG
- Open svgomg.net and load your SVG (file, paste, or demo).
- Find Minify colours in the Features panel (
convertColors). - Toggle the plugin and compare the preview; download when satisfied.
SVGO Plugin Guide
Browse the SVGO Plugin Guide or read the full SVG optimization walkthrough on the homepage.