The simple answer would be: http://www.modernizr.com/ . You can look at the source code and modify it to use only the HSL part.
, background-color HSLA, rgba hsla . , HSLA. :
function supportsHSLA() {
var style = createElement('a').style
style.cssText = 'background-color:hsla(120,40%,100%,.5)'
return style.backgroundColor.indexOf('rgba') > -1 ||
style.backgroundColor.indexOf('hsla') > -1
})
, CSS metrobalderas answer , .