creates required number of swatches out of the given hex color codes