Color palettes, symbol palettes, and line pattern palettes for Stata graphs


The palettes package contains Stata commands colorpalette, colorpalette9, symbolpalette, and linepalette. The commands are used by grstyle to manage colors, symbols, and line patterns. They can also be used directly to view or retrieve a palette.

Stata 9.2 or newer is required. Command colorpalette requires Stata 14.2 or newer.


To install the commands on your system, run command

ssc install palettes, replace

in Stata. Thereafter, type

help palettes

to view the help file. In Stata 14.2 or newer, the colrspace package is required. Hence, also type

ssc install colrspace, replace

To check for updates, type

adoupdate palettes colrspace

Alternatively, you can download the palettes package from the SSC Archive and add the files to your system manually (see file readme.txt within for installation instructions).


The palettes package has been written by Ben Jann.

Thanks for citing the palettes package in your work in one of the following ways:

Source of this website

This website is based on the Bootstrap framework (version 3.3.7) and has been generated by webdoc. The Stata do-files of this website can be downloaded from here.