Merging close color values