← Agent Data Hub · Search endpoints · /llms.txt

AI Color Space Converter (HEX/RGB/HSL) & WCAG 2.1 AA/AAA Contrast Auditor

Converts HEX colors to RGB/HSL and calculates exact WCAG 2.1 relative luminance and contrast ratio for accessibility compliance.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/ai-tool-color-space-wcag-contrast?fg=%2338bdf8&bg=%23090d16&compact=1

Full metadata: without compact=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"ai-tool-color-space-wcag-contrast"}

Parameters

fgForeground HEX color e.g. #38bdf8
bgBackground HEX color e.g. #090d16

Example response (live, compact)

{
  "apiId": "ai-tool-color-space-wcag-contrast",
  "data_freshness": "live",
  "data": {
    "tool": "ai-tool-color-space-wcag-contrast",
    "foreground_rgb": [
      56,
      189,
      248
    ],
    "background_rgb": [
      9,
      13,
      22
    ],
    "wcag_contrast_ratio": 9.07,
    "passes_wcag_aa_normal_text": true,
    "passes_wcag_aaa_normal_text": true
  },
  "source": "100% Platform-Native Deterministic AI Core Utility (<1ms)",
  "license": "100% Platform-Owned Deterministic Algorithm (Commercial Use Allowed)"
}

Source & license

Source100% Platform-Native Deterministic AI Core Utility (<1ms)
License100% Platform-Owned Deterministic Algorithm (Commercial Use Allowed)
Source URLhttps://api-hub.internal/ai-core-tools/ai-tool-color-space-wcag-contrast
Termshttps://opensource.org/licenses/MIT
CategoryDeveloper, Tech & Web › AI Core Daily Tools