Palette Contrast Impl
palette_contrast_implValidate contrast between foreground and background colors with WCAG or APCA, returning a ratio or Lc score for text readability and accessibility.
Instructions
Contrast for one fg/bg pair. method='apca' uses the APCA 0.1.9 perceptual algorithm (WCAG 3 draft direction; Lc>=75 body, >=60 large, >=45 bold).
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": {
"fg": "<fg>",
"bg": "<bg>"
},
"name": "palette_contrast_impl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | Yes | ||
| fg | Yes | ||
| method | No | wcag |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |