{"category":"calc","endpoint":"https://setget.net/v1/tools/contrast-ratio","examples":[{"input":{"background":"#ffffff","foreground":"#000000"},"output":{"aa":{"large":true,"normal":true},"aaa":{"large":true,"normal":true},"background":"#ffffff","foreground":"#000000","ratio":21,"suggestion":null,"text":"21:1","ui_components":true}},{"input":{"background":"#ffffff","foreground":"#777777"},"output":{"aa":{"large":true,"normal":false},"aaa":{"large":false,"normal":false},"background":"#ffffff","foreground":"#777777","ratio":4.47,"suggestion":{"foreground":"#767676","passes":"AA","ratio":4.54},"text":"4.47:1","ui_components":true},"title":"A grey that just fails"}],"input_schema":{"additionalProperties":false,"properties":{"background":{"description":"The background colour, in any CSS format.","examples":["#ffffff"],"maxLength":80,"type":"string"},"foreground":{"description":"The text colour, in any CSS format.","examples":["#777777"],"maxLength":80,"type":"string"}},"required":["foreground","background"],"type":"object"},"keywords":["contrast checker","wcag contrast","color contrast ratio","accessibility contrast","aa aaa contrast","text contrast","a11y colour check"],"related":["color-convert","palette-generate","color-blend"],"slug":"contrast-ratio","summary":"Check the WCAG contrast ratio between text and background colours, with AA and AAA pass or fail.","tier":"inline","title":"Colour contrast checker","url":"https://setget.net/tools/contrast-ratio"}
