AgentPMT
Color Adjustment

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.

Convert any supported color format to RGB values. Returns r, g, b components and rgb() string.

colorrequiredstring

Color 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.

Convert any supported color format to hexadecimal. Returns hex string.

colorrequiredstring

Color 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.

Convert any supported color format to HSL values. Returns h, s, l components and hsl() string.

colorrequiredstring

Color 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.

Convert HSL color to hexadecimal. Returns hex string.

colorrequiredstring

Color 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.

Convert RGB color to HSL values. Returns h, s, l components and hsl() string.

colorrequiredstring

Color 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.

Convert HSL color to RGB values. Returns r, g, b components and rgb() string.

colorrequiredstring

Color 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.

Get the complementary color (opposite on the color wheel, 180-degree hue rotation). Returns complement in hex, RGB, and HSL.

colorrequiredstring

Base 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.

Darken a color by reducing its lightness. Returns darkened color in hex, RGB, and HSL.

colorrequiredstring

Color to darken. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.

amountinteger

Percentage to darken (1-100). Default: 10.

Default: 10
Range: 1 - 100
color-lighten5cr2 params(1 required)

Lighten a color by increasing its lightness. Returns lightened color in hex, RGB, and HSL.

Lighten a color by increasing its lightness. Returns lightened color in hex, RGB, and HSL.

colorrequiredstring

Color to lighten. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.

amountinteger

Percentage to lighten (1-100). Default: 10.

Default: 10
Range: 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.

Invert a color (each RGB channel becomes 255 minus its value). Returns inverted color in hex and RGB.

colorrequiredstring

Color 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.

Increase a color's saturation for a more vibrant result. Returns saturated color in hex, RGB, and HSL.

colorrequiredstring

Color to saturate. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.

amountinteger

Percentage to increase saturation (1-100). Default: 10.

Default: 10
Range: 1 - 100
color-desaturate5cr2 params(1 required)

Decrease a color's saturation (move toward gray). Returns desaturated color in hex, RGB, and HSL.

Decrease a color's saturation (move toward gray). Returns desaturated color in hex, RGB, and HSL.

colorrequiredstring

Color to desaturate. Accepts hex, rgb(), hsl(), comma-separated RGB, or named color.

amountinteger

Percentage to decrease saturation (1-100). Default: 10.

Default: 10
Range: 1 - 100
color-random5cr0 params

Generate a random color. Returns the color in hex, RGB, and HSL formats with all component values.

Generate a random color. Returns the color in hex, RGB, and HSL formats with all component values.

No parameters for this action.

color-palette-generate5cr1 param

Generate 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.

Generate 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.

countinteger

Number of colors to generate (1-20). Default: 5.

Default: 5
Range: 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.

Convert a CSS/HTML color name to hex, RGB, and HSL values. Supports all 147 standard named colors.

colorrequiredstring

CSS/HTML color name (e.g., 'coral', 'steelblue', 'forestgreen', 'tomato').

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

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\"}"
      }
    }
  }
}

How does an external agent use this tool?

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.

Looking for help integrating AI into your business? Set up a free consultation.