xcolor: LaTeX color extensions


xcolor is a LaTeX package that provides easy driver-independent access to several kinds of colors, tints, shades, tones, and mixes of arbitrary colors by means of color expressions like \color{red!50!green!20!blue}.
It allows to select a document-wide target color model and offers tools for

  • automatic color schemes,
  • conversion between twelve color models (rgb, cmy, cmyk, hsb, Hsb, tHsb, gray, RGB, HTML, HSB, Gray, wave)
  • alternating table row colors,
  • color blending,
  • color masking,
  • color separation, and
  • color wheel calculations.
See also chroma for an extensive application of xcolor.


Dr. Uwe Kern (xcolor at ukern dot de)


Latest version: v2.12 (2016/05/11)

ChangeLog14861 1 2TextHistory of changes
README1835 1 2TextInstallation instructions
xcolor.pdf.gz584068 1 2 6PDFUser manual and documentation of algorithms
xcolor.ps.gz796822 5PostScript
xcolor.dtx.gz92162 1 2LaTeX source
xcolor.ins.gz363 1 2 3LaTeX installationPackage installation file
xcolor.pro.gz911 2 3PostScriptdvips prologue file
xcolor.sty.gz14208 2 3LaTeX styleLaTeX style file
svgnam.def.gz2000 2 3LaTeX definitionLaTeX color definitions according to SVG 1.1
x11nam.def.gz2970 2 3LaTeX definitionLaTeX color definitions according to Unix/X11
xcolor1.pdf.gz514710 4PDF50-page document with several systematic color conversion examples (LaTeX + pdfLaTeX)
xcolor1.ps.gz509043 5PostScript
xcolor1.tex.gz2256 3LaTeX source
xcolor2.pdf.gz85485 1 2 6PDF3-page `pstricks' example document (LaTeX only)
xcolor2.ps.gz234615 5PostScript
xcolor2.tex.gz2330 3LaTeX source
xcolor3.pdf.gz159722 4PDF3-page example document for demonstrating several display and logging facilities (LaTeX + pdfLaTeX)
xcolor3.ps.gz170588 5PostScript
xcolor3.tex.gz2434 3LaTeX source
xcolor4.tex.gz2282 3LaTeX source1-page driver test file (LaTeX + pdfLaTeX); the archive contains dvi/ps/pdf outputs for many different drivers
xcolor4.cab489558 7Archive
xcolor212.zip769972  ArchiveDistribution package for CTAN
xcolor212.cab746720  ArchiveDistribution package for MiKTeX
xcolor212.cab746174  ArchiveTDS-compliant file collection for immediate installation
Notes: 1 Part of CTAN distribution package
2 Part of MiKTeX distribution package
3 Generated from `xcolor.dtx'
4 Processed with pdfLaTeX
5 Processed with LaTeX + dvips
6 Processed with LaTeX + dvips + Ghostscript
7 Processed with LaTeX, pdfLaTeX and several drivers and post-processors

Known issues

  • \rowcolors[\hline]... does not work with `longtable'.


New features in upcoming releases:

  • more colors

External sources

Search for `xcolor' in