- I just discovered this nice effort (too late).
- This is not an answer but too complicated for a comment.
- Feel free to "Flag" and/or delete the "answer' if you dislike it.
- There is a nice website that is related to the color choice topic including colorblind safe and print-friendly considerations.
- The author is apparently an expert on the topic (see here and here).
Update
% Based on https://tex.stackexchange.com/questions/525261 (Ulrike's code)
\documentclass{article}
\usepackage{xcolor}
\usepackage[colorlinks]{hyperref}
% Set 1
\definecolor{MK_One_One}{RGB}{140,81,10}
\definecolor{MK_One_Two}{RGB}{216,179,101}
\definecolor{MK_One_Three}{RGB}{246,232,195}
\definecolor{MK_One_Four}{RGB}{199,234,229}
\definecolor{MK_One_Five}{RGB}{90,180,172}
\definecolor{MK_One_Six}{RGB}{1,102,94}
%setup new colors 1
\hypersetup{
linkcolor=MK_One_One
,citecolor=MK_One_Two
,filecolor=MK_One_Three
,urlcolor= MK_One_Six
,menucolor=MK_One_Five
,runcolor=MK_One_Four
,linkbordercolor=MK_One_One
,citebordercolor=MK_One_Two
,filebordercolor=MK_One_Three
,urlbordercolor=MK_One_Six
,menubordercolor=MK_One_Five
,runbordercolor=MK_One_Four
}
\begin{document}
\tableofcontents
\noindent
Based on \url{https://colorbrewer2.org/#type=diverging&scheme=BrBG&n=6}.
\section{Proposal 1}\label{sec}
\subsection{Colorlinks}
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkcolor} & \ref{sec} \\\\
\texttt{citecolor} & \cite{cite} \\\\
\texttt{filecolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlcolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menucolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runcolor} & \href{run:sumatra}{run something}
\end{tabular}
\subsection{Borders}
\makeatletter
\def\@pdfborder{1 1 1}
\def\HyColor@UseColor#1{}
\makeatother
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkbordercolor} & \ref{sec} \\\\
\texttt{citebordercolor} & \cite{cite} \\\\
\texttt{filebordercolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlbordercolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menubordercolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runbordercolor} & \href{run:sumatra}{run something}
\end{tabular}
\makeatletter
\def\@pdfborder{0 0 0}
\def\HyColor@UseColor#1{%
\ifx\relax#1\@empty
\else
\ifx\@empty#1\@empty
\else
\expandafter\expandafter\expandafter\HyColor@@UseColor#1\@nil
\fi
\fi
}
\makeatother
% ========================================================
% Set 2
\definecolor{MK_Two_One}{RGB}{178,24,43}
\definecolor{MK_Two_Two}{RGB}{239,138,98}
\definecolor{MK_Two_Three}{RGB}{253,219,199}
\definecolor{MK_Two_Four}{RGB}{209,229,240}
\definecolor{MK_Two_Five}{RGB}{103,169,207}
\definecolor{MK_Two_Six}{RGB}{33,102,172}
%setup new colors 2
\hypersetup{
linkcolor=MK_Two_One
,citecolor=MK_Two_Two
,filecolor=MK_Two_Three
,urlcolor= MK_Two_Six
,menucolor=MK_Two_Five
,runcolor=MK_Two_Four
,linkbordercolor=MK_Two_One
,citebordercolor=MK_Two_Two
,filebordercolor=MK_Two_Three
,urlbordercolor=MK_Two_Six
,menubordercolor=MK_Two_Five
,runbordercolor=MK_Two_Four
}
\section{Proposal 2}
\subsection{Colorlinks}
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkcolor} & \ref{sec} \\\\
\texttt{citecolor} & \cite{cite} \\\\
\texttt{filecolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlcolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menucolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runcolor} & \href{run:sumatra}{run something}
\end{tabular}
\subsection{Borders}
\makeatletter
\def\@pdfborder{1 1 1}
\def\HyColor@UseColor#1{}
\makeatother
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkbordercolor} & \ref{sec} \\\\
\texttt{citebordercolor} & \cite{cite} \\\\
\texttt{filebordercolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlbordercolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menubordercolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runbordercolor} & \href{run:sumatra}{run something}
\end{tabular}
\makeatletter
\def\@pdfborder{0 0 0}
\def\HyColor@UseColor#1{%
\ifx\relax#1\@empty
\else
\ifx\@empty#1\@empty
\else
\expandafter\expandafter\expandafter\HyColor@@UseColor#1\@nil
\fi
\fi
}
\makeatother
% ========================================================
% Set 3
\definecolor{MK_Three_One}{RGB}{118,42,131}
\definecolor{MK_Three_Two}{RGB}{175,141,195}
\definecolor{MK_Three_Three}{RGB}{231,212,232}
\definecolor{MK_Three_Four}{RGB}{217,240,211}
\definecolor{MK_Three_Five}{RGB}{127,191,123}
\definecolor{MK_Three_Six}{RGB}{27,120,55}
%setup new colors 3
\hypersetup{
linkcolor=MK_Three_One
,citecolor=MK_Three_Two
,filecolor=MK_Three_Three
,urlcolor= MK_Three_Six
,menucolor=MK_Three_Five
,runcolor=MK_Three_Four
,linkbordercolor=MK_Three_One
,citebordercolor=MK_Three_Two
,filebordercolor=MK_Three_Three
,urlbordercolor=MK_Three_Six
,menubordercolor=MK_Three_Five
,runbordercolor=MK_Three_Four
}
\section{Proposal 3}
\subsection{Colorlinks}
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkcolor} & \ref{sec} \\\\
\texttt{citecolor} & \cite{cite} \\\\
\texttt{filecolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlcolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menucolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runcolor} & \href{run:sumatra}{run something}
\end{tabular}
\subsection{Borders}
\makeatletter
\def\@pdfborder{1 1 1}
\def\HyColor@UseColor#1{}
\makeatother
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkbordercolor} & \ref{sec} \\\\
\texttt{citebordercolor} & \cite{cite} \\\\
\texttt{filebordercolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlbordercolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menubordercolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runbordercolor} & \href{run:sumatra}{run something}
\end{tabular}
\makeatletter
\def\@pdfborder{0 0 0}
\def\HyColor@UseColor#1{%
\ifx\relax#1\@empty
\else
\ifx\@empty#1\@empty
\else
\expandafter\expandafter\expandafter\HyColor@@UseColor#1\@nil
\fi
\fi
}
\makeatother
% ========================================================
% Set 4
\definecolor{MK_Two_One}{RGB}{178,24,43}
\definecolor{MK_Two_Two}{RGB}{239,138,98}
\definecolor{MK_Two_Three}{RGB}{253,219,199}
\definecolor{MK_Two_Four}{RGB}{209,229,240}
\definecolor{MK_Two_Five}{RGB}{103,169,207}
\definecolor{MK_Two_Six}{RGB}{33,102,172}
%setup new colors 4
\hypersetup{
linkcolor=MK_Two_One
,citecolor=MK_Two_One
,filecolor=MK_Two_Two
,urlcolor= MK_Two_One
,menucolor=MK_Two_Six
,runcolor=MK_Two_Five
,linkbordercolor=MK_Two_One
,citebordercolor=MK_Two_Two
,filebordercolor=MK_Two_Three
,urlbordercolor=MK_Two_Six
,menubordercolor=MK_Two_Five
,runbordercolor=MK_Two_Four
}
\section{Proposal 4}
\subsection{Colorlinks}
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkcolor} & \ref{sec} \\\\
\texttt{citecolor} & \cite{cite} \\\\
\texttt{filecolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlcolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menucolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runcolor} & \href{run:sumatra}{run something}
\end{tabular}
\subsection{Borders}
\makeatletter
\def\@pdfborder{1 1 1}
\def\HyColor@UseColor#1{}
\makeatother
\begin{tabular}{lll}
Type & Example \\\hline\\
\texttt{linkbordercolor} & \ref{sec} \\\\
\texttt{citebordercolor} & \cite{cite} \\\\
\texttt{filebordercolor} & \href{example-image.pdf}{file}\\\\
\texttt{urlbordercolor} & \url{https://www.latex-project.org/}\\\\
\texttt{menubordercolor} & \Acrobatmenu{View}{View Something}\\\\
\texttt{runbordercolor} & \href{run:sumatra}{run something}
\end{tabular}
\makeatletter
\def\@pdfborder{0 0 0}
\def\HyColor@UseColor#1{%
\ifx\relax#1\@empty
\else
\ifx\@empty#1\@empty
\else
\expandafter\expandafter\expandafter\HyColor@@UseColor#1\@nil
\fi
\fi
}
\makeatother
\begin{thebibliography}{99}
\bibitem{cite} some text
\end{thebibliography}
\end{document}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
,\definecolor{citecolour}{rgb}{0,0.6,0.2}
,\definecolor{urlcolour} {rgb}{0.8,0,0.8}
, via\hypersetup{linkcolor=linkcolour,citecolor=citecolour,filecolor=urlcolour,urlcolor=urlcolour,}
beamer
's\alert
command), and green since it's too bright, and hence is very difficult to read. It would be also great if there would be a separate color option for table of contents, since table of contents doesn't have to stand out from the surrounding text (because there is no surrounding text), while links may want to stand out some. This of course is not a criticism of the fantastic, flawlessly workinghyperref
package.