WCAGコントラスト比チェック
contrast_checkCalculate WCAG 2.1 contrast ratio between text and background colors. Checks AA/AAA compliance for normal text, large text, and UI components to verify web accessibility.
Instructions
文字色と背景色のWCAG 2.1コントラスト比を計算し、AA/AAA基準(通常/大テキスト・UI部品)の合否を返す。Webデザインの配色検証・アクセシビリティチェックに使う。
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": "contrast_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | Yes | 背景色(hex。例: #ffffff) | |
| fg | Yes | 文字色(hex。例: #333333 / 333 / fff) |