# Color Swatches

Documenting a project's colors (brand palette, theme variables, status indicators) is one of those tasks that looks simple until you actually try to do it well. Static screenshots go stale, hand-coded HTML is tedious to maintain, and plain text hex codes are meaningless without a visual reference beside them.

The `{{< color-swatch >}}` shortcode solves this by turning a small YAML file into an interactive, accessible color palette. Each swatch displays its hex code, shows RGB/HSL breakdowns on hover, evaluates WCAG contrast ratios, and lets readers copy values with a single click. You can render individual palettes, reference the built-in Great Docs gradient presets, or combine both approaches.

This guide walks through every feature (from a minimal first palette to advanced customization options) so you can present colors as clearly as you present code.


# Quick Start

The fastest way to get a palette on the page is to create a YAML file with your colors and reference it from a shortcode. No configuration beyond the file path is needed.

Start by creating a YAML file somewhere in your project. Each entry needs a `name` and a `hex` value:


    assets/colors.yml


``` yaml
- name: Sky Blue
  hex: "#38bdf8"
- name: Deep Navy
  hex: "#1e3a5f"
- name: Coral
  hex: "#f97316"
```


Then reference it with the shortcode in any `.qmd` page:

``` markdown
{{< color-swatch file="assets/colors.yml" >}}
```

Here is the result (three circle swatches with names and hex labels):


<div class="gd-swatch-color" style="background:#38bdf8" hex="#38bdf8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#38bdf8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky Blue</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#38bdf8</code> <button class="gd-cs-tooltip-copy" data-hex="#38bdf8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>56, 189, 248</td></tr><tr><td>HSL</td><td>198&deg;, 93%, 60%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>46.3 Lc</td></tr><tr><td>vs Black</td><td>62.3 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky Blue \#38bdf8


<div class="gd-swatch-color" style="background:#1e3a5f;--gd-ring-color:#466287" needs-ring="true" hex="#1e3a5f" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#1e3a5f"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Deep Navy</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#1e3a5f</code> <button class="gd-cs-tooltip-copy" data-hex="#1e3a5f" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>30, 58, 95</td></tr><tr><td>HSL</td><td>214&deg;, 52%, 25%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>100.0 Lc</td></tr><tr><td>vs Black</td><td>7.6 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Deep Navy \#1e3a5f


<div class="gd-swatch-color" style="background:#f97316" hex="#f97316" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f97316"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Coral</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f97316</code> <button class="gd-cs-tooltip-copy" data-hex="#f97316" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>249, 115, 22</td></tr><tr><td>HSL</td><td>25&deg;, 95%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>58.4 Lc</td></tr><tr><td>vs Black</td><td>50.9 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Coral \#f97316


Hover over any swatch to see its full color breakdown in a tooltip. Click a swatch to copy its hex value to the clipboard. That single shortcode line is all it takes to go from raw hex codes to a polished, interactive palette.


# Display Modes

The shortcode supports two display modes, controlled by the `mode` parameter. The default is `circles`, which works well for compact palettes and quick visual reference. The `rectangles` mode is better suited for detailed documentation where contrast information needs to be front and center. Additional modes (grid, gradient) are planned for future releases.


## Circles (Default)

Circle swatches are the default display mode. Each color appears as a filled circle with its name and hex code underneath, arranged in a responsive row that wraps as needed.

To render circle swatches, simply omit the `mode` parameter (or set `mode="circles"` explicitly):

``` markdown
{{< color-swatch file="assets/brand-colors.yml" >}}
```

Here is a five-color brand palette rendered as circles:


<div class="gd-swatch-color" style="background:#2563eb" hex="#2563eb" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#2563eb"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Primary</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#2563eb</code> <button class="gd-cs-tooltip-copy" data-hex="#2563eb" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>37, 99, 235</td></tr><tr><td>HSL</td><td>221&deg;, 83%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>80.2 Lc</td></tr><tr><td>vs Black</td><td>29.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Primary \#2563eb


<div class="gd-swatch-color" style="background:#6b7280" hex="#6b7280" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#6b7280"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Secondary</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#6b7280</code> <button class="gd-cs-tooltip-copy" data-hex="#6b7280" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>107, 114, 128</td></tr><tr><td>HSL</td><td>220&deg;, 9%, 46%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>79.0 Lc</td></tr><tr><td>vs Black</td><td>30.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Secondary \#6b7280


<div class="gd-swatch-color" style="background:#f97316" hex="#f97316" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f97316"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Accent</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f97316</code> <button class="gd-cs-tooltip-copy" data-hex="#f97316" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>249, 115, 22</td></tr><tr><td>HSL</td><td>25&deg;, 95%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>58.4 Lc</td></tr><tr><td>vs Black</td><td>50.9 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Accent \#f97316


<div class="gd-swatch-color" style="background:#22c55e" hex="#22c55e" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#22c55e"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Success</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#22c55e</code> <button class="gd-cs-tooltip-copy" data-hex="#22c55e" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>34, 197, 94</td></tr><tr><td>HSL</td><td>142&deg;, 71%, 45%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>49.2 Lc</td></tr><tr><td>vs Black</td><td>59.6 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Success \#22c55e


<div class="gd-swatch-color" style="background:#ef4444" hex="#ef4444" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ef4444"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Error</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ef4444</code> <button class="gd-cs-tooltip-copy" data-hex="#ef4444" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>239, 68, 68</td></tr><tr><td>HSL</td><td>0&deg;, 84%, 60%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>69.3 Lc</td></tr><tr><td>vs Black</td><td>40.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Error \#ef4444


Circles are compact and scannable, making them ideal for showcasing a handful of brand or theme colors at a glance. Each swatch is individually interactive (hover for details, click to copy).


## Rectangles

Rectangle mode renders each color as a full-width horizontal strip. This is useful when you want to emphasize contrast information alongside the color itself.

Set `mode="rectangles"` to switch:

``` markdown
{{< color-swatch mode="rectangles" file="assets/brand-colors.yml" >}}
```

Here are three colors rendered as rectangular strips:


<div class="gd-swatch-rect" role="button" tabindex="0" style="background:#2563eb;color:#FFFFFF" hex="#2563eb" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#2563eb"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Primary</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#2563eb</code> <button class="gd-cs-tooltip-copy" data-hex="#2563eb" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>37, 99, 235</td></tr><tr><td>HSL</td><td>221&deg;, 83%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>80.2 Lc</td></tr><tr><td>vs Black</td><td>29.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>" aria-label="Primary, hex #2563eb, click to copy">

Primary \#2563eb <span class="gd-swatch-aa-sample gd-cs-pass" style="color:#fff">Aa<span class="gd-swatch-aa-sample gd-cs-fail" style="color:#000">Aa</span></span>


<div class="gd-swatch-rect" role="button" tabindex="0" style="background:#6b7280;color:#FFFFFF" hex="#6b7280" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#6b7280"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Secondary</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#6b7280</code> <button class="gd-cs-tooltip-copy" data-hex="#6b7280" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>107, 114, 128</td></tr><tr><td>HSL</td><td>220&deg;, 9%, 46%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>79.0 Lc</td></tr><tr><td>vs Black</td><td>30.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>" aria-label="Secondary, hex #6b7280, click to copy">

Secondary \#6b7280 <span class="gd-swatch-aa-sample gd-cs-pass" style="color:#fff">Aa<span class="gd-swatch-aa-sample gd-cs-fail" style="color:#000">Aa</span></span>


<div class="gd-swatch-rect" role="button" tabindex="0" style="background:#f97316;color:#FFFFFF" hex="#f97316" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f97316"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Accent</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f97316</code> <button class="gd-cs-tooltip-copy" data-hex="#f97316" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>249, 115, 22</td></tr><tr><td>HSL</td><td>25&deg;, 95%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>58.4 Lc</td></tr><tr><td>vs Black</td><td>50.9 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>" aria-label="Accent, hex #f97316, click to copy">

Accent \#f97316 <span class="gd-swatch-aa-sample gd-cs-fail" style="color:#fff">Aa<span class="gd-swatch-aa-sample gd-cs-fail" style="color:#000">Aa</span></span>


Each strip displays the color name on the left, the hex code on the right, and white/black "Aa" contrast samples. The "Aa" labels are marked pass or fail against WCAG AA thresholds, so you can immediately see which text colors are safe to use on each background. Rectangle mode is especially valuable for design-system documentation where accessibility compliance is a primary concern.


# Built-In Palette Presets

Great Docs ships with eight gradient presets that power the site's gradient theming system. Rather than listing colors manually, you can reference any preset by name and the shortcode will render its color stops as swatches.

To use a preset, pass its name to the `palette` parameter instead of providing a `file`:

``` markdown
{{< color-swatch palette="sky" >}}
```

Here is the `sky` preset:


<div class="gd-swatch-color" style="background:#e0f4ff" hex="#e0f4ff" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#e0f4ff"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#e0f4ff</code> <button class="gd-cs-tooltip-copy" data-hex="#e0f4ff" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>224, 244, 255</td></tr><tr><td>HSL</td><td>201&deg;, 100%, 94%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>0.0 Lc</td></tr><tr><td>vs Black</td><td>97.6 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 100 \#e0f4ff


<div class="gd-swatch-color" style="background:#d0ecf9" hex="#d0ecf9" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d0ecf9"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d0ecf9</code> <button class="gd-cs-tooltip-copy" data-hex="#d0ecf9" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>208, 236, 249</td></tr><tr><td>HSL</td><td>199&deg;, 77%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>13.3 Lc</td></tr><tr><td>vs Black</td><td>92.1 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 200 \#d0ecf9


<div class="gd-swatch-color" style="background:#c5e8f7" hex="#c5e8f7" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#c5e8f7"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#c5e8f7</code> <button class="gd-cs-tooltip-copy" data-hex="#c5e8f7" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>197, 232, 247</td></tr><tr><td>HSL</td><td>198&deg;, 76%, 87%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>16.6 Lc</td></tr><tr><td>vs Black</td><td>89.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 300 \#c5e8f7


<div class="gd-swatch-color" style="background:#b8e0f5" hex="#b8e0f5" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#b8e0f5"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#b8e0f5</code> <button class="gd-cs-tooltip-copy" data-hex="#b8e0f5" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>184, 224, 245</td></tr><tr><td>HSL</td><td>201&deg;, 75%, 84%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>22.0 Lc</td></tr><tr><td>vs Black</td><td>84.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 400 \#b8e0f5


The full set of available presets is:

| Preset  | Description             |
|---------|-------------------------|
| `sky`   | Soft sky blues          |
| `peach` | Peach and blush         |
| `prism` | Mint, sky, and lavender |
| `lilac` | Lilac and pink          |
| `slate` | Cool grays              |
| `honey` | Warm cream and apricot  |
| `dusk`  | Soft lavender-blue      |
| `mint`  | Pale aqua               |

Each preset defines four color stops for both light and dark modes. The light-mode stops are shown by default. These are the same palettes available through the `gradient-preset` option in your site configuration, so the swatches you see here correspond exactly to the colors your site header and other gradient elements will use.


## All Presets at a Glance

If you want to compare every preset side by side (for example, when choosing a gradient theme for your site) use `palette="all"` to render all presets in a single view:

``` markdown
{{< color-swatch palette="all" >}}
```

This renders every preset's light-mode color stops, grouped by preset name:


<div class="gd-swatch-color" style="background:#e0f4ff" hex="#e0f4ff" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#e0f4ff"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#e0f4ff</code> <button class="gd-cs-tooltip-copy" data-hex="#e0f4ff" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>224, 244, 255</td></tr><tr><td>HSL</td><td>201&deg;, 100%, 94%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>0.0 Lc</td></tr><tr><td>vs Black</td><td>97.6 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 100 \#e0f4ff


<div class="gd-swatch-color" style="background:#d0ecf9" hex="#d0ecf9" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d0ecf9"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d0ecf9</code> <button class="gd-cs-tooltip-copy" data-hex="#d0ecf9" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>208, 236, 249</td></tr><tr><td>HSL</td><td>199&deg;, 77%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>13.3 Lc</td></tr><tr><td>vs Black</td><td>92.1 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 200 \#d0ecf9


<div class="gd-swatch-color" style="background:#c5e8f7" hex="#c5e8f7" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#c5e8f7"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#c5e8f7</code> <button class="gd-cs-tooltip-copy" data-hex="#c5e8f7" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>197, 232, 247</td></tr><tr><td>HSL</td><td>198&deg;, 76%, 87%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>16.6 Lc</td></tr><tr><td>vs Black</td><td>89.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 300 \#c5e8f7


<div class="gd-swatch-color" style="background:#b8e0f5" hex="#b8e0f5" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#b8e0f5"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#b8e0f5</code> <button class="gd-cs-tooltip-copy" data-hex="#b8e0f5" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>184, 224, 245</td></tr><tr><td>HSL</td><td>201&deg;, 75%, 84%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>22.0 Lc</td></tr><tr><td>vs Black</td><td>84.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 400 \#b8e0f5


<div class="gd-swatch-color" style="background:#ffe4cc" hex="#ffe4cc" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ffe4cc"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Peach 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ffe4cc</code> <button class="gd-cs-tooltip-copy" data-hex="#ffe4cc" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 228, 204</td></tr><tr><td>HSL</td><td>28&deg;, 100%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>12.6 Lc</td></tr><tr><td>vs Black</td><td>92.8 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Peach 100 \#ffe4cc


<div class="gd-swatch-color" style="background:#ffddc1" hex="#ffddc1" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ffddc1"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Peach 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ffddc1</code> <button class="gd-cs-tooltip-copy" data-hex="#ffddc1" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 221, 193</td></tr><tr><td>HSL</td><td>27&deg;, 100%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>16.2 Lc</td></tr><tr><td>vs Black</td><td>89.6 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Peach 200 \#ffddc1


<div class="gd-swatch-color" style="background:#fdd0d8" hex="#fdd0d8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#fdd0d8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Peach 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#fdd0d8</code> <button class="gd-cs-tooltip-copy" data-hex="#fdd0d8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>253, 208, 216</td></tr><tr><td>HSL</td><td>349&deg;, 92%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>21.2 Lc</td></tr><tr><td>vs Black</td><td>85.1 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Peach 300 \#fdd0d8


<div class="gd-swatch-color" style="background:#fbc4d4" hex="#fbc4d4" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#fbc4d4"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Peach 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#fbc4d4</code> <button class="gd-cs-tooltip-copy" data-hex="#fbc4d4" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>251, 196, 212</td></tr><tr><td>HSL</td><td>343&deg;, 87%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>26.8 Lc</td></tr><tr><td>vs Black</td><td>80.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Peach 400 \#fbc4d4


<div class="gd-swatch-color" style="background:#d0e8f5" hex="#d0e8f5" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d0e8f5"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Prism 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d0e8f5</code> <button class="gd-cs-tooltip-copy" data-hex="#d0e8f5" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>208, 232, 245</td></tr><tr><td>HSL</td><td>201&deg;, 65%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>15.4 Lc</td></tr><tr><td>vs Black</td><td>90.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Prism 100 \#d0e8f5


<div class="gd-swatch-color" style="background:#c4f0e0" hex="#c4f0e0" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#c4f0e0"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Prism 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#c4f0e0</code> <button class="gd-cs-tooltip-copy" data-hex="#c4f0e0" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>196, 240, 224</td></tr><tr><td>HSL</td><td>158&deg;, 59%, 85%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>14.0 Lc</td></tr><tr><td>vs Black</td><td>91.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Prism 200 \#c4f0e0


<div class="gd-swatch-color" style="background:#e4d4f4" hex="#e4d4f4" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#e4d4f4"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Prism 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#e4d4f4</code> <button class="gd-cs-tooltip-copy" data-hex="#e4d4f4" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>228, 212, 244</td></tr><tr><td>HSL</td><td>270&deg;, 59%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>22.0 Lc</td></tr><tr><td>vs Black</td><td>84.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Prism 300 \#e4d4f4


<div class="gd-swatch-color" style="background:#d8cef0" hex="#d8cef0" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d8cef0"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Prism 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d8cef0</code> <button class="gd-cs-tooltip-copy" data-hex="#d8cef0" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>216, 206, 240</td></tr><tr><td>HSL</td><td>258&deg;, 53%, 87%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>26.5 Lc</td></tr><tr><td>vs Black</td><td>80.3 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Prism 400 \#d8cef0


<div class="gd-swatch-color" style="background:#f5d0e0" hex="#f5d0e0" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f5d0e0"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Lilac 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f5d0e0</code> <button class="gd-cs-tooltip-copy" data-hex="#f5d0e0" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>245, 208, 224</td></tr><tr><td>HSL</td><td>334&deg;, 65%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>22.2 Lc</td></tr><tr><td>vs Black</td><td>84.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Lilac 100 \#f5d0e0


<div class="gd-swatch-color" style="background:#e8d0f0" hex="#e8d0f0" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#e8d0f0"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Lilac 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#e8d0f0</code> <button class="gd-cs-tooltip-copy" data-hex="#e8d0f0" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>232, 208, 240</td></tr><tr><td>HSL</td><td>285&deg;, 52%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>23.4 Lc</td></tr><tr><td>vs Black</td><td>83.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Lilac 200 \#e8d0f0


<div class="gd-swatch-color" style="background:#f0d4f8" hex="#f0d4f8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f0d4f8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Lilac 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f0d4f8</code> <button class="gd-cs-tooltip-copy" data-hex="#f0d4f8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>240, 212, 248</td></tr><tr><td>HSL</td><td>287&deg;, 72%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>20.0 Lc</td></tr><tr><td>vs Black</td><td>86.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Lilac 300 \#f0d4f8


<div class="gd-swatch-color" style="background:#eac8ee" hex="#eac8ee" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#eac8ee"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Lilac 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#eac8ee</code> <button class="gd-cs-tooltip-copy" data-hex="#eac8ee" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>234, 200, 238</td></tr><tr><td>HSL</td><td>294&deg;, 53%, 86%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>26.6 Lc</td></tr><tr><td>vs Black</td><td>80.3 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Lilac 400 \#eac8ee


<div class="gd-swatch-color" style="background:#eceff1" hex="#eceff1" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#eceff1"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Slate 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#eceff1</code> <button class="gd-cs-tooltip-copy" data-hex="#eceff1" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>236, 239, 241</td></tr><tr><td>HSL</td><td>204&deg;, 15%, 94%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>8.6 Lc</td></tr><tr><td>vs Black</td><td>96.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Slate 100 \#eceff1


<div class="gd-swatch-color" style="background:#e0e4e8" hex="#e0e4e8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#e0e4e8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Slate 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#e0e4e8</code> <button class="gd-cs-tooltip-copy" data-hex="#e0e4e8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>224, 228, 232</td></tr><tr><td>HSL</td><td>210&deg;, 15%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>15.9 Lc</td></tr><tr><td>vs Black</td><td>89.8 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Slate 200 \#e0e4e8


<div class="gd-swatch-color" style="background:#dde2e6" hex="#dde2e6" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#dde2e6"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Slate 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#dde2e6</code> <button class="gd-cs-tooltip-copy" data-hex="#dde2e6" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>221, 226, 230</td></tr><tr><td>HSL</td><td>207&deg;, 15%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>17.4 Lc</td></tr><tr><td>vs Black</td><td>88.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Slate 300 \#dde2e6


<div class="gd-swatch-color" style="background:#d5dadf" hex="#d5dadf" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d5dadf"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Slate 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d5dadf</code> <button class="gd-cs-tooltip-copy" data-hex="#d5dadf" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>213, 218, 223</td></tr><tr><td>HSL</td><td>210&deg;, 14%, 85%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>22.5 Lc</td></tr><tr><td>vs Black</td><td>84.0 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Slate 400 \#d5dadf


<div class="gd-swatch-color" style="background:#ffedcc" hex="#ffedcc" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ffedcc"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Honey 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ffedcc</code> <button class="gd-cs-tooltip-copy" data-hex="#ffedcc" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 237, 204</td></tr><tr><td>HSL</td><td>39&deg;, 100%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>8.3 Lc</td></tr><tr><td>vs Black</td><td>96.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Honey 100 \#ffedcc


<div class="gd-swatch-color" style="background:#ffe0c2" hex="#ffe0c2" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ffe0c2"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Honey 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ffe0c2</code> <button class="gd-cs-tooltip-copy" data-hex="#ffe0c2" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 224, 194</td></tr><tr><td>HSL</td><td>30&deg;, 100%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>14.8 Lc</td></tr><tr><td>vs Black</td><td>90.8 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Honey 200 \#ffe0c2


<div class="gd-swatch-color" style="background:#ffe5b4" hex="#ffe5b4" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ffe5b4"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Honey 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ffe5b4</code> <button class="gd-cs-tooltip-copy" data-hex="#ffe5b4" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 229, 180</td></tr><tr><td>HSL</td><td>39&deg;, 100%, 85%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>13.0 Lc</td></tr><tr><td>vs Black</td><td>92.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Honey 300 \#ffe5b4


<div class="gd-swatch-color" style="background:#ffd6a8" hex="#ffd6a8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ffd6a8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Honey 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ffd6a8</code> <button class="gd-cs-tooltip-copy" data-hex="#ffd6a8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 214, 168</td></tr><tr><td>HSL</td><td>32&deg;, 100%, 83%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>20.2 Lc</td></tr><tr><td>vs Black</td><td>86.1 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Honey 400 \#ffd6a8


<div class="gd-swatch-color" style="background:#dddff5" hex="#dddff5" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#dddff5"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Dusk 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#dddff5</code> <button class="gd-cs-tooltip-copy" data-hex="#dddff5" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>221, 223, 245</td></tr><tr><td>HSL</td><td>235&deg;, 55%, 91%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>18.0 Lc</td></tr><tr><td>vs Black</td><td>88.0 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Dusk 100 \#dddff5


<div class="gd-swatch-color" style="background:#d8daf0" hex="#d8daf0" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d8daf0"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Dusk 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d8daf0</code> <button class="gd-cs-tooltip-copy" data-hex="#d8daf0" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>216, 218, 240</td></tr><tr><td>HSL</td><td>235&deg;, 44%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>21.2 Lc</td></tr><tr><td>vs Black</td><td>85.1 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Dusk 200 \#d8daf0


<div class="gd-swatch-color" style="background:#d4d0ee" hex="#d4d0ee" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d4d0ee"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Dusk 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d4d0ee</code> <button class="gd-cs-tooltip-copy" data-hex="#d4d0ee" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>212, 208, 238</td></tr><tr><td>HSL</td><td>248&deg;, 47%, 87%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>26.3 Lc</td></tr><tr><td>vs Black</td><td>80.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Dusk 300 \#d4d0ee


<div class="gd-swatch-color" style="background:#dad4f2" hex="#dad4f2" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#dad4f2"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Dusk 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#dad4f2</code> <button class="gd-cs-tooltip-copy" data-hex="#dad4f2" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>218, 212, 242</td></tr><tr><td>HSL</td><td>252&deg;, 54%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>23.5 Lc</td></tr><tr><td>vs Black</td><td>83.0 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Dusk 400 \#dad4f2


<div class="gd-swatch-color" style="background:#d5f0ec" hex="#d5f0ec" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d5f0ec"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d5f0ec</code> <button class="gd-cs-tooltip-copy" data-hex="#d5f0ec" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>213, 240, 236</td></tr><tr><td>HSL</td><td>171&deg;, 47%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>11.4 Lc</td></tr><tr><td>vs Black</td><td>93.8 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 100 \#d5f0ec


<div class="gd-swatch-color" style="background:#ccece8" hex="#ccece8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ccece8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ccece8</code> <button class="gd-cs-tooltip-copy" data-hex="#ccece8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>204, 236, 232</td></tr><tr><td>HSL</td><td>172&deg;, 46%, 86%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>14.6 Lc</td></tr><tr><td>vs Black</td><td>90.9 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 200 \#ccece8


<div class="gd-swatch-color" style="background:#c4e8e4" hex="#c4e8e4" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#c4e8e4"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#c4e8e4</code> <button class="gd-cs-tooltip-copy" data-hex="#c4e8e4" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>196, 232, 228</td></tr><tr><td>HSL</td><td>173&deg;, 44%, 84%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>17.7 Lc</td></tr><tr><td>vs Black</td><td>88.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 300 \#c4e8e4


<div class="gd-swatch-color" style="background:#d0f2ee" hex="#d0f2ee" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d0f2ee"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d0f2ee</code> <button class="gd-cs-tooltip-copy" data-hex="#d0f2ee" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>208, 242, 238</td></tr><tr><td>HSL</td><td>173&deg;, 57%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>10.9 Lc</td></tr><tr><td>vs Black</td><td>94.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 400 \#d0f2ee


The grid layout ensures each swatch is the same width, making visual comparison straightforward. This view is handy for theme selection pages or internal style guides.


## Extend a Preset

Sometimes a preset is close to what you need but you want to add a few extra colors. You can combine a preset with a YAML file (the file's colors are appended after the preset's stops).

For example, to add a custom accent color after the `sky` preset:

``` markdown
{{< color-swatch palette="sky" file="assets/extra-colors.yml" >}}
```

Here is the `sky` preset extended with one additional brand accent color:


<div class="gd-swatch-color" style="background:#e0f4ff" hex="#e0f4ff" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#e0f4ff"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#e0f4ff</code> <button class="gd-cs-tooltip-copy" data-hex="#e0f4ff" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>224, 244, 255</td></tr><tr><td>HSL</td><td>201&deg;, 100%, 94%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>0.0 Lc</td></tr><tr><td>vs Black</td><td>97.6 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 100 \#e0f4ff


<div class="gd-swatch-color" style="background:#d0ecf9" hex="#d0ecf9" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d0ecf9"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d0ecf9</code> <button class="gd-cs-tooltip-copy" data-hex="#d0ecf9" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>208, 236, 249</td></tr><tr><td>HSL</td><td>199&deg;, 77%, 90%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>13.3 Lc</td></tr><tr><td>vs Black</td><td>92.1 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 200 \#d0ecf9


<div class="gd-swatch-color" style="background:#c5e8f7" hex="#c5e8f7" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#c5e8f7"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#c5e8f7</code> <button class="gd-cs-tooltip-copy" data-hex="#c5e8f7" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>197, 232, 247</td></tr><tr><td>HSL</td><td>198&deg;, 76%, 87%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>16.6 Lc</td></tr><tr><td>vs Black</td><td>89.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 300 \#c5e8f7


<div class="gd-swatch-color" style="background:#b8e0f5" hex="#b8e0f5" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#b8e0f5"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Sky 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#b8e0f5</code> <button class="gd-cs-tooltip-copy" data-hex="#b8e0f5" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>184, 224, 245</td></tr><tr><td>HSL</td><td>201&deg;, 75%, 84%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>22.0 Lc</td></tr><tr><td>vs Black</td><td>84.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Sky 400 \#b8e0f5


<div class="gd-swatch-color" style="background:#ff6b6b" hex="#ff6b6b" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ff6b6b"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Brand Accent</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ff6b6b</code> <button class="gd-cs-tooltip-copy" data-hex="#ff6b6b" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>255, 107, 107</td></tr><tr><td>HSL</td><td>0&deg;, 100%, 71%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>58.0 Lc</td></tr><tr><td>vs Black</td><td>51.3 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Brand Accent \#ff6b6b


The preset colors appear first, followed by any colors from the file. This lets you document how your custom additions relate to the built-in palette without duplicating the preset definitions.


# Tooltips

Every swatch shows a rich tooltip on hover. Tooltips provide the detailed color information that would clutter the main display but is essential for anyone working with the values.

Each tooltip contains:

- a mini color preview square
- the color name
- hex code with a clipboard copy button
- RGB values
- HSL values (rounded to integers)
- APCA contrast ratio against white and against black (in Lc units)
- WCAG AA pass/fail verdict for normal-size text

Tooltips are powered by the Tippy.js library that is already bundled with Great Docs, so no additional dependencies are needed. The tooltips appear on hover for mouse users and on focus for keyboard users, ensuring the information is accessible to everyone.


# Click to Copy

One of the most common reasons to look up a color palette is to grab a specific value for use in code or design tools. The shortcode makes this effortless.

Click any swatch to copy its hex value (including the `#`) to the clipboard. A brief checkmark animation confirms the copy succeeded. Inside the tooltip, each hex code also has a dedicated clipboard button for a more targeted copy action.

The copied value is always the full hex code (e.g., `#38bdf8`), which is the format most commonly pasted into CSS, design tools, and configuration files.


# Contrast Checks

Choosing colors that look good is only half the job: they also need to be readable. The shortcode uses the APCA (Accessible Perceptual Contrast Algorithm) to evaluate every color against white (`#FFFFFF`) and black (`#000000`) text. This is the same algorithm that powers the automatic navbar text-color selection elsewhere in Great Docs.

By default, contrast information appears in tooltips and in the "Aa" samples on rectangle swatches. You can control this behavior with the `show-contrast` parameter.


## Display Options

The `show-contrast` parameter accepts three values:

| `show-contrast` value | Behavior |
|----|----|
| `"true"` (default) | Contrast info appears in tooltips and rectangle "Aa" samples |
| `"inline"` | Contrast ratios also appear below the hex code on each circle swatch |
| `"false"` | Contrast info is hidden everywhere |

Setting `show-contrast="inline"` places the contrast ratios directly on the swatch, which is useful when contrast is the primary focus of the documentation:

``` markdown
{{< color-swatch show-contrast="inline" file="assets/contrast-demo.yml" >}}
```

Here are two colors with inline contrast ratios visible beneath the hex codes:


<div class="gd-swatch-color" style="background:#1e293b;--gd-ring-color:#465163" needs-ring="true" hex="#1e293b" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#1e293b"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Dark Slate</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#1e293b</code> <button class="gd-cs-tooltip-copy" data-hex="#1e293b" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>30, 41, 59</td></tr><tr><td>HSL</td><td>217&deg;, 33%, 17%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>104.3 Lc</td></tr><tr><td>vs Black</td><td>0.0 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Dark Slate \#1e293b 104.3/0.0 Lc


<div class="gd-swatch-color" style="background:#f1f5f9" hex="#f1f5f9" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f1f5f9"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Light Gray</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f1f5f9</code> <button class="gd-cs-tooltip-copy" data-hex="#f1f5f9" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>241, 245, 249</td></tr><tr><td>HSL</td><td>210&deg;, 40%, 96%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>0.0 Lc</td></tr><tr><td>vs Black</td><td>99.7 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Light Gray \#f1f5f9 0.0/99.7 Lc


The inline display shows the Lc (lightness contrast) value for both white-on-color and black-on-color combinations, along with a pass/fail indicator. Use this mode when your audience needs to evaluate contrast at a glance without hovering.


# Controlling What's Shown

Sometimes you want a simpler display (perhaps just the color circles with names, without hex codes cluttering the view). The shortcode provides three toggle parameters that control label visibility.

| Parameter       | Default  | Effect                                  |
|-----------------|----------|-----------------------------------------|
| `show-names`    | `"true"` | Show or hide color names below swatches |
| `show-hex`      | `"true"` | Show or hide hex codes below swatches   |
| `show-contrast` | `"true"` | Show or hide contrast info (see above)  |

For example, to show only the swatches and their names without hex labels:

``` markdown
{{< color-swatch show-hex="false" file="assets/colors.yml" >}}
```

Here is a minimal palette with hex codes hidden:


<div class="gd-swatch-color" style="background:#fb7185" hex="#fb7185" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#fb7185"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Rose</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#fb7185</code> <button class="gd-cs-tooltip-copy" data-hex="#fb7185" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>251, 113, 133</td></tr><tr><td>HSL</td><td>351&deg;, 95%, 71%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>56.8 Lc</td></tr><tr><td>vs Black</td><td>52.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Rose


<div class="gd-swatch-color" style="background:#a78bfa" hex="#a78bfa" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#a78bfa"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Violet</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#a78bfa</code> <button class="gd-cs-tooltip-copy" data-hex="#a78bfa" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>167, 139, 250</td></tr><tr><td>HSL</td><td>255&deg;, 92%, 76%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>57.8 Lc</td></tr><tr><td>vs Black</td><td>51.5 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Violet


<div class="gd-swatch-color" style="background:#2dd4bf" hex="#2dd4bf" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#2dd4bf"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Teal</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#2dd4bf</code> <button class="gd-cs-tooltip-copy" data-hex="#2dd4bf" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>45, 212, 191</td></tr><tr><td>HSL</td><td>172&deg;, 66%, 50%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>38.8 Lc</td></tr><tr><td>vs Black</td><td>69.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Teal


The hex values are still available in the tooltip on hover (hiding them from the main display reduces visual noise when the color names alone are sufficient). You can combine these toggles freely: `show-names="false" show-hex="false"` gives you bare swatches with all information deferred to tooltips.


# Customization

The shortcode offers several parameters for fine-tuning the appearance of the palette container and individual swatches. These let you adapt the display to different contexts (from a prominent hero palette to a compact inline reference).


## Title and Description

Add a heading and optional description above the palette to give it context within your page. This is especially useful when you have multiple palettes on the same page and need to label each one.

``` markdown
{{< color-swatch title="Brand Colors" description="Our primary brand palette for 2026." file="assets/brand.yml" >}}
```

Here is a palette with a title and description:


Brand Colors


Our primary brand palette for 2026.


<div class="gd-swatch-color" style="background:#2563eb" hex="#2563eb" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#2563eb"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Blue</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#2563eb</code> <button class="gd-cs-tooltip-copy" data-hex="#2563eb" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>37, 99, 235</td></tr><tr><td>HSL</td><td>221&deg;, 83%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>80.2 Lc</td></tr><tr><td>vs Black</td><td>29.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Blue \#2563eb


<div class="gd-swatch-color" style="background:#f97316" hex="#f97316" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#f97316"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Orange</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#f97316</code> <button class="gd-cs-tooltip-copy" data-hex="#f97316" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>249, 115, 22</td></tr><tr><td>HSL</td><td>25&deg;, 95%, 53%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>58.4 Lc</td></tr><tr><td>vs Black</td><td>50.9 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-fail">&#10007; AA (normal)</td></tr></table></div></div>">


Orange \#f97316


The title renders as a heading within the palette container, and the description appears as a subtitle beneath it. Both are optional and can be used independently.


## Swatch Size

The default circle diameter is 56px, which works well for most layouts. For hero sections, style guides, or situations where you want the colors to be more prominent, increase the size:

``` markdown
{{< color-swatch size="80px" file="assets/colors.yml" >}}
```

Here is a single swatch rendered at 80px:


<div class="gd-swatch-color" style="background:#8b5cf6" hex="#8b5cf6" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#8b5cf6"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Large</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#8b5cf6</code> <button class="gd-cs-tooltip-copy" data-hex="#8b5cf6" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>139, 92, 246</td></tr><tr><td>HSL</td><td>258&deg;, 90%, 66%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>74.2 Lc</td></tr><tr><td>vs Black</td><td>35.4 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Large \#8b5cf6


The `size` parameter accepts any valid CSS length value. Smaller sizes (like `40px`) work well for dense reference tables, while larger sizes (like `100px`) make colors the focal point of the page.


## Border

By default, the palette container has a subtle border that visually groups the swatches. If you prefer a cleaner look (for example, when the palette sits inside a callout or a card that already has its own border) you can disable it:

``` markdown
{{< color-swatch border="false" palette="mint" >}}
```

Here is the `mint` preset without a container border:


<div class="gd-swatch-color" style="background:#d5f0ec" hex="#d5f0ec" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d5f0ec"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 100</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d5f0ec</code> <button class="gd-cs-tooltip-copy" data-hex="#d5f0ec" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>213, 240, 236</td></tr><tr><td>HSL</td><td>171&deg;, 47%, 89%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>11.4 Lc</td></tr><tr><td>vs Black</td><td>93.8 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 100 \#d5f0ec


<div class="gd-swatch-color" style="background:#ccece8" hex="#ccece8" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#ccece8"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 200</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#ccece8</code> <button class="gd-cs-tooltip-copy" data-hex="#ccece8" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>204, 236, 232</td></tr><tr><td>HSL</td><td>172&deg;, 46%, 86%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>14.6 Lc</td></tr><tr><td>vs Black</td><td>90.9 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 200 \#ccece8


<div class="gd-swatch-color" style="background:#c4e8e4" hex="#c4e8e4" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#c4e8e4"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 300</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#c4e8e4</code> <button class="gd-cs-tooltip-copy" data-hex="#c4e8e4" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>196, 232, 228</td></tr><tr><td>HSL</td><td>173&deg;, 44%, 84%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>17.7 Lc</td></tr><tr><td>vs Black</td><td>88.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 300 \#c4e8e4


<div class="gd-swatch-color" style="background:#d0f2ee" hex="#d0f2ee" tooltip-html="<div class="gd-cs-tooltip"><div class="gd-cs-tooltip-swatch" style="background:#d0f2ee"></div><div class="gd-cs-tooltip-body"><div class="gd-cs-tooltip-name">Mint 400</div><table class="gd-cs-tooltip-table"><tr><td>HEX</td><td><code>#d0f2ee</code> <button class="gd-cs-tooltip-copy" data-hex="#d0f2ee" aria-label="Copy hex value" title="Copy">&#128203;</button></td></tr><tr><td>RGB</td><td>208, 242, 238</td></tr><tr><td>HSL</td><td>173&deg;, 57%, 88%</td></tr><tr><td colspan="2" class="gd-cs-tooltip-sep"></td></tr><tr><td>vs White</td><td>10.9 Lc</td></tr><tr><td>vs Black</td><td>94.2 Lc</td></tr><tr><td>WCAG</td><td class="gd-cs-pass">&#10003; AA (normal)</td></tr></table></div></div>">


Mint 400 \#d0f2ee


The swatches themselves are unchanged; only the outer container border is removed.


## Extra CSS Classes

For advanced styling, add custom CSS classes to the palette wrapper with the `class` parameter:

``` markdown
{{< color-swatch class="my-special-palette" palette="lilac" >}}
```

You can then target `.my-special-palette` in your custom CSS to override spacing, alignment, background, or any other property. This provides an escape hatch for layouts that the built-in parameters don't cover.


# Color Entry Format

Every YAML color file follows a simple structure. Each entry is a list item with two required properties:

| Property | Required | Description                         |
|----------|----------|-------------------------------------|
| `name`   | Yes      | Display name shown below the swatch |
| `hex`    | Yes      | Hex color value (e.g., `"#38bdf8"`) |

A minimal file looks like this:


    assets/my-colors.yml


``` yaml
- name: Primary
  hex: "#2563eb"
- name: Accent
  hex: "#f97316"
```


Hex values must include the `#` prefix and can use either three-digit (`#fff`) or six-digit (`#ffffff`) notation. The shortcode normalizes all values to six digits internally for consistent display. Quoting the hex values in YAML is recommended to avoid parsing issues with the `#` character.


# Accessibility

The color-swatch shortcode is designed to be usable by everyone, including keyboard-only users and screen-reader users.

Key accessibility features include:

- **Keyboard navigation**: Every swatch is focusable via Tab and can be activated with Enter or Space to copy its hex value.
- **ARIA labels**: Each swatch carries an `aria-label` describing the color name, hex value, and available actions.
- **Live announcements**: Copy confirmations are announced through an `aria-live` region so screen readers report the result.
- **Visibility safeguards**: Very light colors (nearly white) automatically receive a subtle border ring so they remain visible against the page background. Very dark colors get the same treatment in dark mode.
- **Reduced motion**: The `prefers-reduced-motion` media query disables hover and copy animations for users who have requested reduced motion in their OS settings.

These features ensure that color documentation is not just visual as the information is available through assistive technology as well.


# Dark Mode

Swatches adapt to the page theme automatically. When a reader toggles dark mode, the palette adjusts without any extra configuration:

- container borders and shadow intensities shift for dark backgrounds.
- border rings on very light and very dark colors swap direction (light rings appear around dark colors in dark mode, and dark rings appear around light colors in light mode).
- tooltips inherit the page's current theme context.

When using a palette preset, the light-mode color stops are shown regardless of page theme. Dark-mode palette display (showing the preset's dark-mode stops when the page is in dark mode) is planned for a future release.


# Responsive Behavior

The swatch layout is responsive and adjusts to smaller screens automatically.

On mobile viewports (below 576px):

- Circle swatches shrink to 44px and grid gaps tighten to keep the layout compact.
- Rectangle strips stack their labels vertically to avoid horizontal overflow.

On wider screens, the grid expands to fill the available width with equal-size columns. No media-query configuration is needed on your part as the built-in CSS handles all breakpoints.


# Parameters Reference

The table below lists every parameter available on the `{{< color-swatch >}}` shortcode. All parameters are optional and, at minimum, you need either `file` or `palette` (or both) to provide colors.

| Parameter | Type | Default | Description |
|----|----|----|----|
| `file` | string | -- | Path to a YAML file with color definitions (relative to project root) |
| `palette` | string | -- | Preset name: `sky`, `peach`, `prism`, `lilac`, `slate`, `honey`, `dusk`, `mint`, or `all` |
| `mode` | string | `"circles"` | Display mode: `circles` or `rectangles` |
| `size` | string | `"56px"` | Circle swatch diameter (CSS length) |
| `show-contrast` | string | `"true"` | `"true"`, `"false"`, or `"inline"` |
| `show-names` | string | `"true"` | Show or hide color names |
| `show-hex` | string | `"true"` | Show or hide hex values |
| `copy-format` | string | `"hex"` | Clipboard format: `hex` |
| `title` | string | -- | Title above the palette |
| `description` | string | -- | Description below the title |
| `border` | string | `"true"` | Show or hide container border |
| `id` | string | auto | Custom HTML `id` for the wrapper |
| `class` | string | -- | Additional CSS classes |

When both `file` and `palette` are provided, the preset colors appear first and the file colors are appended after them.


# Next Steps

Color swatches turn color definitions into visual, interactive documentation. Whether you maintain a design system or just want to showcase your package's theme palette, the shortcode handles rendering, contrast checks, and copy-to-clipboard.

- [Theming & Appearance](theming.md) covers gradient themes, dark mode, and other visual customization
- [Table Previews](table-previews.md) covers another visual component for rendering data tables
- [Configuration](configuration.md) covers all `great-docs.yml` options
