# Error “Dimension too large” (\@tempdima) when using HTML color 097054 with beamer's \setbeamercovered{transparent} option

The code

\documentclass{beamer}
\mode<presentation>{\setbeamercovered{transparent}}
\begin{document}
\begin{frame}
\onslide<2>{\textcolor[HTML]{097054}{foo}}
\end{frame}
\end{document}


results in the error ! Dimension too large: \@tempdima. Is there a known/simple fix for this?

-
If you define \definecolor{somecolor}{HTML}{097054} and then use \onslide<2>{\textcolor{somecolor}{foo}} it works. –  percusse Dec 12 '11 at 6:59
It's a good idea to define colors, as shown in percusse's comment, in the preamble, so that one can be consistent in their usage. –  egreg Dec 12 '11 at 8:40

\definecolor{somecolor}{HTML}{097054}
\onslide<2>{\textcolor{somecolor}{foo}}