Linear
Colors transition in a straight line at the angle you set. It is the most common type, ideal for backgrounds with a clear direction, top to bottom or on a diagonal.
linear-gradient(90deg, #F97316, #FBBF24)Create linear, radial or conic gradients with a live preview, fine-tune colors and stops, and copy CSS or Tailwind code ready to paste.
Gradient type
Angle
90°Color stops (2)
Click to add · Drag to move
background: linear-gradient(90deg, #2C71DE 0%, #051938 100%);
Click one to load it into the editor and make it your own.
A gradient is a smooth transition between two or more colors, used as a background with CSS background. Instead of a flat fill, the browser paints a progressive mix between the colors you set, in the direction or shape you choose.
Each color in the gradient is a color stop: the color code and the point, as a percentage, where that color is fully pure. Between two stops, the browser calculates the transition automatically. Two stops give a simple blend; more stops add extra nuance.
Colors transition in a straight line at the angle you set. It is the most common type, ideal for backgrounds with a clear direction, top to bottom or on a diagonal.
linear-gradient(90deg, #F97316, #FBBF24)Colors expand in a circle from a center point outward. It works well for spotlight, glow or depth effects.
radial-gradient(circle, #FDE68A, #F97316 70%)Colors rotate around a center point, like a clock. It is the least common type, useful for color wheels, progress indicators or more experimental effects.
conic-gradient(from 90deg, #F97316, #FBBF24, #14B8A6, #F97316)A linear gradient is declared with the linear-gradient() function inside the background property. These are its parts:
135deg#FF5F6D0%Radial gradients use radial-gradient(circle, …) and conic ones conic-gradient(from 90deg, …), with the same color stops.
background: linear-gradient(135deg, #FF5F6D 0%, #FFC371 100%);
Linear, radial or conic. For linear and conic gradients, set the angle with the slider or the direction buttons.
Select a stop to change its color, drag it along the bar to move it, or click the bar to add another. Up to eight stops.
Copy the CSS or its Tailwind class equivalent and paste it into your project. You can also export the individual colors.
Colors that sit next to each other on the color wheel create smooth, natural transitions.
Between two opposite colors the middle often turns muddy. Add a brighter intermediate stop to avoid it.
Two or three colors are enough for most backgrounds. More stops rarely add elegance.
Check text contrast against both the lightest and the darkest color of the gradient.
Use the background property with linear-gradient(), radial-gradient() or conic-gradient(), giving the direction and the colors. For example: background: linear-gradient(90deg, #2193B0, #6DD5ED);
It is each color that makes up the gradient, plus the point (as a percentage) where that color shows pure. Between two stops, the browser calculates the transition automatically.
Linear transitions in a straight line at an angle. Radial expands in a circle from a center point. Conic rotates around a center point, like a clock.
As many as you need, by clicking the preview bar. Two stops give a simple transition; more stops let you build gradients with several hues.
Yes. Besides standard CSS, the generator offers the Tailwind syntax equivalent, ready to copy.
Yes. linear-gradient, radial-gradient and conic-gradient are standard CSS, supported in all modern browsers.
Apply the gradient to the body and give it at least the window height: body { min-height: 100vh; background: linear-gradient(180deg, #EE9CA7, #FFDDE1); }
You cannot directly animate from one gradient to another, but you can move it: give it a background-size larger than the element (for example 200%) and animate background-position with a transition or @keyframes.
Pick any color and copy Hex, RGB, HSL or OKLCH with shades, tints and harmonies.
Try it nowExplore harmonies on an interactive wheel and build balanced palettes from one base color.
Try it now