\documentclass{article}

\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage{tikz}

\newcommand{\thecolorbar}{	
	\begin{tabular}{p{0.7cm} p{0.6cm} p{0.7cm} p{1cm}}
		\cellcolor[RGB]{255, 0, 0}{~} & {[255,0,0]} &  \\
		\cellcolor[RGB]{240, 0, 0}{~} & {[240,0,0]} &  \\
		\cellcolor[RGB]{237, 0, 0}{~} & {[237,0,0]} &  \\
		\cellcolor[RGB]{233, 0, 0}{~} & {[233,0,0]} &  \\
		\cellcolor[RGB]{230, 0, 0}{~} & {[230,0,0]} &  \\
		\cellcolor[rgb]{1.00000,1.00000,1.00000}{~} & {color1} \\
	    \cellcolor[rgb]{0.50196,0.50196,0.50196}{~} & {color2} \\
	    \cellcolor[rgb]{0.00000,0.00000,0.00000}{~} & {color3} \\
	    \cellcolor[rgb]{1.00000,0.75294,0.75294}{~} & {color4} \\
	    \cellcolor[rgb]{0.00000,0.50196,0.50196}{~} & {color5} \\
	    \cellcolor[rgb]{0.00000,1.00000,1.00000}{~} & {color6} \\
	    \cellcolor[rgb]{0.00000,0.75294,0.00000}{~} & {color7} \\
	    \cellcolor[rgb]{0.00000,0.25098,0.00000}{~} & {color8} \\
	    \cellcolor[rgb]{0.50196,0.00000,0.00000}{~} & {color9} \\
	    \cellcolor[rgb]{0.75294,0.25098,0.00000}{~} & {color10} \\
	    \cellcolor[rgb]{0.00000,1.00000,0.00000}{~} & {color11} \\
	    \cellcolor[rgb]{1.00000,0.00000,0.00000}{~} & {color12} \\
	    \cellcolor[rgb]{1.00000,0.00000,0.60000}{~} & {color13} \\
	    \cellcolor[rgb]{1.00000,0.50196,0.00000}{~} & {color14} \\
	    \cellcolor[rgb]{0.50196,0.50196,1.00000}{~} & {color15} \\
	    \cellcolor[rgb]{0.47451,0.20000,0.82353}{~} & {color16} \\
	    \cellcolor[rgb]{1.00000,1.00000,0.00000}{~} & {color17} \\
	    \cellcolor[rgb]{1.00000,0.50196,0.50196}{~} & {color18} \\
	    \cellcolor[rgb]{0.20000,0.40000,0.00000}{~} & {color19} \\
					
	\end{tabular}%		
}

\begin{document}
\thecolorbar
\clearpage
\thecolorbar

\begin{tikzpicture}
    \draw [ultra thick, draw=black, fill=yellow, opacity=0.2]
       (0,0) -- (0,1) -- (1,1) -- cycle;
       
    \draw [ultra thick, draw=black, fill=yellow, opacity=0.2]
           (0.2,-0.2) -- (0.2,0.8) -- (1.2,0.8) -- cycle;
   \node[align=left] at (3,0) {(some transparency here)};
\end{tikzpicture}


\end{document}