{"id":"color-adjust-lightness","version":"1.0.0","description":"Lightens or darkens a CSS color by percentage points of HSL lightness and returns a hex color.","supported_operations":["lighten a hex color by 20 percent","darken a CSS color by 10 percent","increase HSL lightness","make #336699 lighter","reduce color lightness","adjust color brightness in HSL","lighten an rgb color"],"unsupported_operations":["convert named colors","color name lookup","rgba and hsla function aliases","mix colors in perceptual spaces","adjust CSS relative colors"],"semantics":["Converts sRGB to HSL by CSS Color 4 section 7, adds percentage/100 to lightness, clamps to [0,1], then converts back.","The percentage is an absolute percentage-point change, not multiplication of current lightness.","Returns lowercase hex, retaining alpha when it is below one, plus standard_version.","Accepted function names are rgb(), hsl(), and hwb(); rgba(), hsla(), and CSS named colors are unsupported. Alpha channels are accepted inside the supported function names or hex notation."],"limits":{"max_input_bytes":256,"max_color_bytes":128,"max_items":2,"max_iterations":1,"max_output_bytes":256},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"color":{"type":"string","minLength":1,"maxLength":128},"percentage":{"type":"number","minimum":-100,"maximum":100}},"required":["color","percentage"]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"standard_version":{"type":"string"},"format":{"type":"string","enum":["hex","rgb","hsl","hwb"]},"value":{"type":"string"}},"required":["standard_version","format","value"]},"examples":[{"input":{"color":"#336699","percentage":20},"output":{"standard_version":"CSS Color 4 (2024-02-14); WCAG 2.2","format":"hex","value":"#6699cc"}},{"input":{"color":"#ffffff","percentage":-20},"output":{"standard_version":"CSS Color 4 (2024-02-14); WCAG 2.2","format":"hex","value":"#cccccc"}}],"execute_url":"/v1/tools/color-adjust-lightness/versions/1.0.0/execute"}