django-colorfield
color field for django models with a nice color-picker in the admin.
Decision gist · record as of 2026-08-14
Yes. It is actively maintained, has no known vulnerabilities, low install friction, and solves a common Django admin UX problem cleanly. The MIT license poses no restrictions. Install it if you need color fields in Django models with a polished admin interface.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Django must be installed and configured; run `python manage.py collectstatic` after adding to INSTALLED_APPS.
- Low friction: pure Python wheel with only Pillow as a runtime dependency.
- Actively maintained with recent commits and a stable release history since 2013.
License · maintenance · safety
permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2025-04-30 (471 days) · last repo commit 2026-08-10 · 661 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,178,445 downloads/mo, #4,262 on PyPI
Alternatives
Verify before relying
pip install django-colorfield
# In settings.py
INSTALLED_APPS = [..., 'colorfield']
# In models.py
from colorfield.fields import ColorField
from django.db import models
class MyModel(models.Model):
color = ColorField(default='#FF0000')- Whether auto-population from image top-left pixel works reliably across all image formats and edge cases.
- Performance impact when using color samples or choices with large palettes in admin forms.
What it is and what it does
django-colorfield is a Django app that provides a ColorField model field and corresponding form field for storing and editing color values. It integrates a JavaScript color picker (Coloris) into Django's admin interface, letting you select colors visually rather than typing hex codes. The field validates color format (hex, hexa, rgb, rgba) and can optionally extract dominant colors from uploaded images or present a curated palette of choices.
You install it by adding the app to INSTALLED_APPS, then declare color fields in your models just like any other Django field. It works with both ModelForm and plain Form contexts, and requires only Pillow as a dependency for image processing when using the image_field option.
Use it for
- Store theme or branding colors in a Django model with admin UI color picker instead of manual hex entry.
- Auto-extract a dominant color from user-uploaded images and store it alongside the image field.
- Provide a restricted or suggested color palette in admin forms using the samples or choices option.
- Accept color input in plain Django forms outside of model context with format validation.
- Build multi-format color storage (hex, rgb, rgba) with consistent validation across model and form layers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
It is actively maintained, has no known vulnerabilities, low install friction, and solves a common Django admin UX problem cleanly. The MIT license poses no restrictions. Install it if you need color fields in Django models with a polished admin interface.
Install
django-colorfield on PyPI
Before you install
Low friction: pure Python wheel with only Pillow as a runtime dependency. Actively maintained with recent commits and a stable release history since 2013.
Django must be installed and configured; run `python manage.py collectstatic` after adding to INSTALLED_APPS.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install django-colorfield
# In settings.py
INSTALLED_APPS = [..., 'colorfield']
# In models.py
from colorfield.fields import ColorField
from django.db import models
class MyModel(models.Model):
color = ColorField(default='#FF0000')
Verify before relying
- Whether auto-population from image top-left pixel works reliably across all image formats and edge cases.
- Performance impact when using color samples or choices with large palettes in admin forms.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagePillow |
| Maintenance | Actively maintained 471 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,178,445 / month, #4,262 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Build Tools |
Evidence: django_colorfield-0.14.0-py3-none-any.whl
Tags
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 › “django color field”
- django-colorfieldAdds a color field to Django models with an interactive color picker…
- django-enumfieldsProvides Django model fields that store Python enums natively,…
- django-ckeditor-5Integrates CKEditor 5, a modern rich-text editor, into Django models…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also django-enumfields · django-taggit · django-admin-interface · django-admin-env-notice · django-choices-field · django-phonenumbers · djangocms-admin-style · django-bootstrap-datepicker-plus · django-json-widget · django-dynamic-preferences