This curious crystal converts the real world into 8-bit

So that quantizes the hue and saturation, now we need a way to quantize the lightness.