3

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
    Commented May 3, 2021 at 7:31

1 Answer 1

5

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? Commented May 3, 2021 at 7:28
  • 1
    @Umeshshankar You can use any colors, and you're not limited to two either.
    – chsk
    Commented May 3, 2021 at 7:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .