Use hex string for toString()

Use hex string function for spectra object's toString() method. This allows for direct assignment to css properties.