I can’t seem to get jQuery.css() to accept an hsla() value. Is it not an acceptable format to pass a color value in? This is what I have tried:
// the below variable outputs a variable value with the following format
// hsla(131, 10%, 100%, 1.0)
var finalcolor = "hsla(" +colx +", " +coly +"%, " +"100%, " +"1.0)";
$('#target-div').css('background', finalcolor);
It does work, but your color is just white!
Check resulting style in firebug / chrome debugger, and check the HSL 2 RGB converter.
http://serennu.com/colour/hsltorgb.php