Background gradient cas be used to display a nice smooth transition between at least two colors.
See example css below.
background: rgb(2,0,36);
background: radial-gradient(
circle,
rgba(2,0,36,1) 0%,
rgba(9,9,121,1) 52%,
rgba(0,212,255,1) 100%
);