Skip to main content
Glama

A11y MCP Server

check_color_contrast

Evaluate foreground and background color combinations for compliance with WCAG contrast standards. Input color values in various formats, font size, and boldness to ensure accessibility.

Instructions

Check if a foreground and background color combination meets WCAG contrast requirements

Input Schema

NameRequiredDescriptionDefault
backgroundYesBackground color in various formats (e.g., "#FFFFFF", "#FFF", "rgb(255,255,255)", "hsv(0,0%,100%)")
fontSizeNoFont size in pixels
foregroundYesForeground color in various formats (e.g., "#000000", "#000", "rgb(0,0,0)", "hsv(0,0%,0%)")
isBoldNoWhether the text is bold

Input Schema (JSON Schema)

{ "properties": { "background": { "description": "Background color in various formats (e.g., \"#FFFFFF\", \"#FFF\", \"rgb(255,255,255)\", \"hsv(0,0%,100%)\")", "type": "string" }, "fontSize": { "default": 16, "description": "Font size in pixels", "type": "number" }, "foreground": { "description": "Foreground color in various formats (e.g., \"#000000\", \"#000\", \"rgb(0,0,0)\", \"hsv(0,0%,0%)\")", "type": "string" }, "isBold": { "default": false, "description": "Whether the text is bold", "type": "boolean" } }, "required": [ "foreground", "background" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ronantakizawa/a11ymcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server