Color Tools
Palettes, contrast, and color info
Look up any color by hex, RGB, or HSL for full format conversions and naming. Generate palettes via color theory or AI. Check WCAG contrast ratios with AA/AAA compliance. Name colors from a database of 31,887 creative names.
Get comprehensive info about any color — name, hex, RGB, HSL, HSV, CMYK, closest named color, creative name, and contrast recommendation. Accepts hex, RGB, and HSL input formats.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "color-tools",
"skill": "color_info",
"input": {
"color": "#FF5733"
}
}' \
https://api.toolrouter.com/v1/tools/callGenerate a color scheme from a starting color using classic color theory. Supports monochrome, analogic, complement, analogic-complement, triad, and quad modes with 2-10 colors.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "color-tools",
"skill": "generate_palette",
"input": {
"color": "#FF6B6B"
}
}' \
https://api.toolrouter.com/v1/tools/callGenerate an AI-powered 5-color palette using machine learning. Optionally lock specific colors and let the AI generate complementary colors for the remaining positions.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "color-tools",
"skill": "ai_palette",
"input": {}
}' \
https://api.toolrouter.com/v1/tools/callCheck WCAG 2.1 accessibility contrast ratio between a foreground and background color. Returns AA and AAA compliance for both normal and large text with improvement suggestions.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "color-tools",
"skill": "check_contrast",
"input": {
"foreground": "#000000",
"background": "#FFFFFF"
}
}' \
https://api.toolrouter.com/v1/tools/callGet creative names for up to 10 colors from a database of 31,887 named colors. Returns each color with its closest creative name, plus a generated palette title for the group.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "color-tools",
"skill": "name_colors",
"input": {
"colors": [
"#FF5733",
"#3498DB",
"#2ECC71"
]
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"color-tools","skill":"color_info","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
Can I convert between hex, RGB, HSL, HSV, and CMYK?
Yes. `color_info` accepts hex, RGB, or HSL input and returns the full set of color conversions along with the closest named color and a contrast-friendly text color.
How do I generate a palette from one color?
`generate_palette` builds classic color schemes like monochrome, analogic, complement, triad, and quad. If you want a smarter starting point, `ai_palette` can lock up to five colors and fill in the rest.
Will it check accessibility contrast for my design?
`check_contrast` measures WCAG 2.1 AA and AAA contrast for foreground and background colors, including the large-text rules, and suggests a readable pairing.
Can I name several brand colors at once?
Yes. `name_colors` can name up to 10 hex colors in one call, which is useful when you are matching a palette to a brand system.