# CSS Gradient Generator — Linear, Radial & Conic

> Create linear, radial, or conic CSS gradients with live preview, editable color stops, copyable CSS, and an endpoint contrast check.

Source: https://toolpantry.app/css-gradient-generator

## About

Build a linear, radial, or conic CSS gradient with editable color stops, a live preview, and a copy-ready background declaration.

## Quick answer

**How do I create a CSS gradient?** Pick two or more colors and a direction; copy the ready-made linear or radial gradient CSS.

## How to build a CSS gradient

1. **Pick the type** — linear, radial, or conic.
2. **Edit the color stops** — drag positions until the blend feels right.
3. **Copy the CSS** — one declaration, no image files.

## Where gradients fit

- Hero backgrounds that scale to any screen without assets
- Buttons, badges, and avatar placeholders with depth
- Subtle section separation instead of hard color blocks

## Good to know

Always test text contrast on the finished gradient — the page warns when your endpoints get risky, because a gradient can pass at the edges and fail in the middle. Prefer CSS over gradient images: it is sharp on any display, adapts to dark mode, and costs zero bytes. Banding on older displays is real; a very subtle noise overlay hides it when it matters. Related: [color converter](https://toolpantry.app/color-converter).

## Notes

The contrast note checks only the selected text color against the color-stop endpoints. A gradient can still contain lower-contrast areas between stops, so review the actual design before publishing.

## FAQ

**Can I use this with Tailwind?**

Copy the generated CSS declaration into a custom class or convert the same gradient values into your project's arbitrary-value syntax.

**What is the difference between linear and radial?**

Linear gradients transition along a line or angle. Radial gradients spread from an origin point, while conic gradients rotate around that point.

**Does the contrast check certify WCAG?**

No. It is an endpoint warning based on the selected text color. Test important text against the full background and your target accessibility standard.
