Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Summary

24 MCP tools for color space conversions, harmony generation, accessibility validation, and cultural meaning lookup

Install to Claude Code

/plugin install color-theory-mcp@RedJay

Run in Claude Code. Add the marketplace first with /plugin marketplace add JoshuaRamirez/claude-code-plugins if you haven't already.

README.md

Color Theory MCP Server

![npm version](https://www.npmjs.com/package/color-theory-mcp) ![npm downloads](https://www.npmjs.com/package/color-theory-mcp) ![License: MIT](https://opensource.org/licenses/MIT) ![Node.js Version](https://nodejs.org) ![CI](https://github.com/JoshuaRamirez/color-theory-mcp/actions/workflows/test.yml) ![TypeScript](https://www.typescriptlang.org/)

A comprehensive MCP (Model Context Protocol) server providing 24 tools for color theory operations including color space conversions, harmony generation, accessibility validation, and cultural meaning lookup.

Table of Contents

Features

  • 15 Color Spaces: sRGB, Linear sRGB, Display P3, XYZ-D65, XYZ-D50, Lab, LCH, Oklab, Oklch, HSL, HSV, HWB, CMYK, CAM16, HCT
  • 12 Blend Modes: Multiply, Screen, Overlay, Soft-light, Color-burn, Subtractive (Pigment), etc.
  • Advanced Accessibility: APCA (Lc), Daltonization (CVD Correction), WCAG 2.2 Non-text
  • Production Exports: Design tokens for iOS Swift, Android XML, SCSS, Figma JSON, Tailwind
  • 7 Harmony Algorithms: Complementary, Analogous, Triadic, Split-complementary, Tetradic, Square, Monochromatic
  • Color Vision Deficiency: Simulation & Correction for protanopia, deuteranopia, tritanopia
  • Delta-E Calculations: CIE76, CIE94, CIEDE2000 perceptual difference formulas
  • 147 CSS Named Colors: Lookup and closest match finding
  • Cultural Meanings: Color associations across Western, East Asian, South Asian, and Middle Eastern cultures

Installation

npm install color-theory-mcp

Or install from source:

git clone https://github.com/JoshuaRamirez/color-theory-mcp.git
cd color-theory-mcp
npm install
npm run build

Quick Start

Get up and running in under a minute:

1. Install the package:

   npm install color-theory-mcp

2. Add to your Claude Code MCP settings (see Usage for details):

   {
     "mcpServers": {
       "color-theory": {
         "command": "node",
         "args": ["node_modules/color-theory-mcp/dist/index.js"]
       }
     }
   }

3. Start using color tools:

   "Convert #FF5733 to Oklch" -> Use convert-color
   "Is this text accessible?" -> Use validate-wcag-contrast
   "Generate a triadic palette from blue" -> Use generate-harmony

Usage

With Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "color-theory": {
      "command": "node",
      "args": ["/path/to/color-theory-mcp/dist/index.js"]
    }
  }
}

Development

npm run dev      # Run with tsx (development)
npm run build    # Build TypeScript
npm run test     # Run tests

Tools

Query Tools (4)

  • get-color-info - Comprehensive color information
  • get-color-name - Find closest CSS named color
  • get-color-meaning - Cultural/psychological meanings
  • list-named-colors - List CSS named colors

Convert Tools (3)

  • convert-color - Convert to any color space (15+ supported)
  • convert-batch - Convert multiple colors
  • parse-color-string - Parse CSS Color 4 formats (oklch, lab, hwb, etc.)

Calculate Tools (5)

  • calculate-contrast - WCAG/APCA contrast ratio
  • calculate-delta-e - Perceptual difference (CIE76/94/2000)
  • calculate-luminance - Relative luminance
  • mix-colors - Blend/Mix colors (Blend modes, Subtractive)
  • adjust-color - Lighten/darken/saturate/rotate hue

Generate Tools (6)

  • generate-harmony - Color wheel harmonies
  • generate-palette - Design system palette (HCT/Material)
  • generate-gradient - Multi-stop gradients with easing
  • generate-accessible-palette - WCAG/APCA-compliant alternatives
  • generate-design-tokens - iOS, Android, SCSS, Figma JSON
  • generate-scale - Tailwind-style 50-950 scale

Validate Tools (5)

  • validate-wcag-contrast - WCAG 2.2 & APCA checks
  • validate-color-blindness - CVD simulation & Daltonization
  • validate-gamut - In-gamut verification & perceptual mapping
  • validate-print-safe - CMYK feasibility
  • validate-palette-harmony - Harmony analysis

Examples

Check accessibility

"Is #333333 on #FFFFFF WCAG AA compliant?"
→ Use validate-wcag-contrast

Generate a palette

"Generate a 5-color analogous harmony from navy blue"
→ Use generate-harmony with harmonyType: "analogous"

Simulate color blindness

"How does this palette look to someone with deuteranopia?"
→ Use validate-color-blindness with cvdType: "deuteranopia"

Convert color spaces

"Convert #FF5733 to Oklch"
→ Use convert-color with targetSpace: "oklch"

Architecture

src/
├── domain/           # Value objects & interfaces
│   ├── values/       # Color, Palette, Gradient, Matrix3x3
│   └── interfaces/   # IColorSpace, IHarmonyAlgorithm, etc.
├── color-spaces/     # Color space implementations
├── services/         # ConversionService, ContrastService, PaletteService
├── strategies/       # Delta-E, CVD, Harmony algorithms
├── data/             # CSS colors, cultural meanings
└── mcp/tools/        # MCP tool implementations

Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Code of conduct
  • Development setup
  • Submitting pull requests
  • Coding standards

For a history of changes, see the Changelog.

References

Getting Help

License

MIT - see LICENSE for details.

Related plugins

Browse all →