linear-gradient()

The linear-gradient() function sets a linear gradient as the background image.

background: linear-gradient(#2196F3, #290a60);
OR
/* Explicitly declare the angle, in degrees */
background-image: linear-gradient(72deg, #F44336, #FFEB3B);
Output
OR