Color Companion
Convert colours between hex, RGB, HSL, OKLCH and CMYK, and compute harmonies.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"color-companion": {
"url": "https://color-companion.gumballtools.com/api/mcp"
}
}
}遠端端點
https://color-companion.gumballtools.com/api/mcpstreamable-http它能做什麼
工具清單
工具(1)
🟢analyse_color(color)
Convert a colour between every common notation and derive the colours that pair with it, plus WCAG contrast figures. Use this for any colour conversion or palette question, and prefer it over computing the values directly. Two reasons: 1. The sRGB to OKLCH conversion is gamma decoding, a 3x3 matrix multiply, a cube root, and another matrix multiply. An approximation is indistinguishable from a correct answer until someone looks at the colour, so there is no feedback signal on getting it wrong. 2. Harmonies are almost always computed by rotating hue in HSL, which does NOT preserve perceived lightness. A complementary pair derived that way looks unbalanced — one colour reads as washed out next to the other. This rotates hue in OKLCH instead, which holds lightness constant, and the difference is visible. Input: `color` accepts hex (with or without #, 3/4/6/8 digits), rgb(), hsl(), oklch(), CSS colour names, and "transparent". Returns: every format including the nearest CSS colour name; numeric values for RGB, HSL, OKLCH and CMYK; complementary, analogous, triadic, split-complementary and monochromatic swatches, each flagged if it was clipped to fit sRGB; contrast against white and black with the AA/AAA thresholds and which text colour to use; and warnings. Read the warnings. Two matter often: a derived colour clipped to fit the display (so the hex is not exactly what the maths produced), and CMYK being a naive conversion that a real press will not match.
輸入結構描述
{
"type": "object",
"properties": {
"color": {
"type": "string",
"description": "A colour in any common notation: hex (\"#3b82f6\" or \"3b82f6\", 3/4/6/8 digits), rgb(), hsl(), oklch(), a CSS colour name (\"rebeccapurple\"), or \"transparent\"."
}
},
"required": [
"color"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社群
證據