$npx skillfedfor your agent

colorhash

Generate color based on any object

Worth itPyPI GraphicsReleased Mar 2026384.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — colorhash-2.3.0-py3-none-any.whl
v2.3.0 · released 2026-03-12 · Python <3.16,>=3.8

Yes. Zero dependencies, active maintenance, no known vulnerabilities, and a permissive MIT license make this a low-risk addition. Install it if you need deterministic color mapping for UI consistency; the API is minimal and the library does one thing well.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Actively maintained as of 2026-03-12 with recent fixes to hue calculation and support for modern Python versions.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and closed-source projects with minimal attribution requirements.

last release 2026-03-12 (155 days) · last repo commit 2026-03-12 · 19 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 384,160 downloads/mo, #7,069 on PyPI

Verify before relying

pip install colorhash

from colorhash import ColorHash

c = ColorHash('Hello World')
print(c.hex)  # '#2dd24b'
print(c.rgb)  # (45, 210, 75)
print(c.hsl)  # (131, 0.65, 0.5)
Same gist for agents: .md · .json

What it is and what it does

ColorHash is a lightweight Python library that maps any input object to a deterministic color by computing a hash and converting it to HSL, RGB, or hex format. The same input always produces the same color output, making it useful for UI elements like user avatars or category labels where visual consistency matters. The library supports Python 3.8 through 3.15 and has zero runtime dependencies, keeping it simple to integrate.

You control the output by adjusting hue range (min_h to max_h), saturation levels, and lightness levels. The library picks deterministically from the ranges you provide, so you can create narrow color palettes or wide variety depending on your needs. The core API is straightforward: instantiate ColorHash with an object and optional parameters, then access the .hsl, .rgb, or .hex properties.

Use it for

  • Assign consistent avatar colors to users based on their identifier across a web application.
  • Generate category or tag colors that remain stable even after data reloads or cache refreshes.
  • Create color-coded visual indicators for status or priority levels in dashboards.
  • Build theme-aware color schemes by constraining hue ranges to match brand guidelines.
  • Implement deterministic syntax highlighting or data visualization where the same entity always gets the same color.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Zero dependencies, active maintenance, no known vulnerabilities, and a permissive MIT license make this a low-risk addition. Install it if you need deterministic color mapping for UI consistency; the API is minimal and the library does one thing well.

Install

colorhash on PyPI

Before you install

Low install friction with no runtime dependencies. Actively maintained as of 2026-03-12 with recent fixes to hue calculation and support for modern Python versions.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open and closed-source projects with minimal attribution requirements.

Quickstart

pip install colorhash

from colorhash import ColorHash

c = ColorHash('Hello World')
print(c.hex)  # '#2dd24b'
print(c.rgb)  # (45, 210, 75)
print(c.hsl)  # (131, 0.65, 0.5)

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <3.16,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 155 days since the last release
Last repo commit
First released
Downloads384,160 / month, #7,069 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: colorhash-2.3.0-py3-none-any.whl

Tags

Capabilities
deterministic color generationhash to color conversionavatar color assignmentconsistent color mappinghsl rgb hex color from stringcolor hash librarycategory label coloring
Topics
color-generationdeterministic-hashingui-utilities
PyPI keywords
colorhashhexhslrgb

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “deterministic color generation”

  • colorhashGenerates deterministic colors from any object by hashing its value,…
  • colourmapGenerates unique RGB and HEX colors from input lists or colormaps,…
  • materialyoucolorGenerates Material Design 3 color schemes and palettes from source…

Give your agent the search over MCP, or paste the wish link into any chat.

More Graphics packages

pillow Worth it
PyPI · Graphics · released Jul 2026

Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.

Install it if you need to work with images in Python—it is the de facto standard for this task.

MIT-CMUcompiled wheel · 3.10+
547.1Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
matplotlib-inline Worth it
PyPI · Graphics · released May 2026

Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.

BSD-3-Clausepure Python · 3.9+
130.5Mdownloads / mo
pymupdf Worth it
PyPI · Libraries · released Aug 2026

PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.

The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.

AGPLcompiled wheel · 3.10+
114.9Mdownloads / mo
pypdfium2 Worth it
PyPI · Libraries · released Aug 2026

pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.

Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.

permissive licensecompiled wheel · 3.6+
76.9Mdownloads / mo
altair Worth it
PyPI · Graphics · released Jun 2026

Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.

BSD-3-Clausepure Python · 3.10+
54.5Mdownloads / mo

See also colour · colourmap · ImageHash · colorzero · materialyoucolor · webcolors · coloraide · colorlover · hashring