Send feedback

Coming from the page: CSS Gradient Generator

One moment…

Ready CSS codePNG up to 4KNo ads

CSS Gradient Generator

Make a color gradient for your site and copy the code, or download it as a PNG background.

Gradient type
°
Center
Colors

Cleaner colors in the middle instead of dull grey. Modern browsers support it; we add a fallback line for older ones.

Presets

How to use it

1

Pick a type and colors

Linear, radial or conic, then your colors and their positions, or start from a preset.

2

Copy the code

Paste it into the CSS of the element you want, or in WordPress under “Additional CSS”.

3

Or download the image

A PNG background for posts, slides and phone wallpapers, in the size you need.

Gradient types

TypeLooks likeGood for
LinearFrom one side to another at your angleSection backgrounds and buttons
RadialFrom the center outwardsHighlighting something in the middle
ConicSweeps around a point like a clock handColor wheels and pie-style graphics

Tips for a good gradient

Close colors look best. Pick two colors from the same family, or two shades of your brand color.

Mind text on top. Check text contrast against the lightest and darkest points with the color contrast checker.

Grey in the middle. Between opposite colors like blue and yellow a normal gradient passes through dull grey; “Smoother blend” keeps colors clean.

FAQ

How do I add the gradient to my site?

Copy the CSS into the element’s rule, like .my-section { … }. In WordPress: Appearance → Customize → Additional CSS.

Is a CSS gradient better than an image?

On websites, yes: no image to download, so pages load faster, and it fits any screen. Use the PNG for posts, slides and places that don’t take CSS.

What does in oklch mean in the code?

A modern way of mixing colors that gives cleaner gradients. Modern browsers support it; older ones skip that line and use the one before it.

How do I make a gold gradient?

Pick the gold preset (#BF953F, #FCF6BA and #B38728), then adjust the angle until it looks like shiny metal.

Can I use the images in any project?

Yes. The gradient you make is yours, and it’s made in your browser without uploading anything.