I need more colours than the standard colours of the package xcolor. I have also tried the dvipsnames xcolor package but it didn't work. Every time when I tried to highlight a text with color from from the package, like ForestGreen, my text became black. I would like to have a color like in the image. Can anyone please help me?enter image description here

New contributor
user257460 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 8
    Welcome to TeX.SE! Please show us a short compilable TeX code resulting in your issue! Then we do not have to guess what you are doing ...
    – Mensch
    Nov 25 at 13:25
  • 1
    Try RGB 0,209,239 Nov 25 at 14:09
  • 2
    I don't think that the duplicate fits, but the question is clearly much to vage and unclear currently. Some code that shows what doesn't work is needed. Nov 25 at 16:30
  • It looks like all he wants, really, is a way to obtain “more colours than the standard colours of the package xcolor”. There are numerous ways to achieve that.
    – Ingmar
    Nov 25 at 16:54
  • 2
    Maybe you’d be interested in packages like xcolor-material, xcolor-solarized, and xkcdcolors?
    – Thérèse
    Nov 25 at 17:07

David Carlisle with his package color, which belongs to the graphics-bundle, is one of the forerunners when it comes to colour support in LaTeX. Many other packages build on it.

A starting point in learning about commands for typesetting text in colour might be section "3 Colour" of "Packages in the 'graphics' bundle" by David Carlisle and The LaTeX Project, often referenced as grfguide.pdf. Packages like xcolor, too, bring along the basic commands described there.

Probably the following example does help you?

enter image description here


      \vbox to1cm{\vfill\hbox to 2.5cm{\hfill#2\hfill}\vfill}%



\hrule height 0pt \vskip-4cm

This is how you get colored text:
\verb|\fcolorbox{blue}{yellow}{\textcolor{red}{Test}}|: \fcolorbox{blue}{yellow}{\textcolor{red}{Test}}
\verb|\colorbox{yellow}{\textcolor{red}{Test}}|: \colorbox{yellow}{\textcolor{red}{Test}}
\verb|\textcolor{red}{Test}|: \textcolor{red}{Test}

  {\large These are the colors provided by the option dvipsnames/according to dvips' color.pro:}

Note that when using the package \textbf{color} instead of the package \textbf{xcolor}, besides the option \textbf{dvipsnames}, after \textbf{dvipsnames} you also need to specify the option \textbf{usenames}.
Note that document-classes like \textbf{beamer} and some packages internally load \textbf{xcolor} so that you need to specify options for \textbf{xcolor} already with the directives for loading these document-classes/packages.\\
Otherwise you might get errors about option-clashes and the like where with online-platforms like overleaf you need to view the so-called "raw log" for taking notice. The "raw-log" is the .log-file provided by the LaTeX-compiler itself while the LaTeX-compiler is running and what people asking for .log-file wish to see.

  • 1
    Please be reluctant in upvoting answers of mine for a while. I am not in the condition for accessing trusted user tools. ;-> Nov 25 at 17:08

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