# [Tex/LaTex] How to change the color of \href links… for real

beamerhyperref

I would like web links generated by the \href command to be colored in my Beamer presentation. Passing the colorlinks option to hyperref leads to navigation links within the PDF receiving (default, ugly) colors. OTOH, without passing that option hyperref doesn't apply any color to links at all.

\definecolor{links}{HTML}{2A1B81}
\hypersetup{urlcolor=links} % Does not apply color to href's


Is there a way to tell hyperref to apply a color only to links generated by \href (or \url), and leave navigation links alone? (I know that I could define a command \myhref to do the color-changing manually; I am looking for a solution that uses the built-in facilities of hyperref/beamer.)

You could add \hypersetup{linkcolor=} in order to remove the coloring of internal links used for navigation purposes:

\documentclass{beamer}