[Tex/LaTex] How to change a color of a specific citation

citingcolor

I want most of my citation to be blue in color. So I used

\usepackage{hyperref}
\hypersetup{colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red}}  

But I need some of my citation in a different color(say yellow). I tried

{\color{yellow} \cite{eg} }

to change the specific citation brutally but it doesn't work. What should I do.

Best Answer

... \hypersetup{citecolor=yellow}\cite{eg}\hypersetup{citecolor=blue} ...

should do.