Two-Colour Gradient and Ombre Generator
Pick two colours and watch them melt into each other. You get an evenly stepped gradient palette for ombre work, a HEX code for every step, and CSS you can paste straight into a website.
Choose Your Colours
Gradient Result
CSS Gradient Code
Getting Started
Set your first and last colour, either with the colour pickers or by typing HEX codes, and then move the slider to decide how many steps the blend should have. You will see a continuous colour strip, a row of separate HEX swatches and a CSS gradient snippet, all updated as you go.
A Worked Example
Run a seven-step blend from a deep blue (#2547A0) to a warm gold (#F6C445) and the colours travel gently through slate blue and soft greyish taupe before warming into ochre. It makes lovely inspiration for a watercolour sky, a fading background behind gold Arabic lettering, a hand-lettered banner or the header of a website.
Painting an Ombre with the Swatches
Think of the row of swatches as a mixing map for a graded wash. Prepare your first colour and your last colour, then combine them in gradually shifting proportions so each new puddle matches the next swatch as you work across the paper or canvas.
Working with the CSS Snippet
Copy the CSS and drop it into your stylesheet, or into any site builder that lets you add custom CSS, to reproduce the very same gradient on screen.
Common Questions
What is this tool for?
It creates an even blend between any two colours you select, giving you the in-between HEX swatches along with matching CSS gradient code.
How many steps are available?
Use the slider to choose any number of steps from 3 up to 12.
Will it help me paint an ombre?
It will. Aim to match each swatch in turn as you move from your first colour towards your last colour across the work.
Where would I use the CSS code?
It is a linear-gradient snippet ready to paste into a stylesheet, or into a website builder that supports custom CSS.
How are the in-between colours worked out?
The tool uses basic linear interpolation on the red, green and blue channels of the two colours you chose.
Can I grab a single HEX code?
Yes. Next to every HEX code is a Copy button for that particular swatch.
Does it matter which colour I put first?
Only for the direction the gradient runs. The same colours appear whichever way round you enter them.
Do I need an account?
No. The tool is free and works without signing up.
More Tools You Might Like
Monochromatic Palette Generator
Create a peaceful five-step palette from one hue.
What Colours Make ___?
Find out what happens when two paint colours are mixed.
Watercolour Dilution Calculator
Find a sensible water-to-paint starting ratio for your washes.
Artist Colour Palette Generator
Put together a complete palette for your next painting.
Ready for Your Next Project?
Creative Flair by Sana painting kits bring together well-chosen colours and friendly, step-by-step instructions, perfect for building confidence as a beginner.
Browse the Painting KitsEach gradient step is found by linear interpolation in RGB colour space, a common, well-established way of producing digital colour gradients.
