CSS Gradient Generator

Build a linear CSS gradient from two colors and a selectable angle.

Workspace

Result

Your result will appear here.

How to use it

  1. Fill in starting hex color, ending hex color, angle in degrees.
  2. Select “Generate CSS” to see the result.

Worked example

Input
#205f48 to #c3deaf at 90°
Output
background: linear-gradient(90deg, #205f48, #c3deaf);

Frequently asked questions

What is a 90-degree CSS gradient?

A 90-degree gradient runs horizontally from left to right. A 180-degree gradient runs from top to bottom.