{"uid":"cap_8W4nIef168s-xbQdUjLuL","slug":"tanod-utilpeek-color-conversion-wcag-contrast-check-4ec9d9d3","name":"Tanod utilpeek Color Conversion & WCAG Contrast Check","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/color/convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"color":{"type":"string","maxLength":64,"minLength":1,"description":"A CSS color: hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb() / rgba(), hsl() / hsla() or a CSS color name (148 names, plus transparent)."},"background":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"default":null,"description":"Optional second color (e.g. the background): adds the WCAG 2.x contrast ratio and AA / AAA pass / fail."}}},"responseSchema":{"type":"json","example":{"color":{"hex":"#777777","hsl":{"h":0,"l":46.67,"s":0,"css":"hsl(0 0% 46.67%)"},"hsv":{"h":0,"s":0,"v":46.67},"rgb":{"b":119,"g":119,"r":119,"css":"rgb(119 119 119)"},"cmyk":{"c":0,"k":53.33,"m":0,"y":0,"note":"naive RGB to CMYK formula (no ICC profile, no ink limits): not a print proof"},"hex8":"#777777ff","alpha":1,"names":[],"oklch":{"c":0,"h":null,"l":0.5693,"css":"oklch(56.93% 0 none)"},"relative_luminance":0.184475},"contrast":{"note":"WCAG 2.x contrast; pass/fail compares the unrounded ratio. Large text: at least 18 pt (24 px), or 14 pt (about 18.7 px) bold. Thresholds: AA 4.5 normal / 3 large, AAA 7 / 4.5, UI components and graphics 3 (SC 1.4.11).","ratio":4.48,"composited":false,"ratio_text":"4.48:1","aa_large_text":true,"aa_normal_text":false,"aaa_large_text":false,"aaa_normal_text":false,"ratio_unrounded":4.478089,"aa_ui_components":true},"background":{"hex":"#ffffff","hsl":{"h":0,"l":100,"s":0,"css":"hsl(0 0% 100%)"},"hsv":{"h":0,"s":0,"v":100},"rgb":{"b":255,"g":255,"r":255,"css":"rgb(255 255 255)"},"cmyk":{"c":0,"k":0,"m":0,"y":0,"note":"naive RGB to CMYK formula (no ICC profile, no ink limits): not a print proof"},"hex8":"#ffffffff","alpha":1,"names":["white"],"oklch":{"c":0,"h":null,"l":1,"css":"oklch(100% 0 none)"},"relative_luminance":1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_elNd6nfmVsjY_QNSbHEdK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a CSS color to hex, RGB, HSL, HSV, CMYK, and OKLCH formats, and optionally checks WCAG 2.x contrast ratio (AA/AAA) against a background color.","exampleAgentPrompt":"Convert #3B82F6 to all color formats — hex, RGB, HSL, HSV, CMYK, and OKLCH — and also check if it meets WCAG AA and AAA contrast requirements when used as text on a white (#FFFFFF) background.","exampleUseCases":[{"title":"Accessibility audit for brand colors","prompt":"I need to know if my brand's primary color #1D4ED8 on a white background passes WCAG AA and AAA contrast standards — can you check and give me the contrast ratio?"},{"title":"Design token color format conversion","prompt":"Can you take the color 'rebeccapurple' and give me its values in hex, RGB, HSL, HSV, CMYK, and OKLCH so I can add it to our design system tokens?"},{"title":"Dark mode text legibility check","prompt":"Does dark gray text (#374151) on a navy background (#1E3A5F) pass WCAG 2.x accessibility contrast checks? Tell me the contrast ratio and whether it's AA or AAA compliant."}],"resultDescription":"Returns the input color expressed in all major color spaces: hex, RGB, HSL, HSV, CMYK, and OKLCH. When a background color is provided, also returns the WCAG 2.x contrast ratio (a number like 4.5:1) and pass/fail status for both the AA and AAA accessibility conformance levels.","failureModes":["Invalid or unrecognized color string returns a 4xx error","Color name not in the 148 supported CSS names is rejected","Malformed hex (wrong number of digits) causes a parse error","Background color field provided but also malformed triggers validation failure"],"whenToPreferThis":"Choose this endpoint when you need comprehensive color format conversion across all major color spaces in a single call, or when checking WCAG 2.x accessibility compliance between a foreground and background color pair. It is especially valuable for design systems, accessibility audits, and CSS tooling workflows where multiple color representations are needed simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:40:38.924Z","isFirstParty":false,"canonicalSlug":"tanod-utilpeek-color-conversion-wcag-contrast-check-4ec9d9d3"}