topnush
I recently upgraded my version of texlive to
```
pdflatex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
```
Now when I try to render this skeleton beamer document:
```
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{listings}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
shapes,
tikzmark}
\usetikzlibrary{tikzmark,shapes.geometric, patterns,decorations.pathreplacing, calligraphy}
\usetikzmarklibrary{listings}
\definecolor{titlecolor}{RGB}{29, 110, 174}
\newcommand{\tikzcircle}[3][red]{\tikz[baseline=-0.5ex]{\node[draw={#1}, fill={#1}, circle,text width=#2,minimum width=1.4em,text=black,align=center] at (0,0) {#3};}\hspace{0pt}}%
\def\numcolors{10}
\def\numdots{18}
\pgfmathparse{1/\numcolors}%
\definecolorseries{foo}{hsb}{step}{red!90!black}{\pgfmathresult,0,0}
\resetcolorseries[\numcolors]{foo}%
\begin{document}
\begin{frame}[t, fragile]{\textsc{Morris} - Quality of estimate}
\pgfmathrandominteger{\myran}{1}{10}%
\tikzcircle[{foo!![\myran]}]{8pt}%
\end{frame}
\end{document}
```
I get
```
! Package pgf Error: Unsupported color model `hsb'. Sorry.
```
How can this be fixed?
Top Answer
samcarter
@Ulrike Fischer (as usual :)) nailed the problem. This was a temporary bug in beamer v3.65. You should update to beamer v3.66 or newer.
As a temporary workaround until you update, you could use
```
\PassOptionsToPackage{rgb}{xcolor}
\documentclass{beamer}
```