

Color Adjustment
Function
Available ActionsEach successful request consumes credits as outlined below.
color-hex-to-rgb5crcolor-rgb-to-hex5crcolor-hex-to-hsl5crcolor-hsl-to-hex5crcolor-rgb-to-hsl5crcolor-hsl-to-rgb5crcolor-complement5crcolor-darken5crcolor-lighten5crcolor-invert5crcolor-saturate5crcolor-desaturate5crcolor-random5crcolor-palette-generate5crcolor-name-to-hex5cr
Details
A color conversion and manipulation utility for working with colors across multiple formats used in web development, graphic design, and user interface design. It features a smart color parser that accepts input in any common format including hexadecimal codes with or without hash prefix in both short and long forms, RGB functional notation, HSL functional notation, comma-separated RGB values, and over 140 CSS named colors like coral, steelblue, and papayawhip. Format conversion functions translate between hex, RGB, and HSL color spaces with full component extraction for programmatic use. Color manipulation operations include finding complementary colors by rotating 180 degrees on the color wheel, darkening and lightening by adjustable percentages through lightness modification, inverting colors by subtracting each channel from 255, and adjusting saturation up or down for more vibrant or muted tones. The random color generator produces full color specifications across all formats, while the palette generator creates harmonious color schemes using color theory principles including analogous, complementary, and evenly-distributed hue rotations with subtle saturation and lightness variations. All operations return results in multiple formats simultaneously for immediate use in CSS, design tools, or further processing.
Use Cases
Hex to RGB conversion, RGB to hex conversion, hex to HSL conversion, HSL to hex conversion, RGB to HSL conversion, HSL to RGB conversion, color format translation, CSS color conversion, web color conversion, color space conversion, color code translation, complementary color finder, opposite color calculation, color wheel complement, color harmony generation, darken color, reduce brightness, shade generation, darker variant creation, lighten color, increase brightness, tint generation, lighter variant creation, invert color, negative color, color inversion, saturate color, increase vibrancy, vivid color creation, desaturate color, muted color, grayscale shift, reduce saturation, random color generation, random hex color, random RGB color, color palette generation, harmonious color scheme, analogous colors, color scheme generator, UI color palette, design color scheme, brand color generation, CSS named color lookup, HTML color name conversion, color name to hex, web safe color, color picker tool, design tool integration, frontend color utility, theme color generation, color manipulation API, AI agent color processing, LLM design assistance, automated color adjustment, programmatic color manipulation, color component extraction, RGB channel extraction, HSL component parsing
Actions(15)
color-hex-to-rgb5cr1 param(1 required)Convert any supported color format to RGB values. Returns r, g, b components and rgb() string.
color-hex-to-rgb5cr1 param(1 required)Convert any supported color format to RGB values. Returns r, g, b components and rgb() string.
colorrequiredstringColor to convert. Accepts hex (#3498db or 3498db), RGB function (rgb(52,152,219)), HSL function (hsl(204,70,53)), comma-separated RGB (52,152,219), or named color (red, forestgreen, etc.).
color-rgb-to-hex5cr1 param(1 required)Convert any supported color format to hexadecimal. Returns hex string.
color-rgb-to-hex5cr1 param(1 required)Convert any supported color format to hexadecimal. Returns hex string.
colorrequiredstringColor to convert. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-hex-to-hsl5cr1 param(1 required)Convert any supported color format to HSL values. Returns h, s, l components and hsl() string.
color-hex-to-hsl5cr1 param(1 required)Convert any supported color format to HSL values. Returns h, s, l components and hsl() string.
colorrequiredstringColor to convert. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-hsl-to-hex5cr1 param(1 required)Convert HSL color to hexadecimal. Returns hex string.
color-hsl-to-hex5cr1 param(1 required)Convert HSL color to hexadecimal. Returns hex string.
colorrequiredstringColor to convert. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-rgb-to-hsl5cr1 param(1 required)Convert RGB color to HSL values. Returns h, s, l components and hsl() string.
color-rgb-to-hsl5cr1 param(1 required)Convert RGB color to HSL values. Returns h, s, l components and hsl() string.
colorrequiredstringColor to convert. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-hsl-to-rgb5cr1 param(1 required)Convert HSL color to RGB values. Returns r, g, b components and rgb() string.
color-hsl-to-rgb5cr1 param(1 required)Convert HSL color to RGB values. Returns r, g, b components and rgb() string.
colorrequiredstringColor to convert. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-complement5cr1 param(1 required)Get the complementary color (opposite on the color wheel, 180-degree hue rotation). Returns complement in hex, RGB, and HSL.
color-complement5cr1 param(1 required)Get the complementary color (opposite on the color wheel, 180-degree hue rotation). Returns complement in hex, RGB, and HSL.
colorrequiredstringBase color. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-darken5cr2 params(1 required)Darken a color by reducing its lightness. Returns darkened color in hex, RGB, and HSL.
color-darken5cr2 params(1 required)Darken a color by reducing its lightness. Returns darkened color in hex, RGB, and HSL.
colorrequiredstringColor to darken. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
amountintegerPercentage to darken (1-100). Default: 10.
Default:
10Range: 1 - 100
color-lighten5cr2 params(1 required)Lighten a color by increasing its lightness. Returns lightened color in hex, RGB, and HSL.
color-lighten5cr2 params(1 required)Lighten a color by increasing its lightness. Returns lightened color in hex, RGB, and HSL.
colorrequiredstringColor to lighten. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
amountintegerPercentage to lighten (1-100). Default: 10.
Default:
10Range: 1 - 100
color-invert5cr1 param(1 required)Invert a color (each RGB channel becomes 255 minus its value). Returns inverted color in hex and RGB.
color-invert5cr1 param(1 required)Invert a color (each RGB channel becomes 255 minus its value). Returns inverted color in hex and RGB.
colorrequiredstringColor to invert. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
color-saturate5cr2 params(1 required)Increase a color's saturation for a more vibrant result. Returns saturated color in hex, RGB, and HSL.
color-saturate5cr2 params(1 required)Increase a color's saturation for a more vibrant result. Returns saturated color in hex, RGB, and HSL.
colorrequiredstringColor to saturate. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
amountintegerPercentage to increase saturation (1-100). Default: 10.
Default:
10Range: 1 - 100
color-desaturate5cr2 params(1 required)Decrease a color's saturation (move toward gray). Returns desaturated color in hex, RGB, and HSL.
color-desaturate5cr2 params(1 required)Decrease a color's saturation (move toward gray). Returns desaturated color in hex, RGB, and HSL.
colorrequiredstringColor to desaturate. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.
amountintegerPercentage to decrease saturation (1-100). Default: 10.
Default:
10Range: 1 - 100
color-random5cr0 paramsGenerate a random color. Returns the color in hex, RGB, and HSL formats with all component values.
color-random5cr0 paramsGenerate a random color. Returns the color in hex, RGB, and HSL formats with all component values.
No parameters for this action.
color-palette-generate5cr1 paramGenerate a harmonious color palette using color theory. Uses analogous colors for small palettes (up to 3), pentagon distribution for medium (up to 5), and even distribution for larger palettes.
color-palette-generate5cr1 paramGenerate a harmonious color palette using color theory. Uses analogous colors for small palettes (up to 3), pentagon distribution for medium (up to 5), and even distribution for larger palettes.
countintegerNumber of colors to generate (1-20). Default: 5.
Default:
5Range: 1 - 20
color-name-to-hex5cr1 param(1 required)Convert a CSS/HTML color name to hex, RGB, and HSL values. Supports all 147 standard named colors.
color-name-to-hex5cr1 param(1 required)Convert a CSS/HTML color name to hex, RGB, and HSL values. Supports all 147 standard named colors.
colorrequiredstringCSS/HTML color name (e.g., 'coral', 'steelblue', 'forestgreen', 'tomato').
Frequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
Hosted MCP config
{
"mcpServers": {
"agentpmt": {
"type": "streamable-http",
"url": "https://api.agentpmt.com/mcp",
"headers": {
"Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
"x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 694de6f7ecea2b5619a17bdc ("Color Adjustment"). Then call the same tool with action 'call_tool', tool_id 694de6f7ecea2b5619a17bdc, and the parameters needed for my request.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.





