Ver originalvar hexvaluecolor = document.getElementById("ncolor").style.color = '#' + YAHOO.util.Color.rgb2hex(a[0], a[1], a[2]);