convert_color
Convert a hex color to HEX, RGB, HSL, and CMYK formats. Input: hex string with or without # (e.g. "ff5733").
color必填
io.github.lazymac2x由 GitHub 帳號 lazymac2x 發布v1.0.0更新於 Oct 24, 2026
Cloudflare Workers MCP server: color-palette
產生配色方案、色彩調和、漸層與 WCAG 對比度檢查,並可輸出 CSS 與 Tailwind。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.lazymac2x%2Fcolor-palette/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"color-palette": {
"type": "http",
"url": "https://api.lazy-mac.com/color-palette/mcp"
}
}
}[lazymac API Store] [Gumroad] [MCPize]
⭐ 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.
[npm] [Smithery] [lazymac Pro] [api.lazy-mac.com]
🚀 Want all 42 lazymac tools through ONE MCP install?
npx -y @lazymac/mcp· Pro $29/mo for unlimited calls.
Color palette generation API — harmonies, gradients, contrast checking, WCAG accessibility scoring, CSS/Tailwind output. Zero external dependencies.
MIT
💡 Host your own stack? Get $200 DigitalOcean credit via lazymac referral link.
來源:README.md,提交 9690e63
Convert a hex color to HEX, RGB, HSL, and CMYK formats. Input: hex string with or without # (e.g. "ff5733").
color必填Generate a set of harmonious colors from a base hex color. Harmony types: complementary, analogous, triadic, split, tetradic, monochromatic.
type必填color必填countGenerate an interpolated gradient between two hex colors. Returns color stops and a ready-to-use CSS linear-gradient string.
stepscolor1必填color2必填Check WCAG 2.1 contrast ratio between foreground and background colors. Returns ratio and AA/AAA pass/fail for both normal and large text.
background必填foreground必填Generate a random harmonious color palette. Colors share a hue family to avoid clashing.
countGenerate CSS :root custom properties from a list of hex colors. Returns a ready-to-paste CSS block.
namecolors必填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.
namecolors必填已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在儲存庫或註冊中心條目中宣告授權條款。
npm install && npm start # http://localhost:4000curl http://localhost:4000/api/v1/convert/ff6b35# → {"hex":"#ff6b35","rgb":{"r":255,"g":107,"b":53},"hsl":{"h":16,"s":100,"l":60}}# Types: complementary, analogous, triadic, split, tetradic, monochromaticcurl http://localhost:4000/api/v1/harmony/complementary/ff6b35curl http://localhost:4000/api/v1/harmony/triadic/3498dbcurl http://localhost:4000/api/v1/harmony/monochromatic/e74c3c?count=7curl "http://localhost:4000/api/v1/gradient/ff6b35/3498db?steps=7"# → colors array + CSS gradient stringcurl http://localhost:4000/api/v1/contrast/000000/ffffff# → {"ratio":21,"AA_normal":true,"AA_large":true,"AAA_normal":true,"AAA_large":true}
curl http://localhost:4000/api/v1/contrast/ff6b35/ffffff# → Check if your orange text passes accessibility on white backgroundcurl "http://localhost:4000/api/v1/random?count=5"curl -X POST http://localhost:4000/api/v1/css \ -H "Content-Type: application/json" \ -d '{"colors":["#ff6b35","#3498db","#2ecc71"], "name":"brand"}'curl -X POST http://localhost:4000/api/v1/tailwind \ -H "Content-Type: application/json" \ -d '{"colors":["#fef3c7","#fde68a","#fcd34d","#fbbf24","#f59e0b","#d97706","#b45309","#92400e","#78350f","#451a03"], "name":"amber"}'