ContrastKit
Server Details
WCAG color contrast checks, nearest accessible color, CSS color conversion and palette pair checks.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
TDQS
Score is being calculated.
Available Tools
4 toolscheck_contrastCheck WCAG color contrastRead-onlyIdempotentInspect
Compute the WCAG 2.x contrast ratio between a text (foreground) color and a background color, with pass/fail for AA, AA large text, AAA, AAA large text and non-text UI (3:1). Handles translucent colors. Read-only. Same engine as GET /api/contrast.
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | Background color as a CSS color: "#1a73e8", "#fff", "rgb(26 115 232)", "hsl(217 80% 51%)", "rgba(0,0,0,.6)" or a name like "navy". | |
| foreground | Yes | Text / foreground color as a CSS color: "#1a73e8", "#fff", "rgb(26 115 232)", "hsl(217 80% 51%)", "rgba(0,0,0,.6)" or a name like "navy". |
Output Schema
| Name | Required | Description |
|---|---|---|
| pass | Yes | |
| notes | Yes | |
| ratio | Yes | |
| version | Yes | |
| background | No | |
| foreground | No | |
| ratioExact | No | |
| effectiveBackground | No | |
| effectiveForeground | No |
check_paletteCheck every pair in a paletteRead-onlyIdempotentInspect
Contrast ratio for every pair of 2 to 12 colors (up to 66 pairs), highest first, each flagged against the chosen WCAG level. Use it to see which brand colors can be used together for text. Read-only. Same engine as GET /api/palette.
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | WCAG target: aa 4.5:1 (default), aa-large 3:1, aaa 7:1, aaa-large 4.5:1, ui 3:1 (non-text). | aa |
| colors | Yes | 2 to 12 CSS colors. |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| level | No | |
| notes | No | |
| pairs | Yes | |
| colors | No | |
| target | No | |
| passing | Yes | |
| version | Yes |
convert_colorConvert a CSS colorRead-onlyIdempotentInspect
Convert a CSS color to hex, rgb() and hsl(), with its relative luminance, its contrast on white and on black, and the better text color (black or white) to put on it. Read-only. Same engine as GET /api/convert.
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color as a CSS color: "#1a73e8", "#fff", "rgb(26 115 232)", "hsl(217 80% 51%)", "rgba(0,0,0,.6)" or a name like "navy". |
Output Schema
| Name | Required | Description |
|---|---|---|
| hex | Yes | |
| hsl | No | |
| rgb | No | |
| alpha | No | |
| input | No | |
| version | Yes | |
| luminance | Yes | |
| bestTextColor | Yes | |
| contrastOnBlack | No | |
| contrastOnWhite | No |
suggest_accessible_colorSuggest the nearest accessible colorRead-onlyIdempotentInspect
For a failing color pair, find the closest color (same hue and saturation, lightness changed as little as possible) that meets the chosen WCAG level. Adjust the foreground (default), the background, or both (best first). Read-only. Same engine as GET /api/suggest.
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | WCAG target: aa 4.5:1 (default), aa-large 3:1, aaa 7:1, aaa-large 4.5:1, ui 3:1 (non-text). | aa |
| adjust | No | Which color may change. | foreground |
| background | Yes | Background color as a CSS color: "#1a73e8", "#fff", "rgb(26 115 232)", "hsl(217 80% 51%)", "rgba(0,0,0,.6)" or a name like "navy". | |
| foreground | Yes | Text / foreground color as a CSS color: "#1a73e8", "#fff", "rgb(26 115 232)", "hsl(217 80% 51%)", "rgba(0,0,0,.6)" or a name like "navy". |
Output Schema
| Name | Required | Description |
|---|---|---|
| pass | No | |
| level | No | |
| notes | No | |
| ratio | Yes | |
| adjust | No | |
| target | Yes | |
| version | Yes | |
| background | No | |
| foreground | No | |
| ratioExact | No | |
| suggestions | Yes | |
| alreadyPasses | Yes | |
| effectiveBackground | No | |
| effectiveForeground | No |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
- First observed
check_contrast - First observed
check_palette - First observed
convert_color - First observed
suggest_accessible_color
Related MCP Connectors
18 color tools: OKLCH, WCAG and APCA contrast fixes, palettes, gradients, color blindness, tokens.
Convert colours between hex, RGB, HSL, OKLCH and CMYK, and compute harmonies.
Solve, audit and simulate colorblind-safe chart palettes. WCAG contrast, OKLab ΔE. Read-only.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides color conversion between formats, WCAG contrast ratio computation, and nearest CSS named color lookup.17 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables checking WCAG color contrast ratios and accessibility compliance between color pairs. Helps determine optimal text colors for backgrounds and validates color combinations meet accessibility standards.5 npm2MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive color conversion, manipulation, analysis, and WCAG accessibility tools supporting multiple formats (hex, rgb, hsl, oklch, oklab) for design systems and web development.12 npm2MIT
- AlicenseNot gradedqualityBmaintenanceExtract palettes from images, generate harmonies, gradients, random palettes; Check WCAG and APCA contrast; Suggest nearest passing OkLCH lightness; Simulate color-blindness; Convert and sort colors across formats (hex / RGB / HSL / OkLCH / …)MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.