found a good middle-ground to quantize the color values for browser-rendering