Colors an agent can see
describe_color turns a hex code into a name, temperature, lightness, OKLCH/HCT/HSL/RGB values, the best text color and likely UI roles.
Perceptual color descriptions, WCAG and APCA contrast fixes, Material Design 3 themes on Google's HCT, palettes, color-blindness checks, CSS theme refactoring and DESIGN.md audits โ built for Claude Code
31 read-only tools ยท runs locally ยท no API keys
Coolors MCP is a Model Context Protocol (MCP) server that gives AI assistants such as Claude a set of color tools. A model cannot see a hex code; these tools tell it what a color looks like, whether text on it is readable, and how to fix it. They also build palettes and Material Design 3 themes, check colors for color-blind viewers, and move hard-coded CSS colors onto theme variables.
All 31 tools are read-only and run locally over stdio. There are no API keys, no network requests and no configuration.
describe_color).apca-w3 0.1.9), with exact same-hue fixes (check_contrast, fix_contrast, audit_ui_colors).@material/material-color-utilities drives themes, tonal palettes, scales, state colors and dislike detection.HCT (hue, chroma, tone) is the color space Google built for Material Design 3. Hue and chroma come from the CAM16 color appearance model, and tone is CIE L*, perceived lightness.
Because tone is L*, the WCAG contrast between two colors depends only on their tones. Tone-40 colors of different hues all land at about the same contrast on white: #016e00 (green) gives 6.50:1, #c00000 (red) 6.48:1, #0052dd (blue) 6.46:1 and #6750a4 (violet) 6.44:1. That makes it possible to pick tones for readable pairs before choosing hues. Read more in HCT.
Requires Node.js 20 or newer.
claude mcp add coolors -- npx -y @trishchuk/coolors-mcpThen run /mcp in Claude Code to check that coolors is connected.
{
"mcpServers": {
"coolors": {
"command": "npx",
"args": ["-y", "@trishchuk/coolors-mcp"]
}
}
}More options: Installation.
Describe #6366f1 and tell me what text color to put on it
Is #9e9e9e readable on white? Fix it for WCAG AA
Design a light and dark UI palette from #6750a4
Make 6 color-blind-safe chart colors for a dark background
Replace the hard-coded colors in this CSS with my theme variables
Audit the colors in my DESIGN.mdGetting Started walks through these with real results.
| Category | Tools |
|---|---|
| Agent tools | describe_color, fix_contrast, design_ui_palette, audit_ui_colors, generate_categorical_palette |
| Color operations | convert_color, color_distance, check_contrast, adjust_color |
| Accessibility | simulate_color_blindness, check_palette_accessibility |
| Palettes | generate_palette, generate_palette_with_locks, generate_gradient, export_palette |
| Visual cohesion | generate_tonal_scale, generate_state_colors, analyze_palette_consistency, generate_semantic_palette |
| Material Design | generate_material_theme, harmonize_colors, generate_tonal_palette |
| Theme matching | match_theme_color, match_theme_colors_batch, refactor_css_with_theme, generate_theme_css |
| Images and color psychology | extract_image_colors, generate_theme_from_image, analyze_color_likability, fix_disliked_colors_batch |
| DESIGN.md | audit_design_md |
This project is licensed under the MIT License. See the LICENSE file for details.
Built with โค๏ธ on Google's Material Color Utilities