Custom CSS to change link colors, sitewide

I added “custom code” CSS to my project settings, hoping to change the color of all links inside of all paragraphs. But it didn’t work. Does anyone know why it would not work or what should be used instead?

p a {color: purple;}

No link, as it’s just a general quesiton.