> For the complete documentation index, see [llms.txt](https://cathy-thy.gitbook.io/drupal-9/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cathy-thy.gitbook.io/drupal-9/modules/color-field.md). Agents can also search and read this documentation through its [MCP server](https://cathy-thy.gitbook.io/drupal-9/~gitbook/mcp).

# Color Field

{% embed url="<https://www.drupal.org/project/color_field>" %}

{% hint style="success" %}
Result:
{% endhint %}

![Color field in content type](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2Fgit-blob-e2e8fef4f85a9f3a04c7516e3d3a070067644233%2Fcf4.png?alt=media)

{% hint style="info" %}
Steps:
{% endhint %}

```php
//Install
composer require drupal/color_field
//Enable module via drush
drush en color_field  
```

![](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2Fgit-blob-484ec49a14d5701980352e62f1dda1015e037d2f%2Fcf1.png?alt=media) ![](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2Fgit-blob-a677ed1919603e924a3a4d1d17af018d46322bf0%2Fcf2.png?alt=media)

![Add color field to content type](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2Fgit-blob-f3c921ef907ea10c8c11fee6670863432eccbb8f%2Fcf3.png?alt=media) ![Result](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2Fgit-blob-e2e8fef4f85a9f3a04c7516e3d3a070067644233%2Fcf4.png?alt=media)
