Invert colour if slice is dark