How to make a CSS gradient
- Choose a preset or enter two HEX colors. Enable the middle color for a three-stop gradient.
- 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%.
- 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.