← Agent Data Hub · Search endpoints · /llms.txt
Converts HEX colors to RGB/HSL and computes exact WCAG 2.1 contrast ratio against dark and light backgrounds (AA / AAA compliance).
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"}
hex | Foreground HEX color (default: #38bdf8) |
bg_hex | Background HEX color (default: #090d16) |
{
"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 | 100% Platform W3C WCAG 2.1 Luminance Engine |
| License | 100% Platform Owned Compute |
| Source URL | https://www.w3.org/TR/WCAG21/ |
| Terms | https://localhost:3000/llms.txt |
| Category | Developer, Tech & Web › 5. Data Formats, Cron, Regex & Converters |