Is there a way to use Linear gradient along with HSLA?

Im trying to set my background colour based off a formula and HSLA but i want to use it as a Linear gradient.This is what i have, but returns no colour

document.body.style.backgroundColor = `linear-gradient(179.31deg, 180,50%,${lightness}%) 9.28%, #F4AC4E 167.45%)`;

17 thoughts on “Is there a way to use Linear gradient along with HSLA?”

Leave a Comment