Individual skill

color-encoding-for-data

Applies color to a chart so it encodes meaning and directs attention, using preattentive contrast, sequential and categorical palettes, and accessibility checks.

skills/color-encoding-for-data/SKILL.md

Read pinned source

Source commit 45f80c2fab1ea7fc4d78b09b3c7c51d0ab4fc44a

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
Yes
Observed behavior
Not checked yet
Last checked
Nov 11, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
26
Repository last updated
Sep 8, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Color Encoding for Data

## When to use
Use this on any chart once it is built and labeled. Color is the most misused element of a chart. Done well, it makes the message jump out before the reader reads a word. Done badly, it turns a chart into a rainbow that hides the point.

## What it does
It returns a color plan: the base palette, which element gets the accent, the palette type for the data (categorical, sequential, or diverging), and an accessibility check. The plan ties every color to a reason.

## Method
Step 1. Start from one color, add color only to mean something.
The default is a single muted color for all marks. Add a second color only to encode a real distinction: the focus category, increases versus decreases, above versus below target. Color with no meaning is decoration and should be removed.

Step 2. Use preattentive contrast to direct attention.
The eye locks onto the one element that differs in color before conscious reading begins. Exploit this: gray every mark except the one the message names, and give that one the accent color. A single accent bar in a field of gray is read faster than any label.
Back to top