How to measure and optimize color data