• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

Colors in LaTeX

Contents

  • See also

LaTeX knows the following colors without any packages:

black blue brown cyan
darkgray gray green lime
magenta olive orange pink
purple red teal violet
white yellow

If you want other colors, you can define them with \usepackage{xcolor} and \definecolor{name}{model}{color-spec} where:

  • name is the name of the color you want to define,
  • model is the color space (gray, rgb, RGB, HTML, cmyk)
  • color-spec is the definition of the color in the chosen model

For example:

\definecolor{orange}{HTML}{FF7F00}
\definecolor{orange}{rgb}{1,0.5,0}
\definecolor{orange}{RGB}{255,127,0}
\definecolor{orange}{cmyk}{0,0.5,1,0}

You can find suitable colors with a color picker

See also

  • Wikibooks: LaTeX/Colors

Published

Nov 20, 2016
by Martin Thoma

Category

Cyberculture

Tags

  • LaTeX 29

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor