[Tex/LaTex] RGB code for predefined colors

color

I am using the package xcolor with the option dvipsnames to have access to predefined colors listed in the page :
The 68 standard colors known to dvips

I would like to get the RGB codes of all these colors (Periwinkle,RoyalBlue,PineGreen…) and I didn't find a table for such correspondances.
How can I get it ?

Best Answer

You can let xcolor show you the numbers:

\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\convertcolorspec{named}{RoyalBlue}{RGB}\tmp

RGB of Royalblue is: \tmp

\end{document}

enter image description here