10+ color spaces · Zero dependencies

Colorium

A comprehensive color manipulation library for Python with 10+ color spaces, filters, and distance calculations.

Get Started
10+ Color Spaces
Zero Dependencies
MIT License
10+
Color Spaces
147
Named Colors
0
Dependencies
3.8+
Python Version
Features

Everything you need

A complete color manipulation toolkit with modern color spaces

10+ Color Spaces

RGB, HSL, HWB, CMYK, OKLCH, LAB, LCH, and Display P3

Rich Color Filters

Sepia, grayscale, invert, contrast, brightness, and more

Precise Manipulation

Saturate, desaturate, lighten, darken, and blend colors

Color Distance

CIE76, CIE94, CIEDE2000 Delta E calculations

Perceptual Similarity

Similarity scoring from 0.0 to 1.0 based on human vision

Smart Blending

Mix colors with customizable ratios and weights

147 Named Colors

All CSS named colors with case-insensitive lookup

CSS Color Level 4

OKLCH, LAB, LCH, and Display P3 wide gamut support

Interactive Showcase

See it in action

Explore Colorium's capabilities with live code examples

Python
from colorium import Color

red = Color(255, 0, 0)

print(red.to_hsl_string())
print(red.to_hwb_string())
print(red.to_cmyk_string())
print(red.to_hex_string())
print(red.to_oklch_string())
Color Preview
#FF0000
RGB(255, 0, 0)
HSLhsl(0, 100%, 50%)
HWBhwb(0, 0%, 0%)
CMYKcmyk(0%, 100%, 100%, 0%)
OKLCHoklch(62.8% 0.258 29.2)
Power Features

Simple & powerful

Everything you need to work with colors in Python

10+ Color Spaces

Support for RGB, HSL, HWB, CMYK, OKLCH, LAB, LCH, and Display P3

Delta E Calculations

CIE76, CIE94, and CIEDE2000 for accurate color difference

Zero Dependencies

Pure Python, no external libraries required

147 Named Colors

All CSS named colors with case-insensitive lookup

Smart Blending

Mix colors with customizable ratios and weights

Color Similarity

Perceptual similarity scoring from 0.0 to 1.0

colorium_demo.py
from colorium import Color, RED, BLUE, WHITE, from_string

red = Color(255, 0, 0)
blue = from_string("blue")
purple = RED.blend(BLUE, 0.5)

print(red.to_hex_string())
print(red.to_hsl_string())
red.lighter(0.2)
print(red.to_hex_string())

distance = RED.delta_e(BLUE, "cie2000")
similarity = RED.similarity(BLUE)
print(f"Delta E: {distance:.2f}")
print(f"Similarity: {similarity:.2f}")
Open Source
Zero Dependencies
10+ Color Spaces

Ready to build something colorful?

Colorium is open source and free to use under the MIT license. Join hundreds of developers using Colorium.

Modern color spacesPerceptual algorithmsZero dependenciesPure PythonWell testedProduction ready