CTA Visual Hierarchy Tester
cta_visual_hierarchy_testerScore a call-to-action button's visibility using its real WCAG contrast ratio against the background plus size and placement. See the full version at https://rahuldsarker.co/calculators/cta-visual-hierarchy-tester
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"buttonColorHex": "<buttonColorHex>",
"backgroundColorHex": "<backgroundColorHex>",
"size": "<size>",
"placement": "<placement>"
},
"name": "cta_visual_hierarchy_tester"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Button size: large/prominent, medium, or small/text-like | |
| currency | No | ISO 4217 code for money in the result, e.g. "USD", "INR", "EUR", "GBP". Omit to show plain numbers. | |
| placement | Yes | Placement: primary (above fold, standout), inline with content, or buried (below fold/crowded) | |
| buttonColorHex | Yes | Button colour as a hex code, e.g. "#7C3AED" | |
| backgroundColorHex | Yes | Background colour as a hex code, e.g. "#FAFAFB" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kind | Yes | ||
| tool | Yes | The calculator tool that produced this result | |
| notes | Yes | ||
| title | Yes | ||
| inputs | Yes | ||
| compact | Yes | ||
| metrics | Yes | Every "Label: value" line of the result; value is the first number on the line | |
| currency | Yes | ||
| benchmarks | Yes | Rule-of-thumb verdicts for the headline numbers | |
| bookingUrl | Yes | ||
| calculator | Yes | Slug of the interactive calculator on rahuldsarker.co |