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

Uploaded Python 3

File details

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

File metadata

  • Download URL: coloraide-8.11.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.tar.gz
Algorithm Hash digest
SHA256 415520ec70b30620492eeddff6283ae7bcffbcc51f8153bbfa2f560ae27f500e
MD5 9b50c0eef466817b75a55f1f04022a45
BLAKE2b-256 70aa97ab0614ba627b504337e3618c989f945ef81380c884c0eaaa9c409cc9af

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: coloraide-8.11-py3-none-any.whl
  • Upload date:
  • Size: 362.8 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-py3-none-any.whl
Algorithm Hash digest
SHA256 6e07c1d84c6299b243e479837b61c2697af0b567df139ebcd0ee94e76fe83839
MD5 74fbc2bd13156d17e27293542b0da5f9
BLAKE2b-256 973b4013aa7d4b9c0e4833e2e7f14e51b1f4c9c59d544009d7713a7d3090a307

See more details on using hashes here.

Provenance

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

8.11.1

2 files

This release

8.11 This release

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