# Extract Icon Colours

URL: https://www.image-color-changer.com/extract-icon-colors
Extract the colours from an icon online free. Get exact hex codes from any icon file so you can match a set or a theme, then copy them.

### Reading the colours out of an icon
Icons use very few colours: A well-made icon is one or two colours plus transparency. That is deliberate: an icon has to stay legible at sixteen pixels, and detail in colour is the first thing to disappear at that size.

Matching a set: The usual reason to extract icon colours is a mismatched set — icons from different sources that need to agree. Reading the exact values off the ones that are right tells you what to recolour the others to.

Alpha is excluded: Only visible pixels are measured, so transparent areas do not appear in the results. That is why an icon may report only one or two colours even though it visually occupies a whole square.

Small icons give less to read: A 16-pixel icon has very few pixels to sample and its anti-aliasing is proportionally large, so extraction is less reliable. Use the largest version you have — the colours are the same and the reading is cleaner.

SVG is exact: If the icon exists as SVG, the colours are literally written in the file as attributes. Extraction from a raster is a very good approximation, but the source is definitive.

### How to extract icon colours
1. Upload the icon — Drop in the largest version you have for the cleanest reading.
2. Choose how many colours — Most icons need two to four. Adjust the slider to match.
3. Copy what you need — Click a swatch to copy one hex, or copy them all.

### Where icon colours are needed
- Normalising an icon set: Read the correct colours so mismatched icons can be recoloured to match.
- Theme matching: Match interface elements to the icons already in place.
- Dark mode variants: Get the light-mode values before deriving the dark-mode ones.
- Design tokens: Capture icon colours as values in a design system.

### Frequently asked questions
Q: Why does my icon only report one colour?
A: Because transparent areas are excluded and most icons are a single glyph colour plus transparency. That is normal and correct.

Q: The reading seems off on a small icon.
A: A 16-pixel icon has few pixels and proportionally heavy anti-aliasing. Use the largest version you have — same colours, cleaner reading.

Q: Should I use the SVG instead?
A: If you have one, yes. SVG colours are written into the file as attributes, so the source is definitive rather than sampled.

Q: How many colours should I extract?
A: Two to four covers almost every icon. More than that usually means you are seeing anti-aliased edge pixels.

Q: Is my icon uploaded?
A: No. It is read on a canvas in your browser and never sent anywhere.

Q: How is this different from the logo version?
A: Same engine, defaulted to fewer colours because icons carry fewer than logos do.

All tools: https://www.image-color-changer.com/llms.txt
