Coolors MCP
v2.0.0Color tools for AI agents: WCAG/APCA contrast, Material 3 HCT themes, palettes, DESIGN.md audits
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
describe_color
Describe what one or more colors actually look like in human perceptual terms (name, warm/cool temperature, lightness & vividness tier, OKLCH/HCT/HSL/RGB values, readable text recommendation, UI role suggestions, and visual pitfalls like bile-zone or halation). Use this whenever you cannot 'see' a hex code.
| Parameter | Type | Description |
|---|---|---|
colors * | array | One or more colors to describe (hex, CSS name, rgb, hsl, oklch) |
fix_contrast
Automatically find the perceptually closest color that meets a WCAG 2.x or APCA contrast target while preserving hue in HCT space. Eliminates trial-and-error guessing.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background color |
foreground * | string | Foreground/text color |
adjust | string | Which color to adjust: 'foreground' (default), 'background', or 'auto' (whichever needs smaller ΔE2000) |
prefer | string | Direction preference for tone adjustment |
target | string | Contrast target: 'aa' (4.5:1), 'aaa' (7:1), 'aa-large' (3:1), 'ui' (3:1), 'apca-body' (|Lc|≥75), 'apca-content' (|Lc|≥60), 'apca-large' (|Lc|≥45) |
design_ui_palette
Design a complete, contrast-verified Light + Dark UI color system from a single brand color following the 60-30-10 rule (60% surfaces/neutrals/text hierarchy, 30% secondary & subtle containers, 10% primary CTA & interactive states + harmonized status colors). Prevents dark-mode neon halation and guarantees WCAG AA/AAA text pairs.
| Parameter | Type | Description |
|---|---|---|
brand * | string | Brand seed color (hex, CSS name, rgb, hsl, oklch) |
format | string | Output format: markdown report + CSS, css only, json, or W3C tokens |
harmony | string | Secondary/accent harmony relative to brand |
neutralStyle | string | Neutral tinting: 'tinted' (subtle brand tint, default), 'cool', 'warm', or 'pure' grayscale |
audit_ui_colors
Audit an entire UI's foreground/background pairs and optional palette swatches in one call. Checks WCAG 2.x, APCA Lc, color-blindness contrast collapses, simultaneous-contrast vibration, and universally disliked colors — and provides exact hue-preserving fixes for every failing pair.
| Parameter | Type | Description |
|---|---|---|
pairs | array | Foreground/background pairs to audit (up to 100) |
swatches | array | Optional standalone palette swatches to check for bile-zone/CVD collisions |
generate_categorical_palette
Generate N perceptually balanced, color-blind-safe categorical colors for charts, badges, tags, or avatars. Optimizes minimum ΔE2000 across normal vision AND protanopia/deuteranopia/tritanopia so no category vanishes or collides.
| Parameter | Type | Description |
|---|---|---|
count * | number | Number of distinct categories (2-12) |
background | string | Target canvas polarity ('light' or 'dark') |
seedColor | string | Optional brand/anchor color to start the categorical spread from |
convert_color
Convert colors between formats (hex, rgb, hsl, lab, hct, oklab, oklch). Accepts hex, CSS named colors, rgb(), hsl(), oklch(), oklab(), or hct().
| Parameter | Type | Description |
|---|---|---|
color * | string | Color to convert (hex, CSS name, rgb(), hsl(), oklch(), oklab(), or hct()) |
to * | string | Target format |
color_distance
Calculate perceptual distance between two colors using Delta E 2000
| Parameter | Type | Description |
|---|---|---|
color1 * | string | First color (hex, rgb, or hsl) |
color2 * | string | Second color (hex, rgb, or hsl) |
metric | string | Distance metric to use |
check_contrast
Check contrast between two colors using WCAG 2.x luminance ratio, APCA Lc (WCAG 3 draft), or both. Also checks color-blindness contrast drops and suggests an exact hue-preserving fix if contrast fails.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background color |
foreground * | string | Foreground/text color |
algorithm | string | Contrast algorithm: 'wcag' (WCAG 2.x ratio), 'apca' (Lc, WCAG 3 draft), or 'both' |
suggestFix | boolean | Include nearest hue-preserving AA fix and CVD/optical warnings when issues exist |
adjust_color
Adjust a color using perceptual (oklch, hct) or classic (hsl) math: lighten, darken, saturate, desaturate, hue-shift, tint (mix with white), shade (mix with black), grayscale, invert, or mix with a second color. Perceptual space ('oklch' default) prevents muddy mixes and hue drift.
| Parameter | Type | Description |
|---|---|---|
color * | string | Color to adjust (hex, CSS name, rgb, hsl, oklch) |
operation * | string | Adjustment operation |
amount | number | Amount of change. Percent (0-100) for lighten/darken/saturate/desaturate/tint/shade, degrees (-360..360) for hue-shift, or 0-1 weight of first color for mix. Default 10 / 30 / 0.5. |
space | string | Color space for adjustment: 'oklch' (default, perceptually uniform), 'hct', or 'hsl' |
with | string | Second color (only for mix) |
generate_palette
Generate a color palette using color theory harmonies (monochromatic, analogous, complementary, split-complementary, triadic, tetradic, square, compound, shades-and-tints). Defaults to perceptual HCT space, avoids universally disliked colors, and describes each swatch so agents can see what was generated.
| Parameter | Type | Description |
|---|---|---|
baseColor * | string | Base color for palette generation |
allowDisliked | boolean | Allow dark yellow-green 'bile zone' colors (default false) |
count | number | Number of colors to generate |
includeDetails | boolean | Include perceptual name, temperature, tone, and best text ink for each swatch |
space | string | Wheel space: 'hct' (perceptual default), 'oklch' (CSS perceptual), 'ryb' (painter's red-yellow-blue wheel), or 'hsl' |
type | string | Type of color harmony |
generate_palette_with_locks
Generate a color palette while preserving specific locked colors. Uses deterministic perceptual search in OKLCH/HCT/LAB/HSL and avoids universally disliked colors.
| Parameter | Type | Description |
|---|---|---|
lockedColors * | array | Colors that must be included in the palette |
totalColors * | number | Total number of colors in the final palette |
colorSpace | string | Color space for palette generation/interpolation (oklch/hct/lab are perceptually uniform) |
mode | string | Generation mode: harmony (cohesive), contrast (distinct), or gradient (smooth transition) |
generate_gradient
Generate a smooth gradient between colors with multiple interpolation methods (oklch, oklab, lab, lch, hct, hsl, rgb)
| Parameter | Type | Description |
|---|---|---|
colors * | array | Colors to create gradient between (2-32) |
steps * | number | Total number of colors in the gradient, including every input color (must be ≥ number of colors) |
easing | string | Easing function for gradient transition |
format | string | Output format for the gradient |
interpolation | string | Color space for interpolation (oklch/oklab/lab/lch/hct are perceptually smooth) |
export_palette
Export a list of colors as CSS custom properties, SCSS variables, a Tailwind config snippet, W3C design tokens, JSON, or a DESIGN.md `colors:` block.
| Parameter | Type | Description |
|---|---|---|
colors * | array | Palette colors (up to 256) |
format * | string | Output format: css (custom properties), scss (variables), tailwind (config), tokens (W3C design tokens), json, design-md (DESIGN.md `colors:` YAML for the front matter) |
names | array | Optional names for each color. Length must match colors. Defaults to a 50/100…900 scale. |
prefix | string | Optional prefix for variable/token names (e.g. 'brand') |
simulate_color_blindness
Simulate how one or more colors appear to viewers with color vision deficiency (protanopia, deuteranopia, tritanopia, their milder anomaly forms, or achromatopsia).
| Parameter | Type | Description |
|---|---|---|
colors * | array | Colors to simulate (hex, rgb, hsl), up to 64 |
types | array | Deficiency types to simulate. Defaults to all 7 (dichromacy + anomaly + achromatopsia). |
check_palette_accessibility
Audit a color palette for color-blind accessibility. For each pair of colors, reports the perceptual distance (Delta E 2000) under each CVD type and flags pairs that become indistinguishable.
| Parameter | Type | Description |
|---|---|---|
colors * | array | Palette colors to audit (2-64) |
indistinguishableThreshold | number | ΔE2000 below which two simulated colors are considered indistinguishable (default 10) |
types | array | CVD types to audit. Defaults to all 7. |
generate_tonal_scale
Generate a complete tonal scale (Tailwind-style 50/100/.../900/950) from a seed color. Uses Google's HCT color space so each step is perceptually even — ideal for building shadable design-system colors.
| Parameter | Type | Description |
|---|---|---|
seed * | string | Seed color (hex, rgb, hsl) |
chromaBoost | number | Multiplier on seed chroma (1 = preserve, <1 = muted) |
name | string | CSS variable base name (default: 'color') |
stops | array | Custom stops. Default: [50,100,200,300,400,500,600,700,800,900,950]. |
generate_state_colors
Generate consistent interaction-state colors (hover / active / pressed / focus / disabled / selected) from a base color. Steps are computed in HCT space so they keep equal perceptual weight regardless of base hue.
| Parameter | Type | Description |
|---|---|---|
base * | string | Base/resting color (hex, rgb, hsl) |
isDark | boolean | Whether the base color sits on a dark background. Hover lightens on dark, darkens on light. |
analyze_palette_consistency
Score how visually cohesive a palette is. Reports tonal step uniformity, chroma spread, hue distribution, and a single 0-100 cohesion score, plus targeted suggestions for tightening it up.
| Parameter | Type | Description |
|---|---|---|
colors * | array | Palette colors to analyze (2-64) |
generate_semantic_palette
From a single brand color, generate a complete visually-cohesive semantic palette: primary, secondary, tertiary, plus success/warning/error/info status colors. Tone and chroma are normalized in HCT space so every color feels like part of the same family.
| Parameter | Type | Description |
|---|---|---|
brand * | string | Brand / seed color (hex, rgb, hsl) |
isDark | boolean | Generate the palette for a dark theme background |
generate_material_theme
Generate a complete Material Design 3 color theme from a source color
| Parameter | Type | Description |
|---|---|---|
sourceColor * | string | Source color for theme generation |
includeCustomColors | boolean | Include custom color palettes |
harmonize_colors
Harmonize colors to work better together using Material Design algorithms
| Parameter | Type | Description |
|---|---|---|
colors * | array | Array of colors to harmonize |
factor | number | Harmonization strength (0-1) |
method | string | Harmonization method |
generate_tonal_palette
Generate a Material Design tonal palette from a color
| Parameter | Type | Description |
|---|---|---|
color * | string | Base color for palette |
tones | array | Custom tone values 0-100 (default: Material standard tones) |
match_theme_color
Find the closest matching theme variable for a given color
| Parameter | Type | Description |
|---|---|---|
color * | string | Color to match (hex, rgb, hsl) |
themeCSS * | string | CSS containing theme variables |
context | string | Usage context for better matching |
minConfidence | number | Minimum confidence threshold (0-100) |
refactor_css_with_theme
Refactor CSS to use theme variables instead of hardcoded colors
| Parameter | Type | Description |
|---|---|---|
css * | string | CSS content to refactor |
themeCSS * | string | CSS containing theme variables |
generateReport | boolean | Generate detailed refactoring report |
minConfidence | number | Minimum confidence for replacements |
preserveOriginal | boolean | Keep original values as comments |
match_theme_colors_batch
Find theme matches for multiple colors at once
| Parameter | Type | Description |
|---|---|---|
colors * | array | Array of colors to match |
themeCSS * | string | CSS containing theme variables |
context | string | Usage context for all colors |
generate_theme_css
Generate CSS custom properties for a complete theme from a source color
| Parameter | Type | Description |
|---|---|---|
sourceColor * | string | Source color for theme generation |
includeTones | array | Tone values to include (default: 0,10,20,30,40,50,60,70,80,90,95,99,100) |
prefix | string | Prefix for CSS variables (e.g., 'color' → --color-primary-50) |
extract_image_colors
Extract dominant colors from an image. Input should be image data as an array of RGBA values.
| Parameter | Type | Description |
|---|---|---|
imageData * | object | Image data with RGBA values (at most 65536 pixels; downscale larger images) |
format | string | Output format |
maxColors | integer | Maximum number of colors to extract |
quality | string | Extraction quality |
generate_theme_from_image
Generate a complete Material Design 3 theme from an image
| Parameter | Type | Description |
|---|---|---|
imageData * | object | Image data with RGBA values (at most 65536 pixels; downscale larger images) |
includeCustomColors | boolean | Include custom colors from image |
isDark | boolean | Generate dark theme (false for light theme) |
audit_design_md
Audit the color tokens of a DESIGN.md file (Google Labs design-system format: YAML front matter / ```yaml blocks with `colors` and `components`). Checks WCAG + APCA contrast for pairs declared in components (backgroundColor/textColor) and pairs inferred from token names (on-X ↔ X, text ↔ surface), color-blind collisions between accent/status colors, exact and near-duplicate tokens, disliked colors, broken {colors.x} references and a missing `primary`. Suggests same-hue fixes for failing pairs. Pass the file's full text.
| Parameter | Type | Description |
|---|---|---|
designMd * | string | Full text of the DESIGN.md file |
cvdThreshold | number | ΔE2000 below which two accent/status colors count as indistinguishable under color-vision deficiency |
maxItems | integer | Maximum rows listed per report section |
textThreshold | number | Minimum WCAG contrast for text pairs (4.5 = AA normal text, 7 = AAA) |
analyze_color_likability
Check if a color is universally disliked (dark yellow-green associated with biological waste) and get a fixed version if needed
| Parameter | Type | Description |
|---|---|---|
color * | string | Color to analyze (hex, rgb, hsl, etc.) |
autoFix | boolean | Automatically return fixed version if disliked |
fix_disliked_colors_batch
Analyze and fix multiple colors, returning only liked versions
| Parameter | Type | Description |
|---|---|---|
colors * | array | Array of colors to analyze (hex, rgb, hsl, etc.), up to 100 |
includeAnalysis | boolean | Include detailed analysis for each color |