# Color reference

Below are details on the different color palettes and scales that Kumu supports. Use these with the [Color by](/guides/decorate.md#color-by) tool in the Basic Editor, or use them in the [Advanced Editor](/guides/decorate.md#decorate-in-the-advanced-editor) with the `categorize()` and `scale()` functions.

## Named color scales

Kumu has built-in support for a number of named color scales, including all [ColorBrewer](http://bl.ocks.org/mbostock/5577023) scales.

### Sequential and diverging

Both sequential and diverging color palettes are great when you are trying to show quantitative data or data that has a meaningful order.

<table><thead><tr><th width="115.00000000000003"></th><th></th></tr></thead><tbody><tr><td>YlGn</td><td><img src="/files/wmtStoPb5Qe9cc0u7tsf" alt="YlGn" data-size="line"></td></tr><tr><td>YlGnBu</td><td><img src="/files/a2FG3wQz355wJYkj3nIg" alt="YlGnBu" data-size="line"></td></tr><tr><td>GnBu</td><td><img src="/files/G5HZBg8revdxSTCW5nSu" alt="GnBu" data-size="line"></td></tr><tr><td>BuGn</td><td><img src="/files/ORAp4XroXvYGoKWoyE1q" alt="BuGn" data-size="line"></td></tr><tr><td>PuBuGn</td><td><img src="/files/FX0z2qutsMsDCayhODyD" alt="PuBuGn" data-size="line"></td></tr><tr><td>PuBu</td><td><img src="/files/75b0OdvpPhCQuTW86BPo" alt="PuBu" data-size="line"></td></tr><tr><td>BuPu</td><td><img src="/files/UoibPyDn2COp4B2eRnKR" alt="BuPu" data-size="line"></td></tr><tr><td>RdPu</td><td><img src="/files/tppuXzj9g4JdRfZdarMr" alt="RdPu" data-size="line"></td></tr><tr><td>PuRd</td><td><img src="/files/rea37kL2dqxzZUmEo6xf" alt="PuRd" data-size="line"></td></tr><tr><td>OrRd</td><td><img src="/files/qMQLKKRTUekUThFINHq5" alt="OrRd" data-size="line"></td></tr><tr><td>YlOrRd</td><td><img src="/files/diZQTGbZIwokeZzrgorc" alt="YlOrRd" data-size="line"></td></tr><tr><td>YlOrBr</td><td><img src="/files/pwVsoASoiVVZVywNHEhu" alt="YlOrBr" data-size="line"></td></tr><tr><td>Purples</td><td><img src="/files/YimL0qynpRd34MJcud1E" alt="Purples" data-size="line"></td></tr><tr><td>Blues</td><td><img src="/files/v99CJ0CN2DBWhLXs7GDf" alt="Blues" data-size="line"></td></tr><tr><td>Greens</td><td><img src="/files/vidT1PJgVI0QBAqxsubv" alt="Greens" data-size="line"></td></tr><tr><td>Oranges</td><td><img src="/files/MLUgsxFBce48NUjshxKR" alt="Oranges" data-size="line"></td></tr><tr><td>Reds</td><td><img src="/files/1WlcGYWNwVxQzRmbnPU9" alt="Reds" data-size="line"></td></tr><tr><td>Greys</td><td><img src="/files/U3rmsrjZQxq8yvAyoooY" alt="Greys" data-size="line"></td></tr><tr><td>PuOr</td><td><img src="/files/gkhhiAx0MIdje8JCNWZ6" alt="PuOr" data-size="line"></td></tr><tr><td>BrBG</td><td><img src="/files/SGr3jPJfBvANZ1TgL1dW" alt="BrBG" data-size="line"></td></tr><tr><td>PRGn</td><td><img src="/files/4EGdqQt1Etock76lYJs9" alt="PRGn" data-size="line"></td></tr><tr><td>PiYG</td><td><img src="/files/pmNJQpXKjG7FWv62G0By" alt="PiYG" data-size="line"></td></tr><tr><td>RdBu</td><td><img src="/files/t8oDk5ixKX54exv6n5mP" alt="RdBu" data-size="line"></td></tr><tr><td>RdGy</td><td><img src="/files/JCRD90rEC11WaoMT6tDk" alt="RdGy" data-size="line"></td></tr><tr><td>RdYlBu</td><td><img src="/files/zKvxspWQK39h6JMpsIxY" alt="RdYlBu" data-size="line"></td></tr><tr><td>Spectral</td><td><img src="/files/zZvM8e78qLheXKXURg7Z" alt="Spectral" data-size="line"></td></tr><tr><td>RdYlGn</td><td><img src="/files/0p3eVM7Qwys5RYUEyEDe" alt="RdYlGn" data-size="line"></td></tr><tr><td>nautical</td><td><img src="/files/08bEceFwzNawmiwUMql4" alt="nautical" data-size="line"></td></tr><tr><td>deepsea</td><td><img src="/files/RLcoGDp6EJZ6anjLXIXH" alt="deepsea" data-size="line"></td></tr><tr><td>heat</td><td><img src="/files/EbMCjqxwfpvakoYclwW3" alt="heat" data-size="line"></td></tr><tr><td>flamingo</td><td><img src="/files/ejotdD98gwsje4Xqs5Dw" alt="flamingo" data-size="line"></td></tr><tr><td>coffee</td><td><img src="/files/NLFyEW5oxOhG1HDngGIb" alt="coffee" data-size="line"></td></tr><tr><td>stoplight</td><td><img src="/files/GDMWX4IgBVbLwPozu9LC" alt="stoplight" data-size="line"></td></tr></tbody></table>

### Qualitative

Qualitative color palettes are best when you are trying to show data with discrete values that don't have an inherent order.

<table><thead><tr><th width="126.00000000000003"></th><th></th></tr></thead><tbody><tr><td>bujumbra</td><td><img src="/files/XCTKdwXtjombUxKlOK6m" alt="bujumbra" data-size="line"></td></tr><tr><td>neon</td><td><img src="/files/U9JuvesgQsqlACiTuNDh" alt="neon" data-size="line"></td></tr><tr><td>neon2</td><td><img src="/files/cPuUcAaphxZ8O64eP2Hx" alt="neon2" data-size="line"></td></tr><tr><td>olympic</td><td><img src="/files/yQ4F5vCKEGZoerqssTRg" alt="olympic" data-size="line"></td></tr><tr><td>Accent</td><td><img src="/files/tTCX09cUfWfjiqhK0Kez" alt="Accent" data-size="line"></td></tr><tr><td>Dark2</td><td><img src="/files/5yQ5he5A16hnNvvUNCfa" alt="Dark2" data-size="line"></td></tr><tr><td>Paired</td><td><img src="/files/Y4opNW18LiX8QupR68XC" alt="Paired" data-size="line"></td></tr><tr><td>Pastel1</td><td><img src="/files/3XQs5rcYgbghNlGd6J6K" alt="Pastel1" data-size="line"></td></tr><tr><td>Pastel2</td><td><img src="/files/xtNOJB4lEX1OlBorJZYS" alt="Pastel2" data-size="line"></td></tr><tr><td>Set1</td><td><img src="/files/g38kXwVfiKCV6TwJDaXf" alt="Set1" data-size="line"></td></tr><tr><td>Set2</td><td><img src="/files/bSLGoQ4SkY0Sz6D4FuZP" alt="Set2" data-size="line"></td></tr><tr><td>Set3</td><td><img src="/files/I2Em4YtDZhgPmvROdqup" alt="Set3" data-size="line"></td></tr></tbody></table>

Here's an example of how to use a named color scale:

```scss
element {
  color: scale("net worth", bujumbra);
}
```

## Inverting a color scale

Any color scale can be inverted by adding `-inverted` to the name.

## Defining your own color palette

You can define your own color palette for elements by using a comma separated list of color values.

```scss
@settings {
  element-color: categorize("community", #5BC1AE, #009CDB, #F6882B, #8E278F);
}
```

For [flags](/guides/decorate/flags.md), the code is slightly different:

```scss
@settings {
  element-flag: "Tags" with #5BC1AE, #009CDB, #F6882B, #8E278F;
}
```

## Setting explicit stops for color values in categorize()

It's also possible to specify which value should receive a certain color for elements.

```scss
@settings {
  element-color: categorize("element type", #5BC1AE "Person", #009CDB "Organization", #F6882B "Region");
}
```

For [flags](/guides/decorate/flags.md), the code is slightly different:

```scss
@settings {
  element-flag: "Tags" with #5BC1AE "Person", #009CDB "Organization", #F6882B "Region;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kumu.io/overview/advanced-editor-hub/color-reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
