Skip to main content

A namedtuple for storing RGBA color values, along with a few simple methods for generating and modifying colors.

Project description

The module also contains lots of named colors, e.g. SeaGreen = Color(1, 2, 3), taken from the xkcd color survey.


Any operating system. Tested on Python 2.7, but ought to work on 3.x. No other dependencies.


pip install colortuple

Known Problems



Raymond Hettinger for named tuples.


Documentation & download:
Souce code and issues:
Contact the author:Jonathan Hartley, email: tartley at domain, Twitter: @tartley.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions (8.5 kB view hashes)

Uploaded source

colortuple-1.0.2.tar.gz (5.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page