Chart color check
chart_colour_checkCheck a set of chart series colors. Pass colors (list or comma-separated string of hex, rgb(), hsl() or CSS names, up to 24), background (default #ffffff) and chartType (bar, line, area, pie, scatter, map and so on). Returns: contrast of each color against the background with the 3:1 minimum for graphics (WCAG 2.x non-text contrast) and the nearest passing shade; pairwise color distance (CIE76 delta E) under typical vision, protanopia, deuteranopia, tritanopia (Machado et al. 2009 model) and grayscale, flagging pairs below 10 for filled marks or 15 for thin marks (working conventions, not standards); duplicate colors; a count warning past seven categorical hues; and a direct-labeling recommendation when there are more than four series. Also lists which colors of the Wong palette (Bang Wong, Points of view: Color blindness, Nature Methods, 2011) stay at 3:1 on your background. Pure computation.
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": {
"colors": "<colors>"
},
"name": "chart_colour_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | Series colors, as a list or comma-separated string. | |
| chartType | No | bar, column, line, area, pie, scatter, map, stacked... | |
| background | No | Chart background color. Default #ffffff. |