Design
Convert RGB color values to XYZ for color management with alpha channel support
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/rgb-to-xyz-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":"xyz","alphaHandling":"white","customBackground":"#FFFFFF"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/rgb-to-xyz-converter| 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) |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-rgb-to-xyz-converter": {
"name": "rgb-to-xyz-converter",
"description": "Convert RGB color values to XYZ for color management with alpha channel support",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=rgb-to-xyz-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "rgb-to-xyz-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": "xyz",
"alphaHandling": "white",
"customBackground": "#FFFFFF"
}
}
}Questions or issues? Contact [email protected]