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.12.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.12.1-py3-none-any.whl (364.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coloraide-8.12.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.12.1.tar.gz
Algorithm Hash digest
SHA256 1ec65d8e293527bfd7785482f390e84250561f7484dc9b9d2bb62d4ce05271d3
MD5 e74955ad0985b075b63d280cfb7a71e8
BLAKE2b-256 5dce355d2eff4f189b73ba7dbdb2f8c06861965d8d5c3309761d3e318b185496

See more details on using hashes here.

Provenance

The following attestation bundles were made for coloraide-8.12.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.12.1-py3-none-any.whl.

File metadata

  • Download URL: coloraide-8.12.1-py3-none-any.whl
  • Upload date:
  • Size: 364.1 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.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65d57a1990ee0e09961d64aa0746aa3759f94237a69984c008ebf31c4db08329
MD5 5024d983071e5fbd383ff83743d01bfd
BLAKE2b-256 321e8039069ece1efd209cc03558e83d5e29d9acc96f9e3341c9304bd8eedb70

See more details on using hashes here.

Provenance

The following attestation bundles were made for coloraide-8.12.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

This release

8.12.1 This release

2 files

8.12

2 files

8.11.1

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