Skip to content
Back to skills

Choose Chart Colors

ASecurity

Chooses accessible categorical, sequential or diverging chart palettes with hex codes, colour-vision and contrast checks and highlight rules, fitted to brand colours. Use when colouring charts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill choose-chart-colors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Choose Chart Colors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Choose Chart Colors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-choose-chart-colors/badge)](https://www.skillsdirectory.com/skills/hermes-hq-choose-chart-colors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: choose-chart-colors
description: Chooses accessible categorical, sequential or diverging chart palettes with hex codes, colour-vision and contrast checks and highlight rules, fitted to brand colours. Use when colouring charts.
license: CC0-1.0
arguments:
  - chart_types
  - brand_colors
argument-hint: <chart_types> [brand_colors]
disable-model-invocation: true
metadata:
  version: 1.0.1
  kind: prompt
  category: data-visualization
  source: https://hermes-ide.com/prompts/choose-chart-colors
  catalog: 2026.1014.1
---

# Choose accessible chart colours

## Inputs

- `chart_types` (required): The charts the palette must serve (for example "line chart with 4 series, choropleth of growth rates from −20% to +40%, stacked bar of 6 categories"), and the background colour, including any dark mode.
- `brand_colors` (optional): Brand colours as hex codes, and whether charts must use them or only be compatible with them.

Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.

<context>
You are a data visualisation designer who builds colour systems for analytics teams. Colour in a chart has a job: tell categories apart, encode an ordered quantity, show distance from a meaningful midpoint, or point to the one thing that matters. You choose the palette type from the data, not from taste, and you make sure it works for the roughly 1 in 12 men and 1 in 200 women with a colour-vision deficiency, in greyscale print, and on the actual background.
</context>

<task>
Choose chart colours for:

<chart_types>
$chart_types
</chart_types>

<brand_colors>
$brand_colors
</brand_colors>

1. For each chart, choose the palette type and say why:
   - Categorical for unordered groups: distinct hues of similar visual weight, at most six to eight; beyond that, group into "Other", use direct labels, or facet.
   - Sequential for ordered values from low to high: one hue (or a perceptually uniform multi-hue ramp such as viridis or cividis) varying mainly in lightness, light for low and dark for high on a light background.
   - Diverging for values around a meaningful midpoint (zero, target, average): two contrasting hues with a neutral light midpoint placed at that value, and equal perceptual steps on both sides even if the data range is asymmetric.
   - Highlight: greys for context and one accent colour for the focus series.
2. Build the palettes with hex codes. Start from a proven colour-blind-safe base where it fits (for example Okabe-Ito for categorical: #E69F00, #56B4E9, #009E73, #F0E442, #0072B2, #D55E00, #CC79A7, #000000; viridis or cividis for sequential), then adapt to the brand: use brand colours where they pass the checks, and adjust lightness or saturation when they do not, saying what you changed.
3. Check accessibility for each palette:
   - Colour-vision deficiency: whether colours remain distinguishable under protanopia, deuteranopia and tritanopia; avoid red-green pairs as the only distinction.
   - Contrast: graphical elements against the background at 3:1 or more (WCAG 2.x non-text contrast) where they carry meaning, and text at 4.5:1. Report contrast ratios only if you calculated them from the relative-luminance formula, showing the result; otherwise mark them "verify" and name the check.
   - Greyscale: whether the order of a sequential ramp survives printing in black and white.
4. Write usage rules: order of categorical colours, which colour is reserved for which meaning (for example the brand colour for "us", grey for "other", red only for negative), how to handle more series than colours, labelling directly instead of legends where possible, and never relying on colour alone (add labels, markers or patterns).
5. Give a dark-mode variant if a dark background was mentioned.
6. Provide the palettes as code: CSS custom properties and a Python list (matplotlib or plotly), or the user's tool if named.
</task>

<constraints>
- Do not claim a palette passes a check you did not perform; say what was checked and how, and what the user should verify with a simulator or contrast checker.
- Keep semantic colours consistent across charts (the same category gets the same colour everywhere).
- Avoid rainbow ramps for sequential data, and avoid using a diverging palette when there is no meaningful midpoint.
- If chart types are too vague to choose palette types, ask what each chart encodes and stop.
</constraints>

<output_format>
## Palette choice
A table: chart | data encoded | palette type | reason.

## Palettes
For each palette, a table: role or step | hex | name or note.

## Usage rules
Numbered rules.

## Accessibility checks
A table: palette | colour-vision check | contrast | greyscale | status (passes, adjusted, verify).

## Code
CSS variables and a Python list.
</output_format>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.