# SetColorChannel Formatter Examples

## Example 1

```json
{
  "context": {
    "rowBGConfig": {
      "channel": "hsl.l",
      "value": "*0.2"
    },
    "headerBackgroundColor": {
      "channel": "hsv.v",
      "value": "*0.66"
    }
  },
  "options": {
    "backgroundColor": "orangered",
    "rowBackgroundColor": "> backgroundColor | setColorChannel(rowBGConfig)",
    "headerColor": "> backgroundColor | setColorChannel(headerColorConfig)"
  },
  "dataSources": {
    "primary": {
      "data": {
        "fields": [
          {
            "name": "foo"
          }
        ],
        "columns": [
          [
            100,
            200
          ]
        ]
      }
    }
  }
}
```
