CSS Gradient Generator – Linear, Radial & Conic

Create a two- or three-color gradient, adjust its angle and color stops, preview the result, copy ready-to-use CSS, or export a 1200 × 600 SVG/PNG.

Start with a gradient preset

Choose a preset, then change any color, angle or stop position below.

Color stop positions

Place each stop between 0% and 100%. A middle stop must stay between the two outer stops.

Drag the handles to move color stops, or use the range sliders below for precise keyboard control.

Enter a HEX color or use the color pickers to customize the gradient.

Live gradient preview

Every valid change updates the gradient and the CSS below. If the preview cannot update, an error message appears.


 

How to make a CSS gradient

  1. Choose a preset or enter two HEX colors. Enable the middle color for a three-stop gradient.
  2. Choose Linear, Radial or Conic. For linear gradients, change the direction from 0° (upwards) to 90° (rightwards), and position the stops from 0% to 100%.
  3. Check the live preview, copy the CSS code with its Copy button, or download CSS, SVG or PNG.

Example: background: linear-gradient(90deg, #2A6DF4 0%, #E4B214 100%); moves from blue on the left to gold on the right. Paste the declaration into your site's CSS selector.

CSS gradient vs SVG and PNG

linear-gradient() and radial-gradient() are CSS images and do not require separate image downloads. A radial gradient expands from the center; Conic rotates around the center. The angle slider rotates Conic, and is disabled for Radial. The conic SVG/PNG is a sampled sRGB approximation, not pixel-identical to the CSS gradient. The SVG and PNG downloads use a fixed 1200 × 600 canvas, so diagonal gradients may appear slightly different when resized to another aspect ratio.

Before placing text on a gradient, test readability where the text actually appears. Use the color contrast checker and verify intermediate areas, not just the endpoints. You can also pick exact HEX colors or explore ready-made palettes.

Related tools: Color converter · Color wheel · Image color picker.