---
title: "coloraide | pypx"
description: "A color library for Python."
canonical_url: "https://pypx.app/packages/coloraide"
meta:
  "og:description": "A color library for Python."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_coloraide%2Cversion_8.16%2Csummary_A%2Bcolor%2Blibrary%2Bfor%2BPython.%2Clicense_MIT%2Cp_Ii9wYWNrYWdlcy9jb2xvcmFpZGUi%2Cs_U3tRAaUQfEIWpIVp.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "coloraide 8.16"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_coloraide%2Cversion_8.16%2Csummary_A%2Bcolor%2Blibrary%2Bfor%2BPython.%2Clicense_MIT%2Cp_Ii9wYWNrYWdlcy9jb2xvcmFpZGUi%2Cs_U3tRAaUQfEIWpIVp.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **coloraide**

v8.16

A color library for Python.

346 KB Python 3.11+ py3-none-anyMIT

[** Diff **](https://pypx.app/packages/coloraide/diff)

`$ uv add coloraide`

[![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal)](https://www.paypal.me/facelessuser) [![Coverage Status](https://img.shields.io/codecov/c/github/facelessuser/coloraide/main.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333)](https://codecov.io/github/facelessuser/coloraide) [![PyPI Version](https://img.shields.io/pypi/v/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333)](https://pypi.python.org/pypi/coloraide) [![PyPI Downloads](https://img.shields.io/pypi/dm/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333)](https://pypi.python.org/pypi/coloraide) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/coloraide?logo=python&logoColor=aaaaaa&labelColor=333333)](https://pypi.python.org/pypi/coloraide) [![License](https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333)](https://github.com/facelessuser/coloraide/blob/main/LICENSE.md)

# 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

## **Details **

<dl>

<dt>Version</dt>
<dd>8.16</dd>

<dt>License</dt>
<dd>MIT</dd>

<dt>Python</dt>
<dd>&gt;=3.11</dd>

<dt>Maintainer</dt>
<dd>Isaac Muse &lt;Isaac.Muse@gmail.com&gt;</dd></dl>

## **Links**

- [Homepage](https://github.com/facelessuser/coloraide)
- [View on PyPI](https://pypi.org/project/coloraide/)

## **Release Cadence **

**28**

releases in the past year

avg 14 days between releases

## **Maintainers **

- Isaac Muse · [Isaac.Muse@gmail.com](mailto:Isaac.Muse@gmail.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/coloraide#webpage","@type":"WebPage","description":"A color library for Python.","name":"coloraide","url":"https://pypx.app/packages/coloraide","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/coloraide"]}]},{"@id":"https://pypx.app/packages/coloraide#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"A color library for Python.","license":"MIT","name":"coloraide","softwareVersion":"8.16"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
