Skip to content
MCP server

Swatch

WCAG contrast checker, color fixer and 50-950 palette builder, no account

Install
Pricing
Free
Platforms
Web, API
Runs
Remotely
Version
1.1.0
Listing updated
2 days ago

About Swatch

Swatch is a free MCP server for design and media. It runs as a hosted remote server, so there is nothing to install locally.

Swatch reports the exact WCAG contrast ratio for a text and background pair, with pass or fail for AA and AAA, and never rounds up: 4.499 fails. When a pair fails it keeps hue and chroma and moves only OKLCH lightness to the nearest value that passes, so the fixed color still resembles the original.

A second tool turns one brand color into an 11-step scale from 50 to 950 with contrast notes and CSS, Tailwind or JSON output. APCA scores appear as extra guidance, since WCAG 2.x ratios remain the standard. Colors may be hex, rgb, hsl, oklch or a CSS name.

The site also serves an SVG contrast badge for READMEs and docs, a public OpenAPI file and an llms.txt. It says colors you type stay in your browser, with no key or login for the MCP server.

Install

Run in a terminal

claude mcp add --transport http swatch https://swatch.clawhard.com/mcp

Add to Settings → Connectors → Add custom connector

https://swatch.clawhard.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "swatch": {
      "url": "https://swatch.clawhard.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "swatch": {
      "type": "http",
      "url": "https://swatch.clawhard.com/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "swatch": {
      "serverUrl": "https://swatch.clawhard.com/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "swatch": {
      "type": "http",
      "url": "https://swatch.clawhard.com/mcp"
    }
  }
}

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

swatch_check_contrast
Checks contrast of a text and background color pair and converts color formats.
swatch_fix_contrast
Suggests the nearest color that passes a target ratio.
swatch_make_scale
Builds a 50 to 950 palette from a base color.
swatch_check_pairs
Checks several color pairs at once.

What it does

Exact WCAG ratios
AA and AAA results without rounding up.
Closest passing color
Adjusts only lightness to reach the target ratio.
50-950 palettes
Builds an 11-step scale with CSS, Tailwind or JSON output.
Pair batches
Checks several color pairs in one call.
Contrast badge
Serves an SVG badge for READMEs and design systems.
APCA guidance
Shows APCA as an extra signal for size and weight.

Good for

  • Check a design token pair against AA
  • Fix a failing brand color without changing its feel
  • Generate a Tailwind palette from one color
  • Add a live contrast badge to a design system doc

Pricing

Free

Free, no account

Prices change. Check swatch.clawhard.com before you buy.

Swatch FAQ

Does #777777 on white pass AA?

No. It is 4.48:1, just under 4.5:1; #767676 is the lightest gray that passes at 4.54:1.

Do I need an account?

No. There is no key or login.

Which color formats work?

Hex, rgb(), hsl(), oklch() or a CSS name.

Is there an API besides MCP?

Yes, a JSON API described at /openapi.json.

Is Swatch free?

Yes. Swatch is free to use.

How do I add Swatch to Claude Code?

Run this command in your terminal: claude mcp add --transport http swatch https://swatch.clawhard.com/mcp

What are the best alternatives to Swatch?

The closest alternatives to Swatch are REA, HyperFrames by HeyGen, Codebase Memory, GitHub and Serena MCP: the IDE for your agent.

Alternatives to Swatch

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 85.3K GitHub stars
    • Design and media
  3. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  4. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  5. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  6. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory