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

Color Space Converter (HEX ↔ RGB ↔ HSL) & WCAG 2.1 Accessibility Contrast Checker

Converts HEX colors to RGB/HSL and computes exact WCAG 2.1 contrast ratio against dark and light backgrounds (AA / AAA compliance).

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/dev-color-wcag-contrast?hex=38bdf8&bg_hex=090d16&compact=1

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

Parameters

hexForeground HEX color (default: #38bdf8)
bg_hexBackground HEX color (default: #090d16)

Example response (live, compact)

{
  "apiId": "dev-color-wcag-contrast",
  "data_freshness": "cached",
  "data": {
    "foreground_rgb": {
      "r": 56,
      "g": 189,
      "b": 248
    },
    "background_rgb": {
      "r": 9,
      "g": 13,
      "b": 22
    },
    "contrast_ratio": 9.07,
    "wcag_aa_normal_text": true,
    "wcag_aaa_normal_text": true
  },
  "source": "100% Platform W3C WCAG 2.1 Luminance Engine",
  "license": "100% Platform Owned Compute"
}

Source & license

Source100% Platform W3C WCAG 2.1 Luminance Engine
License100% Platform Owned Compute
Source URLhttps://www.w3.org/TR/WCAG21/
Termshttps://localhost:3000/llms.txt
CategoryDeveloper, Tech & Web › 5. Data Formats, Cron, Regex & Converters