# ContrastKit

> ContrastKit is a free MCP server for developer tools. WCAG contrast checks with the nearest passing colour, CSS conversion and palette checks. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://contrastkit.mike-tusa.workers.dev
- **MCP Registry name:** dev.workers.mike-tusa.contrastkit/contrastkit
- **Categories:** developer tools, design and media
- **Listing updated:** 2026-11-15

## About

The calculation uses WCAG 2.x relative luminance for sRGB. Ratios are floored to two decimals, so 4.499:1 fails AA. Levels covered are AA, AA large, AAA, AAA large and UI components at 3:1. A translucent foreground is blended over the background, and a translucent background over white.

Inputs can be hex in 3 to 8 digits, rgb, hsl or any of 148 CSS names, up to 64 characters. lab, lch, oklch, color() and currentColor are unsupported. A palette check handles up to 12 colours.

There is also a JSON API with an OpenAPI spec, about 60 requests a minute per IP, no key. Colours are processed in memory and discarded. The vendor notes a passing ratio is not a full accessibility audit.

## Features

- **AA and AAA checks:** Pass or fail at each WCAG level.
- **Nearest accessible colour:** Suggests the closest passing colour.
- **CSS conversion:** Converts between colour formats.
- **Palette pairs:** Checks up to 12 colours.
- **No storage:** Inputs are discarded.

## Good for

- Check a grey on white against AA
- Fix a failing brand colour
- Convert a named colour to hex
- Audit a design palette

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http contrastkit https://contrastkit.mike-tusa.workers.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://contrastkit.mike-tusa.workers.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "contrastkit": {
      "url": "https://contrastkit.mike-tusa.workers.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "contrastkit": {
      "type": "http",
      "url": "https://contrastkit.mike-tusa.workers.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "contrastkit": {
      "serverUrl": "https://contrastkit.mike-tusa.workers.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "contrastkit": {
      "type": "http",
      "url": "https://contrastkit.mike-tusa.workers.dev/mcp"
    }
  }
}
```

## Tools

- `check_contrast`: Check text and background colours against WCAG levels
- `suggest_accessible_color`: Find the nearest colour that passes
- `convert_color`: Convert CSS colours between formats
- `check_palette`: Check pairs in a palette

## FAQ

### Is a key needed?

No. Free with no sign-up.

### Which colour formats work?

Hex, rgb, hsl, 148 names and transparent.

### What is the rate limit?

About 60 requests a minute per IP.

### Is it a full audit?

No, the vendor says passing ratios are only one part.

### Is ContrastKit free?

Yes. ContrastKit is free to use.

### How do I add ContrastKit to Claude Code?

Run this command in your terminal: claude mcp add --transport http contrastkit https://contrastkit.mike-tusa.workers.dev/mcp

### What are the best alternatives to ContrastKit?

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/contrastkit
