Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Color API

Security covered Under active development 2,451 sites

This module provides functionality for managing colors within Drupal. It includes a Color field that can be added to entities and a Color content type for storing color data, which can be represented by a name, hexadecimal code, or RGB values.

πŸ‡ΊπŸ‡¦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Module Overview

The idea of this module is to provide a full set around of Drupal functionality behind the idea of a color, for Drupal sites. It provides a set of Drupal data types and functionality that can be used to manage colors on Drupal sites, including a Color field that can be attached to an entity, and a Color content entity type, which can be used by other contributed modules or site builders.

Currently, the module considers the idea of a 'color' as:

  • A human-readable name
  • A hexadecimal color string in the format #XXXXXX (where X is a hexadecimal character [0-9, a-f])
  • An RGB value, containing values for red, blue and green, each being a number between 0 and 255.

At its core, the module provides new Typed Data API objects for rgb_color, hexadecimal_color, and color (which contains both hexadecimal and RGB color data).

The module also provides an optional Color field, that can be attached to any entity, as well as an optional Color entity. Both of these can be enabled on the module configuration page.

Roadmap

The current plan for this module is for a version 8.x-1.0 release. The module will remain as a release candidate for the moment while any bug reports are received, which will be fixed before the full release.

At the moment, no further functionality is planned with this module. However suggestions and requests for new functionality are welcome, as long as said requests fit within the scope of what this module is intended to provide.

Drupal 10–11

Ask your assistant about Color API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

1 tracked project depends on this one

Activity

Tracked releases
4
Tracked since
Feb 2024
Latest release
1 week ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.2.0 Stable 10–11 Oct 8, 2026
2.1.0 Stable 10–11 Jun 30, 2025
2.0.0 Stable 8–10 Feb 15, 2024
2.0.x-dev Dev 10–11 Feb 15, 2024