Skip to main content
Glama

ContrastKit

Check WCAG color contrast

check_contrast
Read-onlyIdempotent

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backgroundYesBackground 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".
foregroundYesText / 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

TableJSON Schema
NameRequiredDescriptionDefault
passYes
notesYes
ratioYes
versionYes
backgroundNo
foregroundNo
ratioExactNo
effectiveBackgroundNo
effectiveForegroundNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources