How to Create a Swatch in Illustrator
StyleFrame Team7 min read
To create a swatch in Illustrator, set the fill or stroke to the color you want, open Window > Swatches, click the New Swatch button at the bottom of the panel, name it, and press OK. To make a group of swatches in one step, select the artwork that uses those colors and click New Color Group instead. To reuse the swatches in other documents, open the Swatch Libraries menu and choose Save Swatches.
The rest of this guide covers each method in more detail, along with the settings that matter when the artwork is headed to After Effects, Cinema 4D, or Nuke.
Before you start: set the right color mode
Check the document color mode before you build a palette. Motion work lives in RGB, so set the document to RGB Color. If the document is CMYK, your swatches will be defined in CMYK values. When the file lands in an RGB timeline, the colors can shift slightly from what you approved.
Open the Swatches panel with Window > Swatches. Everything below happens there.
Method 1: Create a single swatch from a fill color
This is the most direct way to add a color to a document.
- Deselect everything by clicking an empty area of the artboard or pressing Shift+Ctrl+A (Windows) or Shift+Cmd+A (Mac). This keeps you from accidentally recoloring a selected object.
- Double-click the Fill box at the bottom of the Toolbar to open the Color Picker.
- Enter your values. For motion work, a hex code from a brand guide or style frame is usually the most reliable input.
- Click the New Swatch icon at the bottom of the Swatches panel.
- Type a descriptive name. "Brand_Orange_Primary" will serve you better than "Color 14" three weeks into a project.
- Click OK.
The swatch now appears in the panel and is stored in the current document.
Use a selected object as the source
If a shape already has the color you want, select it and click New Swatch. Illustrator takes the fill from the selection.
Make it a global swatch
In the New Swatch dialog, you can check the Global box. A global swatch shows a small white triangle in its lower-right corner.
Global swatches are the feature most worth using on production files. When you apply a global swatch to many shapes and later edit the swatch, every shape using it updates together. If a client changes the accent color late in the project, you edit one swatch instead of hunting down every fill and stroke.
If you already used a non-global color across a design, use Select > Same > Fill Color to select every object sharing that fill. Then click New Swatch and enable Global, and those objects are tied to the new swatch.
Method 2: Create a color group from selected artwork
When you have a palette laid out as a row of shapes, a color group saves time.
- Draw a rectangle or circle for each color and fill each with the color you want. The shape type doesn't matter, only the fill.
- Select all of those shapes.
- In the Swatches panel, click the New Color Group folder icon.
- Name the group, and make sure Selected Artwork is chosen under Create From.
- Click OK.
Every unique color in the selection is added as a swatch inside one named group. Groups keep a project's swatches organized, so you can keep "Background," "Character," and "UI Accents" separate.
Method 3: Build swatches from a reference image
Motion projects often start from a style frame, a photograph, or a client mood board, and you need a palette that matches it. Illustrator has a few ways to sample colors.
Eyedropper approach. Place the image in your document, draw several empty shapes, and press I to use the Eyedropper to sample colors into each shape. Then use New Color Group as above. Choosing a dark tone, a light tone, an accent, and a couple of mid-tones is a reliable way to build a usable five-color palette.
Mosaic approach. Rasterize the image with Object > Rasterize, then choose Object > Create Object Mosaic. This reduces the image to a grid of colored tiles that are easy to sample. Keep the tile count reasonable, because very large grids can make Illustrator slow or unstable.
After sampling, take a moment to remove stray defaults. Illustrator documents come with generic swatches, patterns, and brushes. Deleting the ones you don't use, for example with the "Delete Unused Panel Items" action in the Actions panel, keeps exported libraries clean.
Method 4: Create pattern swatches
Swatches aren't limited to flat colors.
- Pattern swatch: Select the artwork and choose Object > Pattern > Make. Illustrator opens Pattern Options and adds the pattern to the Swatches panel automatically. Double-click the swatch at any time to reopen Pattern Options. You can also simply drag artwork into the Swatches panel to create a pattern swatch.
Pattern swatches are useful for repeating textures and backgrounds that you later animate, such as a scrolling background or a texture that sits under a shape layer.
Save swatches so you can use them in other documents
A swatch created with the steps above only lives in the current document. Open a new file and it won't be there. To keep a palette across projects:
- Click the Swatch Libraries menu icon at the bottom-left of the Swatches panel.
- Choose Save Swatches.
- Name the library and save it.
To load it later, open the same Swatch Libraries menu, go to User Defined, and pick your library. It opens in its own panel. If you saved it to a custom folder, such as a project directory, use Other Library to browse to it.
Two saving options are worth knowing:
- Save as ASE: You can also save your swatches as an Adobe Swatch Exchange (.ase) file.
- Creative Cloud Libraries: If you work with Creative Cloud, you can save colors to a CC Library and share it with collaborators.
Save the library next to the project file as well, not just in the default user folder. When a project is archived or handed off, the palette travels with it.
Using Illustrator swatches in a motion pipeline
Swatches are an Illustrator-side convenience, so it helps to know what carries over.
- Keep a reference swatch sheet. Many artists keep a layer or artboard with labeled chips and hex values, so animated elements match the approved palette.
- Use global swatches for variants. If you need alternate color versions of the same artwork, such as a day and night look, editing global swatches gives you variants quickly without rebuilding the file.
- Organize layers with colors in mind. If you plan to import a layered file and animate shapes separately, put each color role on its own layer.
- Check the color space. If the project uses a wide-gamut or ACES-style setup in After Effects, Cinema 4D, or Nuke, check how your Illustrator swatch values are interpreted. Verify with a test render before locking a palette.
Where Styleframe fits with your swatch workflow
A swatch palette is often the first locked-down decision in a look-development phase. Styleframe is an AI video and motion tool, and you can use your style frames and color references as inputs to guide its output.
Your compositing pipeline stays the same, with the Illustrator swatches still serving as the color source of truth.
Troubleshooting common swatch problems
- The swatch isn't in my new document. It was saved only in the original file. Save it as a library and load it from User Defined.
- Colors look different in After Effects. Check the document color mode and your After Effects color management settings. A CMYK-to-RGB conversion is a common cause.
- Editing a swatch doesn't update my shapes. The swatch probably isn't global, or the shapes use the same color without being linked to it. Use Select > Same > Fill Color, then recreate the swatch as global.
- My library has dozens of unwanted swatches. Delete unused defaults before saving.
- A color group came out with too many colors. Selected-artwork groups include every unique color in the selection. Narrow your selection to the objects you want.
Quick checklist
- Set the document to RGB.
- Create swatches from fills, or build a color group from selected artwork.
- Make key colors global.
- Name everything by role.
- Delete unused defaults.
- Save the library, and optionally export an ASE file.
- Keep a labeled swatch sheet alongside the project for your motion team.
Once swatches are set up this way, the palette stays consistent from the first style frame through the final comp.