webdev_hex_color
Parse any color string and get HEX, RGB, HSL, HSV, CMYK values, plus four color palettes and WCAG accessibility analysis. Supports hex, rgb(), hsl(), and CSS color names.
Instructions
Hex Color Viewer And Analyzer. Parse a single color string and return it in every format (HEX, RGB, HSL, HSV, CMYK) plus four generated palettes and a WCAG accessibility analysis. Accepts hex (#RGB, #RRGGBB, 0x-prefixed), rgb()/rgba(), a bare r,g,b triple, hsl(), and 21 CSS color names — it auto-detects the format, so no source-format argument is needed. Use conversion_color_code for a focused HEX/RGB/HSL/HSV conversion between two chosen formats, or webdev_color_palette when you only want harmony schemes. Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited. Returns the all-format color, monochromatic/analogous/complementary/triadic palettes, and brightness, contrast, temperature, and suggested-text-color analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The color to parse, in any supported notation: a hex value (#RGB, #RRGGBB, or 0xRRGGBB), rgb()/rgba(), a bare r,g,b triple, hsl(), or a CSS color name (red, blue, teal, etc.). Whitespace and case are ignored. Invalid input returns HTTP 400. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether parsing succeeded. | |
| input | No | The input color string, echoed back. | |
| color | No | The color expressed in all supported formats. | |
| palettes | No | Generated harmony palettes, each an array of #RRGGBB hex strings. | |
| analysis | No | Perceptual and WCAG accessibility analysis of the color. |