This question already has an answer here:

I'm trying to color one word using hyperref package as a homework to school,I was looking for some examples in the internet how to do it...but whatever I did it doesn't work.

My preamble:


Źródło tekstu i ilustracji: \href{https://pl.wikipedia.org/wiki/Stanis%C5%82aw_Lem}{Wikipedia}


Now In PDF i need to have this looks like this enter image description here

i guess its color Magenta in package hyperref but i dont know what commands i should use now in my code to color this

marked as duplicate by Troy, Stefan Pinnow, user2478, ebosi, user36296 Dec 15 '17 at 12:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    option colorlinks, also please post a full minimal example so we have something to just copy and test. We have no idea what your preamble looks like her. BTW: welcome to the site. – daleif Nov 2 '17 at 11:44
  • @daleif and where I sould write this? – Julia Orfin Nov 2 '17 at 11:46
  • \usepackage[colorlinks]{hyperref} or later on \hypersetup{colorlinks} – user31729 Nov 2 '17 at 11:55
  • and what command i sould use in line with word "Wikipedia" to make it in color Magenta? – Julia Orfin Nov 2 '17 at 11:56
  • 2
    @Julia: There is a manual to be read by users ;-) – user31729 Nov 2 '17 at 11:58

To get colored links, give hyperref the colorlinks option either as


or after loading hyperref issue


You can control the four hyperref colors via


where colorname is an existing colorname. By default urlcolor is magenta under colorlinks.

Not the answer you're looking for? Browse other questions tagged or ask your own question.