JavaScript
Run Code
Open in Fiddle
var hslColor = Ext.draw.Color.fromHSL(79.74, 0.61, .5), hslValues = hslColor.getHSL(); Ext.getBody().appendChild({ tag : 'div', html : 'toString(): ' + hslColor.toString() + '<br /><br />getHSL(): ' + hslValues, style : 'padding:15px;height:100px;display:inline-block;border:solid 1px;margin:10px;background-color:' + hslColor.toString() });