Skip to main content

Donate via PayPal Coverage Status PyPI Version PyPI Downloads PyPI - Python Version License

ColorAide

Overview

ColorAide is a pure Python, object oriented approach to colors.

>>> from coloraide import Color
>>> c = Color("red")
>>> c.to_string()
'rgb(255 0 0)'
>>> c.convert('hsl').to_string()
'hsl(0 100% 50%)'
>>> c.set("lch.chroma", 30).to_string()
'rgb(173.81 114.29 97.218)'
>>> Color("blue").mix("yellow", space="lch").to_string()
'rgb(255 65.751 107.47)'

ColorAide particularly has a focus on the following:

  • Accurate colors.

  • Proper round tripping (where reasonable).

  • Be generally easy to pick up for the average user.

  • Support modern CSS color spaces and syntax.

  • Make accessible many new and old non-CSS color spaces.

  • Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, filters, correlated color temperature, color vision deficiency simulation, etc.

  • Provide a plugin API to extend supported color spaces and approaches to various utilities.

  • Allow users to configure defaults to their liking.

With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in different CSS formats, and much more!

Documentation

https://facelessuser.github.io/coloraide

License

MIT

Download files

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

Source Distribution

coloraide-8.11.1.tar.gz (22.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coloraide-8.11.1-py3-none-any.whl (362.7 kB view details)

Uploaded Python 3

File details

Details for the file coloraide-8.11.1.tar.gz.

File metadata

  • Download URL: coloraide-8.11.1.tar.gz
  • Upload date:
  • Size: 22.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for coloraide-8.11.1.tar.gz
Algorithm Hash digest
SHA256 045315611aaf1346535a33b4ee974d04c3ec5c5d257a35beccbe0c6c7768dd90
MD5 9403690ce20e94433e4c84e059a1ad5c
BLAKE2b-256 8ae75271f015d9564089de5e0af762fb553376802504e80f63183c4b43788e5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for coloraide-8.11.1.tar.gz:

Publisher: deploy.yml on facelessuser/coloraide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coloraide-8.11.1-py3-none-any.whl.

File metadata

  • Download URL: coloraide-8.11.1-py3-none-any.whl
  • Upload date:
  • Size: 362.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for coloraide-8.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1f2545979ce341df6cfe9fbf09c0c20baaf0f73b55f32b3e8b88b005ed21daa
MD5 bd80b8f331042e2d44b5f5b6cc344f3f
BLAKE2b-256 38bc806002e1db8f5a45c774c74fffbb31f4bf1c5bbe4b416b355ebf8f27e745

See more details on using hashes here.

Provenance

The following attestation bundles were made for coloraide-8.11.1-py3-none-any.whl:

Publisher: deploy.yml on facelessuser/coloraide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

8.12.1

2 files

8.12

2 files

This release

8.11.1 This release

2 files

8.11

2 files

8.10

2 files

8.9

2 files

8.8.1

2 files

8.8

2 files

8.7

2 files

8.6

2 files

8.5

2 files

8.4

2 files

8.3

2 files

8.2

2 files

8.1

2 files

8.0.2

2 files

8.0.1

2 files

8.0

2 files

7.0

2 files

6.2.1

2 files

6.2

2 files

6.1

2 files

6.0

2 files

5.1

2 files

5.0

2 files

4.7.2

2 files

4.7.1

2 files

4.7

2 files

4.6

2 files

4.5.1

2 files

4.5

2 files

4.4.1

2 files

4.4

2 files

4.3

2 files

4.2.2

2 files

4.2.1

2 files

4.2

2 files

4.1

2 files

4.0.1

2 files

4.0

2 files

3.3.1

2 files

3.3

2 files

3.2

2 files

3.1.2

2 files

3.1.1

2 files

3.1

2 files

3.0.1

2 files

3.0

2 files

2.16

2 files

2.15.1

2 files

2.15

2 files

2.14.1

2 files

2.14

2 files

2.13.1

2 files

2.13

2 files

2.12

2 files

2.11

2 files

2.10

2 files

2.9.1.post1

2 files

2.9.1

2 files

2.9

2 files

2.8

2 files

2.7.1

2 files

2.7

2 files

2.6

2 files

2.5

2 files

2.4

2 files

2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.2

2 files

2.1

2 files

2.0.2

2 files

2.0.1

2 files

2.0

2 files

1.8.2

2 files

1.8.1

2 files

1.8

2 files

1.7.1

2 files

1.7

2 files

1.6

2 files

1.5

2 files

1.4

2 files

1.3

2 files

1.2

2 files

1.1

2 files

1.0

2 files

0.18.1

2 files

0.18.0

2 files

0.17.1

2 files

0.16.0

2 files

0.15.1

2 files

0.15.0.post1

2 files

0.15.0

2 files

0.14.2

2 files

0.14.1

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page