Color Palette

Generate accessible, role-based color palettes with JSON data, CSS variables, and HTML previews from any mood.

Install
cmdop skills install agensi-color-palette

Color Palette is a skill that converts natural-language prompts — such as a mood, brand concept, or descriptive phrase — into a structured 5-7 color design system. Given a prompt, the skill derives a cohesive set of colors and assigns each one a specific UI role: primary, secondary, background, surface, and typography. This role-based assignment means the output maps directly to how colors are actually used in an interface rather than producing a generic swatch collection.

For each color in the palette, the skill produces exact technical values in HEX, RGB, and HSL formats along with ready-to-use CSS custom properties. WCAG 2.1 contrast ratios are calculated for every text and background pair, so accessibility compliance is validated automatically rather than left to the developer to check manually.

The skill generates two output assets: a machine-readable palette.json file and a visual palette.html preview intended for stakeholder review. The JSON output allows downstream tooling or agents to consume the palette programmatically, while the HTML preview provides a rendered reference without requiring additional tooling.

This skill is appropriate when a project needs a complete, accessible color system derived from a concept or brand brief. It is not a tool for manipulating existing color values, generating image assets, or handling non-color aspects of a design system such as typography scales or spacing tokens.

Use cases

  • Generate a complete UI color system from a brand description like 'fintech blue'
  • Validate that all text and background color pairs meet WCAG 2.1 contrast requirements automatically
  • Produce a palette.json for programmatic consumption in a design token pipeline
  • Create a palette.html stakeholder preview without writing any rendering code
  • Obtain CSS custom properties ready to paste into a project stylesheet
  • Derive role-assigned colors (primary, secondary, background, surface, typography) from a mood prompt

When to use it

  • Starting a new UI project that needs a complete, accessible color system from a concept or brief
  • Automating design token generation inside an AI agent workflow
  • Producing stakeholder-ready color previews without manual design tooling
  • Ensuring WCAG 2.1 accessibility compliance during early design phases

When not to use it

  • Adjusting or tweaking an existing color palette rather than generating a new one
  • Generating image, illustration, or non-color visual assets
  • Building out full design systems that include typography, spacing, or component tokens
  • Projects that require a specific named color standard such as Pantone or RAL