Our Popular Tools
What Is a Gradient Maker?
A gradient maker lets you blend two or more colors into a smooth background and gives you the CSS code to use it. You pick the colors and see the result right away. When it looks right, you copy the code and paste it into your stylesheet.
This tool supports three gradient types: linear, radial and conic. You can use up to 8 colors, move each one along the gradient, and change the rotation. It also has a fullscreen preview so you can judge the result at full size.
How to Use the Gradient Maker
- Choose a color stop. Click a handle on the gradient bar at the top of the tool. The Color and Position fields show that stop’s values.
- Change the color. Type a hex code such as
#E20B8C, or click the color swatch to use the picker. Short codes like#f00also work. - Set the position. Drag the handle along the bar, or type a number from 0 to 100 in the Position field. If a handle is selected, the arrow keys move it by 1%. Hold Shift to move it by 10%.
- Add or remove colors. Click an empty spot on the bar, or press Add Color, to add a stop. Press Remove to delete the selected one. You can use between 2 and 8 colors.
- Pick the type and rotation. Choose Linear, Radial or Conic, then set the rotation in degrees.
- Try the shortcuts. Reverse flips the color order. Random gives every stop a new color. Fullscreen shows the gradient across your whole screen.
- Copy the code. Press Copy CSS, or select the text in the code box yourself.
The Three Gradient Types
Linear
Colors blend along a straight line. Rotation sets the direction. At 0° the gradient runs from bottom to top, and at 90° it runs from left to right. At 180° it runs from top to bottom. Linear is the most common choice for page backgrounds, banners and buttons.
Radial
Colors spread outward from the center in a circle. This type works well for soft glows, spotlight effects and rounded backgrounds. Rotation has no effect on a circle, so the Rotation field is disabled for this type.
Conic
Colors sweep around the center, like a color wheel or a pie chart. Rotation sets where the sweep begins. Conic gradients suit dials, badges and decorative shapes.
What the CSS Output Looks Like
The code box gives you two lines. Using the default colors, it looks like this:
background: #e20b8c;
background: linear-gradient(90deg, #e20b8c 7%, #f94c00 78%);
The first line is a solid color, taken from your first stop. If a browser can’t read the gradient, it shows that color instead. The second line is the gradient. Each color is followed by its position as a percentage.
To use it, put both lines inside a selector:
.hero-section {
background: #e20b8c;
background: linear-gradient(90deg, #e20b8c 7%, #f94c00 78%);
}
On a WordPress site, you can paste your CSS into Appearance → Customize → Additional CSS. Replace .hero-section with the class of the element you want to style.
Where You Can Use Gradients
- Hero sections and page backgrounds. Gradients add depth without loading an image file.
- Buttons and call-to-action boxes. A subtle gradient can make a button stand out.
- Cards and banners. Use the same gradient on several cards to keep a consistent look.
- Mockups and social graphics. Open the fullscreen preview and take a screenshot to use as a background. The tool doesn’t export image files.
Tips for Better-Looking Gradients
- Start with neighboring colors. Colors close together on the color wheel, like pink and orange, usually blend smoothly.
- Watch the middle. Some opposite colors, like blue and orange, can turn grayish in the center. Add a third color there to keep the blend lively.
- Check text contrast. If you place text on a gradient, check it against the lightest and darkest parts. Text should be easy to read everywhere on the background.
- Use positions on purpose. Putting the first stop at 20% and the last at 80% creates solid color bands at the edges. Placing stops close together creates a sharper transition.
- Use Random for ideas. Press it a few times, then fix up the colors you like by hand.
Limitations to Know About
- Colors are solid hex colors. Transparency (alpha) isn’t supported.
- Radial gradients are always circles centered in the middle. You can’t change their shape or position.
- Repeating gradients aren’t available.
- The tool gives you CSS only. It doesn’t export images or SVG files.
- Conic gradients work in current versions of the major browsers. Very old browsers may not show them, and will show the solid fallback color instead.
Frequently Asked Questions
Why does the code include a solid color line first?
It’s a fallback. If a browser can’t read the gradient line, it uses the solid color from your first stop, so the background is never empty.
Can I use the gradient on text?
The tool doesn’t have a text mode, but the CSS can still be used for it. Apply the gradient as the background of your text element. Then add -webkit-background-clip: text; and background-clip: text;, and set the text color to transparent. Check the result in the browsers your visitors use.
What do the percentages in the code mean?
Each percentage is where that color is fully in place along the gradient. For example, #e20b8c 7% means the pink is solid at 7% of the way across. Colors blend between these points.
Why is the Rotation field disabled?
You have Radial selected. Radial gradients are circles, so rotating them changes nothing. Switch to Linear or Conic to use rotation.
Why can’t I add more colors?
The tool allows up to 8 colors. If Add Color is disabled, remove one first. Likewise, Remove is disabled when only 2 colors are left, because a gradient needs at least two.
How do I use the gradient in a different tool or framework?
Copy the linear-gradient(...), radial-gradient(...) or conic-gradient(...) part from the second line. Any tool that accepts a CSS background value should be able to use it.
More Tools
- CSS Code Color Extractor
- HSL to HEX
- HEX to CMYK Converter
- Browse Gradients
- Browse Colors
- Color Tint & Shades Generator
- Compare Colors
- Color Harmony Generator
- Color Temperature Converter
- WCAG Color Contrast Checker
- Color Converter
- Gradient Palette Generator
- Gradient Color Palettes
- Color Wheel
- Mesh Gradient Generator
- CMYK to HEX Converter
- HEX to Pantone Converter
- Pantone to HEX Converter
- Pantone Color Finder