Design

CSS Gradient Generator

Build linear or radial CSS gradients from two colors and an angle, with a live preview.

01Input and settings

The calculation runs in your browser. You can use the tool without installing software.

02Result

Waiting for input
Waiting for input

Enter your values or load the example to see the result here.

About this tool: CSS Gradient Generator

Build linear or radial CSS gradients from two colors and an angle, with a live preview.

Choose two color stops, then select a linear direction or a radial blend. The preview displays the generated background immediately after running the tool. Copy the two CSS declarations into a selector: the first declaration provides a solid-color fallback.

How the calculation works

linear-gradient(angle, color₁, color₂)

Worked example

Mode
Linear
First color
#4f46e5
Second color
#06b6d4
Gradient angle, °
135
background: linear-gradient(135deg, #4f46e5, #06b6d4);

Questions and answers

What does this tool do?

Build linear or radial CSS gradients from two colors and an angle, with a live preview. Choose two color stops, then select a linear direction or a radial blend. The preview displays the generated background immediately after running the tool. Copy the two CSS declarations into a selector: the first declaration provides a solid-color fallback.

What affects precision and input format?

Colors use six-digit HEX. The angle applies only to linear gradients; radial mode has no angle.

Where are the calculations performed?

The calculation runs in your browser. You can use the tool without installing software.

Comments (0)

Share your thoughts — please be polite and stay on topic.

No comments yet. Leave a comment — share your opinion!

To leave a comment, please log in.

Log in to comment