How To Make A Rainbow Gradient In Inkscape | Beginner Tutorial

Make a rainbow gradient in Inkscape

Today’s tutorial will be an exercise in working with gradients in Inkscape. In this lesson we’ll be going over how to make a rainbow gradient in Inkscape. This process involves working with the Gradient tool and using it to add multiple stops (or colors) to your gradient. After completing this lesson you will be equipped with everything you need to create your own multi-color gradients.

Types Of Gradients

As you may already know, a gradient is a transition between two or more colors. Before we can create a rainbow gradient in Inkscape, we first have to determine the type of gradient we’d like to create.

In Inkscape, there are four types of gradients:

  1. Linear: gradients where the colors follow a straight path
  2. Radial: gradients where the colors follow a circular path
  3. Mesh: gradients where the colors are placed on a grid rather than a path
  4. Conical: gradients where the colors are position in a top-down cone-like shape

Gradient types

Seeing as how mesh gradients and conical gradients are a bit more advanced, and this is a beginner tutorial, we’ll be focusing on linear gradients and radial gradients for this lesson. Once you understand the fundamentals of making multi-color gradients in those formats, it shouldn’t take too long until you’re able to apply them to more advanced gradient types with relative easy.

Make A Rainbow Gradient In Inkscape

To get us started, let’s first determine a shape we’d like to apply the rainbow gradient to. For this demonstration, I will be applying the gradient to a simple square:


As of right now, this object has a solid fill of black. In order to fill it with a gradient, let’s first open the Fill & Stroke menu by pressing Control + Shift + F.

At the top of the Fill & Stroke menu, you will see three tabs: Fill, Stroke, and Stroke Style. For this lesson we will be focusing on the Fill tab, so make sure to have that tab opened.

Fill tab

Linear Gradient

We will create our rainbow gradient as a linear gradient first, then apply it as a radial gradient later on.

Make sure you have your object selected, then click the Linear Gradient icon in the Fill & Stroke menu:

Linear gradient icon

This will apply a linear gradient to your object. The gradient will consist of two stops — the original color (on the left,) and transparency (on the right.)

Linear gradient applied

Now grab the Gradients tool (keyboard shortcut: G) and click on the transparent stop on the right to select it.

With it selected, click on the color black in the color bar at the bottom of your screen. This will give your object a gradient transitioning from black to black:

Adjusted gradient

Now it’s time to add new colors (known as stops) to your gradient.

To do this, simply double-click on the blue horizontal line to add a new stop to the gradient. The stop will be added wherever it is that you click:

New stop

To make a rainbow gradient, we’re going to need 7 stops to accommodate all of the colors of the rainbow. As of right now we already have 3, so double-click the line 4 more stops (in various spots) to add new stops to the gradient:

All stops added

Click and drag each individual stop to move them and space them out evenly, as I’ve done in the above screenshot.

All we have to do now is select each individual stop and apply each color of the rainbow to them, just like we did when we changed the original stop (on the right) from transparent to black.

The colors we’ll be using for this lesson are as follows:

  • Red
  • Orange
  • Yellow
  • Green
  • Light blue
  • Dark blue
  • Purple

Once applied, you should end up with something like this:

Rainbow gradient applied

And that’s how easy it is to create a rainbow gradient in Inkscape!

Radial Gradient

Now let’s apply this gradient as a radial gradient.

Fortunately, whenever you create a gradient in Inkscape, it is saved in your Gradients list in the Fill & Stroke menu:

Saved gradient

This means that instead of creating the rainbow gradient again, we can simply use the one we just created.

To do this, simply select your object (with it having the linear rainbow gradient already applied) and select Radial Gradient from the Fill & Stroke menu:

Radial gradient location

Your rainbow gradient will now be applied in such a way that it follows a circular path:


Radial gradient applied

You can revert back to the linear gradient at any point by simply selecting it in the Fill & Stroke menu.


One of my favorite aspects of working with Inkscape — as opposed to other vector design applications — is how easy it is to add and edit gradients. Other programs make it needlessly complicated.

Once you know how to create rainbow gradients in Inkscape, you can then use that same process to create the illusion of shiny gold, silver, chrome, and more!

If any part of this lesson was unclear, or if you have any questions, simply leave a comment below.

Master The Software

Want to learn everything there is to know about your favorite design apps? Check out our interactive video courses and private community for getting help when you need it!

The Inkscape Master Class

A comprehensive series of 60+ videos where I explain every tool and feature in Inkscape.

Affinity Designer Master Class

A series of 80+ explainer videos where I go over every tool and feature in Affinity Designer.

The Illustrator Explainer Series

A series of 100+ explainer videos where I go over every tool and feature in Adobe Illustrator.

The Logo Design Academy

An 18-part video series teaching my entire creative process for designing logos, from start to finish.

This post may contain affiliate links. Read affiliate disclosure here.

Nick Saporito

Hi, I'm Nick— a Philadelphia-based graphic designer with over 10 years of experience. Each year millions of users learn how to use design software to express their creativity using my tutorials here and on YouTube.

Leave a Reply

Your email address will not be published. Required fields are marked *

9 + 11 =

Recent Posts