# cssRgb string for color fields now available in CDA

[date: 2023-04-14T00:00:00.389+02:00]

To make integrating with your front-end easier, we decided to have the CDA returning a handy string containing the `rgb()` functional notation of a color field, expressed with [the current standard syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb).

As an example, the following query:

```graphql
{
  leaf {
    color {
      cssRgb
    }
  }
}
```

Returns a string containing three space-separated values, representing respectively values for red, green, and blue. Optionally, it may also include a slash / followed by a fourth value, representing alpha.

```plaintext
{
  "data": {
    "leaf": {
      "color": {
        "cssRgb": "rgb(213 185 185 / .43)"
      }
    }
  }
}
```