Added color-variation calculation