The GMT package implements colour gradients with the cpt (colour palette) file format, and provides some tools for creating and manipulating them. The cptutils package contains a number of additional utilities, mostly for translation to and from other formats.

The cptutils package was written to aid the construction of the cpt archive cpt-city (where thousands of gradients can be downloaded). The Unix source distribution for version 1.68 of the package can be downloaded here (you will need to have libxml2 and libpng installed to compile it).

Fedora/RH Linux users will find a prebuilt package in their YUM repositories (alternatively, via RPM pbone or rpmfind) and Gentoo Portage is detailed here.

An online conversion tool based on cptutils can be found at cptutils-online.