pablonoya/dominantcolors

Extract dominant colors from an image using K-means and adjust them to have a defined contrast ratio

38
/ 100
Emerging

This tool helps designers and content creators automatically pick two contrasting colors from any image. You provide an image, and it outputs a pair of hex color codes: one for a background and a contrasting one for foreground text or elements. It's ideal for quickly styling interfaces or content based on visual cues.

Use this if you need to quickly extract a dominant color scheme from an image for design purposes, ensuring good readability between foreground and background elements.

Not ideal if you need a full-spectrum color palette extraction or fine-grained control over color selection beyond a primary foreground/background pair.

graphic-design web-design content-creation color-selection theming
No Package No Dependents
Maintenance 10 / 25
Adoption 5 / 25
Maturity 16 / 25
Community 7 / 25

How are scores calculated?

Stars

11

Forks

1

Language

Python

License

GPL-3.0

Last pushed

Feb 02, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/pablonoya/dominantcolors"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.