AgentPMT - The Agentic Economy

Color Adjustment

Function
$0.05/requestMin Purchase: 20Min Purchase Price: $1

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

Parameters

(required properties listed first)

action*required
Type:string
Description:The color operation to perform. Use 'get_instructions' to retrieve documentation. Available actions: Conversions (color-hex-to-rgb, color-rgb-to-hex, color-hex-to-hsl, color-hsl-to-hex, color-rgb-to-hsl, color-hsl-to-rgb), Manipulations (color-complement, color-darken, color-lighten, color-invert, color-saturate, color-desaturate), Generators (color-random, color-palette-generate), Named colors (color-name-to-hex)
Allowed values:
get_instructionscolor-hex-to-rgbcolor-rgb-to-hexcolor-hex-to-hslcolor-hsl-to-hexcolor-rgb-to-hslcolor-hsl-to-rgbcolor-complementcolor-darkencolor-lightencolor-invertcolor-saturatecolor-desaturatecolor-randomcolor-palette-generatecolor-name-to-hex
color
Type:string
Description:Universal color input that accepts multiple formats: 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, blue, forestgreen, etc.). Required for all actions except color-random and color-palette-generate. The smart parser automatically detects and converts the format.
amount
Type:integer
Description:Amount to adjust color (1-100). Used for color-darken, color-lighten, color-saturate, and color-desaturate actions. Default: 10
Default:10
Minimum:1
Maximum:100
count
Type:integer
Description:Number of colors to generate (1-20). Used for color-palette-generate action. Default: 5
Default:5
Minimum:1
Maximum:20

API Example

curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key-here" \
  -H "X-Budget-Key: your-budget-key-here" \
  -d '{
    "product_id": "694de6f7ecea2b5619a17bdc",
    "parameters": {
      "action": "get_instructions",
      "amount": 10,
      "count": 5
    }
  }'

Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your actual credentials.

About The Developer

Apoth3osis logo

Apoth3osis

13 stars

Joined Agent Payment: August 14, 2025

We build tools that enable AI agents to excel in the mathematical realm.

Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.