CSS gradient generator

Build a CSS linear gradient in seconds. Pick two colors, drag the angle, and copy the CSS straight into your stylesheet.

Pick a color or paste any HEX value.

Pick a color or paste any HEX value.

background: linear-gradient(135deg, #FF6B35 0%, #1A8FE3 100%);

Drop into any element’s background.

How to use this tool

  1. 1Set the start and end colors using the color pickers or HEX inputs.
  2. 2Adjust the angle to change the gradient direction.
  3. 3Copy the generated CSS and paste it into your `background` or `background-image` rule.

About this tool

CSS gradients are rendered by the browser, so they scale perfectly and add no image weight. The most common pattern (two colors and a direction) covers most use cases for hero sections, buttons, and cards. For more elaborate effects, add additional stops or move to a radial or conic gradient.

Related tools

FAQ

Frequently asked questions

Short answers to what people ask most.

Reviewing work with your team?

Pin comments directly on a live website or design — no extension, no setup.

Annotate live sites and screenshotsCapture browser, viewport, and CSS contextFree for your first project