lazymac2x avatar

Color Palette

lazymac2x/color-palette-api

A straightforward color utility server that plugs into Claude via Cloudflare Workers. You get color conversions (hex, RGB, HSL), harmony generation (complementary, triadic, analogous, split, tetradic, monochromatic), gradient interpolation, and WCAG contrast checking. It can also spit out CSS variables or Tailwind config from color arrays. Useful when you're building UIs in a conversation and need to generate accessible palettes, check contrast ratios, or export design tokens without switching to Figma or a color picker. The free tier works for light use, and there's a Pro plan if you need higher rate limits across the lazymac API suite.

tools
7
transport
HTTP
last updated
May 16, 2026

Install

From registry metadata
$ npx add-mcp https://api.lazy-mac.com/color-palette/mcp --name color-palette

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http color-palette https://api.lazy-mac.com/color-palette/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 7 tools

Verified live against the running server on Nov 6, 2026.

convert_colorConvert a hex color to HEX, RGB, HSL, and CMYK formats. Input: hex string with or without # (e.g. "ff5733").1 params

Convert a hex color to HEX, RGB, HSL, and CMYK formats. Input: hex string with or without # (e.g. "ff5733").

Parameters* required
color*string
Hex color string, e.g. "ff5733" or "#ff5733"
color_harmonyGenerate a set of harmonious colors from a base hex color. Harmony types: complementary, analogous, triadic, split, tetradic, monochromatic.3 params

Generate a set of harmonious colors from a base hex color. Harmony types: complementary, analogous, triadic, split, tetradic, monochromatic.

Parameters* required
color*string
Base hex color, e.g. "#ff5733"
countnumber
Number of colors for monochromatic only (2–10, default 5)
type*string
Harmony typeone of complementary · analogous · triadic · split · tetradic · monochromatic
generate_gradientGenerate an interpolated gradient between two hex colors. Returns color stops and a ready-to-use CSS linear-gradient string.3 params

Generate an interpolated gradient between two hex colors. Returns color stops and a ready-to-use CSS linear-gradient string.

Parameters* required
color1*string
Start hex color
color2*string
End hex color
stepsnumber
Number of gradient stops (2–20, default 5)
check_contrastCheck WCAG 2.1 contrast ratio between foreground and background colors. Returns ratio and AA/AAA pass/fail for both normal and large text.2 params

Check WCAG 2.1 contrast ratio between foreground and background colors. Returns ratio and AA/AAA pass/fail for both normal and large text.

Parameters* required
background*string
Background hex color
foreground*string
Foreground hex color
random_paletteGenerate a random harmonious color palette. Colors share a hue family to avoid clashing.1 params

Generate a random harmonious color palette. Colors share a hue family to avoid clashing.

Parameters* required
countnumber
Number of colors (1–10, default 5)
generate_cssGenerate CSS :root custom properties from a list of hex colors. Returns a ready-to-paste CSS block.2 params

Generate CSS :root custom properties from a list of hex colors. Returns a ready-to-paste CSS block.

Parameters* required
colors*array
Array of hex color strings
namestring
CSS variable prefix (default: "palette")
generate_tailwindGenerate a Tailwind CSS color config object. Colors are mapped to standard shades (50, 100, 200 … 900) in order. Paste the result into tailwind.config.js theme.extend.colors.2 params

Generate a Tailwind CSS color config object. Colors are mapped to standard shades (50, 100, 200 … 900) in order. Paste the result into tailwind.config.js theme.extend.colors.

Parameters* required
colors*array
Array of hex color strings (up to 10)
namestring
Color group key (default: "brand")

Sponsors

Readme

logo

lazymac API Store Gumroad MCPize

color-palette-api

⭐ Building in public from $0 MRR. Star if you want to follow the journey — lazymac-mcp (42 tools, one MCP install) · lazymac-k-mcp (Korean wedge) · lazymac-sdk (TS client) · api.lazy-mac.com · Pro $29/mo.


View the full README on GitHub

Details

Repository
github.com/lazymac2x/color-palette-api
Category
Cloud & Infrastructure
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026

More from lazymac2x

Related Cloud & Infrastructure MCP servers

View all
1lazymac2x avatarCron Monitorlazymac2x/cron-monitor-apiCloudflare Workers MCP server: cron-monitor0stars
2lazymac2x avatarCron Parserlazymac2x/cron-parser-apiCloudflare Workers MCP server: cron-parser0stars
3lazymac2x avatarCrypto Signallazymac2x/crypto-signal-apiCloudflare Workers MCP server: crypto-signal0stars
4lazymac2x avatarData Transformlazymac2x/data-transform-apiCloudflare Workers MCP server: data-transform0stars
5lazymac2x avatarDiff Patch Toolslazymac2x/diff-patch-tools-apiCloudflare Workers MCP server: diff-patch-tools0stars
6lazymac2x avatarDomain Intellazymac2x/domain-intel-apiCloudflare Workers MCP server: domain-intel0stars