DESIGN

CSS Gradient Generator

Find a fresh blend. Pick two colors and take the CSS with you.

YOUR WORKSPACE
BROWSER GENERATED
A fresh perspective.
Generated locally. No network request.

A little clarity, coming right up.

Your result will appear here.
A clean result. No extra steps.
Processed here. Never uploaded.
Tip: Ctrl + Enter or ⌘ + Enter to run.
THE QUICK START

One less thing on your list.

  1. 01

    Pick a start color and an end color.

  2. 02

    Adjust the angle while checking the live preview.

  3. 03

    Generate and copy the CSS background declaration.

A LITTLE CONTEXT

About this tool

Create a two-stop linear gradient with standard CSS. The preview updates as you adjust colors and angle, and the generated declaration is ready to paste into a stylesheet.

This version supports two opaque hex colors and one angle. Color interpolation and appearance can differ slightly by browser and display.

GOOD TO KNOW

A couple of useful answers.

Do I need to download an image?+

No. The gradient is generated by CSS and scales with your element.

Can I change the direction?+

Yes. Adjust the angle from 0 to 360 degrees. CSS uses 0 degrees for upward direction.

This tool runs in your browser. Your input is not uploaded or saved by Saanvi.

Privacy details