2

Hi i am looking for Light colors for the page background. here is my code:

\documentclass{article}[12pt]
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\pagecolor{Dandelion}
\color{Violet}
\Large
$$x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}$$
\end{document}

My output is shown below:

enter image description here

How to reduce brightness of the above color?

1
  • Welcome to TeX.SE, BTW --- and a tip, [12pt] should come before {article}, not after. – chsk May 3 at 7:31
2

You could mix it with white (or any other color really), for instance, using Dandelion!20!white ("20" here means 20% Dandelion, with the rest being white):

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\pagecolor{Dandelion!20!white}
\color{Violet}
\Large
$$x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}$$
\end{document}

enter image description here

Have a look at the xcolor documentation as well.

2
  • Can this mixing be done with any two colors or only with white? – Umesh shankar May 3 at 7:28
  • 1
    @Umeshshankar You can use any colors, and you're not limited to two either. – chsk May 3 at 7:29

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.