Color Contrast
GET /check/contrastParameters
Parameter
Required
Description
Example
curl "https://api.uwuapps.org/check/contrast?text=%23ffffff&bg=%23000000"Response
{
"success": true,
"textColor": "#ffffff",
"bgColor": "#000000",
"ratio": 21,
"aa": {
"normal": true,
"large": true
},
"aaa": {
"normal": true,
"large": true
}
}Response fields
Field
Description
WCAG thresholds
Level
Normal text
Large text
Notes
Last updated
Was this helpful?
