"a green pepper"
You are absolutely correct. Vihreä pippuri is not a real name for that spice, but viherpippuri. Maybe if you have viherpippuri in your hand and you say to someone "look, this pepper is green" as an observation, then it is correct. But then you are just referring to the color and not identifying the spice.