---
schema_version: "1"
id: b4497e4b4b45498b12209dec23990b8d926f4c3b37e34cc031f851b10842ff90
title: ColorDefinition
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_colordefinition.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_colordefinition.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2abdbec107f414ad333eff78c69355df55528e52a58530ae72ed1c04ec22c8fe
description: Represents color metadata for a tab. Available in API version 43.0 and later.
---
# ColorDefinition

Represents color metadata for a tab. Available in API version 43.0 and later.

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/images/icon_note.png)

#### Note

In API version 45.0 and later, only users with the “View Setup and Configuration” permission can access ColorDefinition.

## Supported SOAP Calls

query()

## Supported REST HTTP Methods

Query, GET

## Fields

| Field Name | Details |
| --- | --- |
| Color | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

The color specified in web color RGB format—for example, 00FF00.



 |
| Context | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The color context, which determines whether the color is the main color (or primary) for the tab.



 |
| DurableId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for the field. Always retrieve this value before using it, as the value isn’t guaranteed to stay the same from one release to the next. To simplify queries, use this field.



 |
| TabDefinitionId | 

Type

string

Properties

Filter, Nillable, Sort

Description

The ID of the tab this definition belongs to. Defaults to null.



 |
| Theme | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The user interface theme this definition is associated with.



 |