Skip to main content
Glama

Clawhard Dev Tools

Check the WCAG contrast of a text and background color

swatch_check_contrast
Read-onlyIdempotent

Use when the user asks whether a color combination is readable or accessible, passes WCAG AA or AAA, or has enough contrast (text on a background, button, badge, link color), or what a color is in another format. Returns the exact contrast ratio, pass or fail for normal text, large text and UI components at AA and AAA, the APCA lightness contrast and a plain note. Colors can be hex, rgb(), hsl() or CSS names. Example: {"foreground": "#777777", "background": "#ffffff"}. Also returns each color in hex, rgb, hsl and oklch with its nearest CSS name.

Input Schema

NameRequiredDescriptionDefault
backgroundYesBackground color, e.g. "#ffffff".
foregroundYesText (or icon) color, e.g. "#767676" or "rgb(20 20 20)" or "tomato".

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