Skip to content

A CSS value from the fields

Write a linear-gradient

The angle runs from 0 to 360 degrees. The two colors are the ends of the gradient.

The result is the CSS function, not an image.

The work stays in this tab.

This tool runs in your browser. Turn on JavaScript to use it.

CSS gradient

The sample is fixed. It uses the same rule as the form.

Angle
90
Start
#1e4d3a
End
#f3f0e8
Result
linear-gradient(90deg, #1e4d3a, #f3f0e8)

How to use it

  1. 1Fill in the fields.
  2. 2Read the result.
  3. 3Copy the line you need.

Good to know

  • There are no extra color stops.
  • This page does not upload the text.
  • Text longer than one hundred thousand characters is rejected.

Questions

Does the result leave this browser?

No. The calculation finishes in the current tab.

What does this page leave out?

There are no extra color stops.

What if the input is huge?

Past one hundred thousand characters, the page stops and asks you to shorten it.

Related tools

  • Mix two colors by a percentage

    0 keeps the first color. 100 is the second color. 50 is the midpoint of each channel.

  • Convert a color

    The same color is written as hex, RGB, or HSL depending on the file. This page parses one of those forms and prints the other two.

  • Write a box-shadow value

    The four lengths are offset x, offset y, blur, and spread, in pixels.