1

How to defined the color to use it as pagecolor with rgb? This code would work with blue instead of myblue. Thank you

\documentclass[12pt,a4paper]{report}

\usepackage{xcolor}
\usepackage{blindtext}
\definecolor{myblue}{rgb}{201.0, 227.0, 248.0}
\pagecolor{myblue}


\begin{document}

ggfhgdg

\end{document}
  • to convert from RGB to rgb simply divide each number by 255 – David Carlisle May 11 at 10:01
1
\documentclass[12pt,a4paper]{report}
\usepackage{xcolor}
\definecolor{myblue}{RGB}{201, 227, 248}
\pagecolor{myblue}
\begin{document}

    ggfhgdg

\end{document}
1

rgb takes values between 0 and 1, perhaps you want RGB which takes integer values 0-255 (but in that case you do not want the .0 in the values

enter image description here

\documentclass[12pt,a4paper]{report}

\usepackage{xcolor}
\usepackage{blindtext}
\definecolor{myblue}{RGB}{201, 227, 248}
\pagecolor{myblue}


\begin{document}

ggfhgdg

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.