Colorium
A comprehensive color manipulation library for Python with 10+ color spaces, filters, and distance calculations.
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
See it in action
Explore Colorium's capabilities with live code examples
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())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
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}")Ready to build something colorful?
Colorium is open source and free to use under the MIT license. Join hundreds of developers using Colorium.