With the xcolor
package one can define colors in many ways for example, using standard names,
\colorbox{red}{...}
Merging colors
\colorbox{red!25}{...}
\colorbox{red!25!blue}{...}
Or from the RGB or CYMK values
\colorbox[rgb]{0.1,0.2,0.3}{...}
Is it possible to combine inline the RGB and merging approaches? For example
\colorbox[rgb]{0.1,0.2,0.3 ! 25}{...} %invalid code
\colorbox{\color[rgb]{0.70,0.05,0.65}!25}{...} %also invalid
To make a given RGB color lighter. The context is that for a given element I know the RGB value but I want to make it lighter by merging with white.
MWE:
\documentclass[]{article}
\usepackage[]{xcolor}
\begin{document}
\colorbox[rgb]{0.70,0.05,0.65}{A} % this turns to be dark violet, how to get something like {violet!25}
\end{document}