The sentence that contains a metaphor is:
"The sunset was a masterpiece of brilliant oranges, pinks, and purples."
This sentence compares the sunset to a masterpiece without using "like" or "as," which indicates a metaphor. The other sentences use similes or literal descriptions.