(Cost) a Pretty Penny

What does the expression “a pretty penny” mean?

Definition: a high cost

Example: Hybrid cars are good for the environment, but if you buy one, it’ll cost you a pretty penny.