Design
RGB to LCH Converter
Convert RGB color values to LCH for color management with alpha channel support
text· Text resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/rgb-to-lch-converter' \
-H 'Content-Type: application/json' \
-d '{"rgb":"Enter RGB values, one per line:\nrgb(255,0,128)\nrgba(255,0,128,0.5)\n255,0,128\n255,0,128,0.5\nR:255 G:0 B:128\nR:255 G:0 B:128 A:0.5\n#FF0080\n#FF008080\nff0080\nff008080","format":"lch","alphaHandling":"white","customBackground":"#FFFFFF"}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/rgb-to-lch-converterParameters
| Name | Type | Required | Description |
|---|---|---|---|
| rgb | textarea | Yes | — |
| format | select | Yes | — |
| alphaHandling | select | Yes | — |
| customBackground | color | No | Custom background color for alpha compositing (used when Custom Background is selected) |
Response format
Text result
JSON
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-rgb-to-lch-converter": {
"name": "rgb-to-lch-converter",
"description": "Convert RGB color values to LCH for color management with alpha channel support",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=rgb-to-lch-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "rgb-to-lch-converter",
"arguments": {
"rgb": "Enter RGB values, one per line:\nrgb(255,0,128)\nrgba(255,0,128,0.5)\n255,0,128\n255,0,128,0.5\nR:255 G:0 B:128\nR:255 G:0 B:128 A:0.5\n#FF0080\n#FF008080\nff0080\nff008080",
"format": "lch",
"alphaHandling": "white",
"customBackground": "#FFFFFF"
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
Questions or issues? Contact [email protected]