Gradient Generator

Build CSS linear and radial gradients visually, then copy the code.

Tool Panel

Loading tool...
About Gradient Generator

Visual editor for linear gradients: pick the colours and direction and copy the resulting background declaration.

  • 1

    It generates a **two-colour linear gradient**: `linear-gradient(direction, from, to)`. Directions are right, down, 45° and 135° — the diagonals use angles rather than `to top right` because an angle lands predictably, while a `to …` keyword shifts with the element aspect ratio.

  • 2

    Both colours come from a picker or a pasted hex, and the preview updates on either change.

  • 3

    The output is a single `background` line that works on any selector.

Related tools

View all
Color Picker
Design Tools

Color Picker

Pick a colour and read off its HEX, RGB and HSL values.

Design Tools
Contrast Checker
Design Tools

Contrast Checker

Check foreground and background contrast against accessibility thresholds.

Design Tools
Box Shadow Generator
Design Tools

Box Shadow Generator

Tune a box shadow visually and copy the CSS.

Design Tools
Unit Converter
Design Tools

Unit Converter

Convert physical units across length, weight, volume and more.

Design Tools
Bytes Converter
Design Tools

Bytes Converter

Convert between bytes, KB, MB, GB and TB.

Design Tools
Border Radius Generator
Design Tools

Border Radius Generator

Tune each corner visually and copy the CSS border-radius.

Design Tools