Configure the Color Field
The Color field allows content writers to select a color through a variety of color pickers and have the option to input a hex color value manually.
The color field allows users to select a color via a color picker. It returns the color's hex code.

When configuring a Color field you'll see the options to set the Field name and API ID.

type
string (required)
Value must be Color
config
object
Object for the configuration options
config.label
string
The label that shows up for the field in the entry editor
Copy
"example_color": {
"type": "Color",
"config": {
"label": "Color"
}
}
Here is an API response example of a Color field with the API ID of example_color:
Copy
// API response example of a Color field
{
//...
"example_color": "#5b295f"
}
Was this article helpful?
Can't find what you're looking for? Spot an error in the documentation? Get in touch with us on our Community Forum or using the feedback form above.