> For the complete documentation index, see [llms.txt](https://supernova-developers.gitbook.io/supernova-dsm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://supernova-developers.gitbook.io/supernova-dsm/design-system-data/tokens/colors.md).

# Color

Color tokens define one single color, such as `#FFFFFF` .

### Example Token Payload

This is what the color payload looks like:

```javascript
{
  "id": string
  "name": string
  "description": string
  "tokenType": "Color"
  "origin": ItemOrigin | null
  "value": {
    "hex": string
    "r": int (0-255),
    "g": int (0-255),
    "b": int (0-255),
    "a": int (0-255),
    "referencedToken": Color | null
  }
}
```

### Associated functions

You can use the following functions to retrieve color tokens from your design system:

* [@ds.allTokens](/supernova-dsm/design-system-data/function-list.md#ds-alltokens)
* [@ds.tokensByType](/supernova-dsm/design-system-data/function-list.md#ds-tokensbytype) (with `"Color"`) attribute
* [@ds.tokensByGroupId](/supernova-dsm/design-system-data/function-list.md#ds-tokensbygroupid)
