This document describes how to make a swatch in illustrator from a raster image.
If you would like to extract colors from an image and use them in your artwork, you can do one of the following options:
- Extract colors using Object mosaic
- Extract colors using image trace
Both methods create a color group in the swatches panel
How to get a color from an image in illustrator
Method 1: To copy an image color in illustrator please follow the instructions here. you can use below image as a sample image
![Picture from antalya bay](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/Antalya.jpg?resize=750%2C500&ssl=1)
From the file menu select Place.
- Choose your image file and make sure “link” option is not selected. This will embed your image to AI file.
![Place image](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/Place-image.jpg?resize=750%2C617&ssl=1)
Go to Object menu and select Create object mosaic
![create mosaic menu](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/create-mosaic.jpg?resize=331%2C420&ssl=1)
Type 5 for the width and High dimensions
![Object mosaic](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/object-mosaic-panel.jpg?resize=503%2C712&ssl=1)
You should have a similar vector like this:
![create matrix](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/mosaic.jpg?resize=750%2C581&ssl=1)
Open your swatches panel.
- if you can not find your swatches panel you can find it by going window>swatches menu.
- Once you opened your panel go to the upper right corner of the panel and click it. Then choose “new color group“. Now you should see your colors in the swatches panel as a new group.
![New color group](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/new-color-group.jpg?resize=655%2C472&ssl=1)
How to extract colors from an image
Method 2:
Place your image to the artboard.
- Choose your image file and make sure “Link” option is not selected. This will embed your image to AI file.
Convert your image to vector
- if not selected. select your image first
- Use image trace command.
- little down arrow near Image Trace button will pop up standard trace options. select 16 color.
![image trace](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/image-trace.jpg?resize=350%2C523&ssl=1)
- Once your image is converted to vector, expand it.
![expand traced image](https://i0.wp.com/illustratordersleri.com/wp-content/uploads/2019/03/expand.jpg?resize=698%2C144&ssl=1)
- As in the first method open your swatches panel
- Create a new color group from the panel options.
I hope this helps you. Thank you for being here.
Bye.
How to extract colors from an image in illustrator