Skip to main content
Glama

Tanod Util

utilpeek: WCAG contrast check between a foreground and a background color

check_wcag_contrast
Read-onlyIdempotent

utilpeek: Check the WCAG contrast between a text color and a background color. Returns the WCAG 2.x contrast ratio of a foreground and a background CSS color, with AA / AAA pass or fail for normal text, large text and UI components (unrounded: #777 on white is 4.48:1 and fails AA). Input: foreground and background. An unparseable or out-of-range color is a 422 before any payment (not charged). A translucent color is composited over the background before the contrast is computed. Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/color-contrast-checker-api.html

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backgroundYesThe background color it sits on, in the same CSS color formats.
foregroundYesThe text or UI color, a CSS color: hex (#rgb, #rrggbb, #rrggbbaa), rgb() / rgba(), hsl() / hsla() or a CSS color name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
ratioNo
backgroundNo
compositedNo
foregroundNo
large_textNo
ratio_textNo
normal_textNo
ui_componentsNo
ratio_unroundedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources