1. A non-transitory computer readable medium storing a computer program which when executed by at least one processing unit performs a color matching operation, the computer program comprising sets of instructions for: identifying first and second images, each image comprising a plurality of pixels, each pixel comprising a hue component value; identifying a set of hue ranges for the first image based on analysis of the hue component values of pixels in the first image; identifying a set of hue ranges for the second image based on analysis of the hue component values of pixels in the second image; and modifying pixel values of the first image to match pixel values of the second image based on the sets of hue ranges for the first and second images.