🫧 SUGI

Advertisement

🌈

CSS Gradient Generator – linear and radial backgrounds

CSS gradient generator. Pick two or three colors, an angle and linear or radial, see a live preview and copy the background code. Free, no sign-up.

Advertisement

About this tool

This CSS gradient generator (gradient background maker, linear gradient and radial gradient code) lets you design a smooth color blend and copy the CSS in seconds.

Choose two colors, or tick the box to add a third, then drag the angle slider. The preview box updates live and the code below always matches what you see.

Linear gradients run in a straight line at the angle you set, where 0 degrees goes from bottom to top and 90 degrees goes from left to right.

Radial gradients spread from the center outward as a circle, and the angle is ignored. What does the code look like?

For example, two colors at 90 degrees produce: background: linear-gradient(90deg, #38bdf8, #f472b6); Paste that line into a stylesheet, a style attribute or a design tool that accepts CSS. How do I make it look smooth?

Pick colors that are close in brightness, since very different tones can create a muddy middle. Does it work on every browser? These basic forms are supported by all modern browsers, so no prefixes are needed.

Will text stay readable? Check contrast when you put words over a gradient, and consider a darker overlay for small text. Tip: for a soft pastel look, choose light tints and a diagonal angle such as 135.

For a stronger look, use a third color in the middle. Everything is done in your browser. The colors you pick are not uploaded or saved. To convert a color between HEX and RGB first, try the color converter.

How to use

  1. Pick two colors, or tick the box to add a third.
  2. Choose linear or radial and drag the angle slider.
  3. Press Copy and paste the background code into your CSS.

Similar free tools

Made by SUGI and checked against our content guidelines · Last updated 2026-11-11 · How we make content

Advertisement