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

Uploaded Python 3

File details

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

File metadata

  • Download URL: coloraide-8.12.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.tar.gz
Algorithm Hash digest
SHA256 8ed8224946581c83c7002e85c193a733f5bce6881fa861cb8ddfc1c67b689522
MD5 81122a772831ff1c1b6bc74cf605370d
BLAKE2b-256 059ed73f5e24b8b250d4d222c8cf69ea1bc2a134ce50698fcbb066fb6d611a27

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: coloraide-8.12-py3-none-any.whl
  • Upload date:
  • Size: 364.0 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-py3-none-any.whl
Algorithm Hash digest
SHA256 7fbdfb4fe65ac3d845f3e1b740515ce5d650c5043d4df067ac193a3923ed227e
MD5 2b75a9ea5b73a66ca1b0468a16736545
BLAKE2b-256 0f8eaedfca4c7cf5c44ab95c91174beb6f8a5083f210f7e5c7ad9669c622a05e

See more details on using hashes here.

Provenance

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

This release

8.12 This release

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