A foreground color for a digital image is automatically determined by
dividing the colors of the pixels of at least a part of the digital image
into a number of color clusters in a color space, and for at least one
cluster selecting a color being related to the at least one color cluster
according to predetermined criteria.