Skip to guide content

How to Fill SVG Shapes with Color

Change one shape’s fill or stroke in the editor, add a gradient, and distinguish color fills from the Shape Filler tool.

In this guide 6 sections

To fill an SVG shape with color, select it in the SVG editor, enable Fill in the right panel, and choose a solid color or gradient. Use Stroke to change the outline separately. This guide shows how to change one shape without recoloring every matching object.

Selected vector shape with the Fill style selector and gradient color-stop controls
Select an individual object to edit its fill. A gradient has its own stops rather than a single solid color. Select the image to view it full size.

Fill one SVG shape step by step

  1. Import or paste your SVG into the editor.
  2. If selecting it highlights the entire illustration, choose Ungroup & edit elements. Repeat for nested groups if needed.
  3. Select the individual shape on the canvas or in Layers.
  4. In the right panel’s Fill section, turn Fill on and choose Solid under Fill style.
  5. Use the color picker or hex field to set a color such as #14B8A6.
  6. Adjust Stroke separately, then export SVG to keep the artwork as vectors.

Fill and stroke are different

Fill colors the interior of a shape. Stroke follows its outline. A line may need a visible stroke rather than a fill, while a closed silhouette usually needs a fill. If the shape seems invisible, check that its color contrasts with the background and that its opacity is not zero.

Turning Fill off creates an unfilled object; it does not delete the object. A background rectangle can still make the exported composition opaque even when another shape has no fill.

Use a gradient instead of one color

For a blend, choose Linear gradient or Radial gradient in Fill style. Change the stop colors, their positions, and their opacity. These controls require one object rather than a group or multiple selection.

Follow the SVG gradient tutorial for a three-color fill and a radial highlight.

Change one object or all matching colors

The individual Fill control changes the selected object. The Recolor tab replaces a matching solid color across the artwork, including inside groups. Use it for a palette swap; use the inspector when only one petal, icon, or letter-shaped path should change.

For brand colors, copy a hex value from your style guide or explore color palettes. Use the color extractor when starting from a reference image.

The Shape Filler is a separate tool

The SVG Shape Filler fills a container shape with repeated SVG objects. It is for arrangements such as many small icons inside a silhouette. To assign a solid color to a shape, use the editor’s Fill controls described above.

Questions about SVG fill colors

Can two shapes with the same original color get different colors?

Yes. Ungroup them if necessary, select each shape individually, and change its Fill. A global Recolor swap would change both.

Why does a gradient not appear in the Recolor swatches?

Recolor lists solid fill and stroke colors. Edit a gradient’s stops in the selected object’s Fill controls.

Can I fill an open line?

For a visible line, set its Stroke. For a filled custom outline, draw and close a shape with the Pen tool.

Fill SVG shapes with color

Make it yours.

Keep this guide open and give it a try.

Open the SVG editor