{"id":"color-convert","version":"1.0.0","description":"Converts hex, rgb(), hsl(), or hwb() colors and returns the requested normalized notation.","supported_operations":["hex #ff8800 to rgb","rgb(34,139,34) to hsl","convert a hex color with alpha","change hsl color to hex","CSS hwb to rgb converter","convert rgb percentage channels","turn #abc into hwb"],"unsupported_operations":["convert named colors","color name lookup","rgba and hsla function aliases","convert wide-gamut color spaces"],"semantics":["Parses sRGB hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb(), hsl(), and hwb() using CSS Color 4 sections 4, 7, and 10.","Serializes channels with at most three fractional decimal places; hex channels use nearest 8-bit values.","Returns standard_version on every success.","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},"format":{"type":"string","enum":["hex","rgb","hsl","hwb"]}},"required":["color","format"]},"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":"#ff8800","format":"rgb"},"output":{"standard_version":"CSS Color 4 (2024-02-14); WCAG 2.2","format":"rgb","value":"rgb(255 136 0)"}},{"input":{"color":"rgb(34,139,34)","format":"hsl"},"output":{"standard_version":"CSS Color 4 (2024-02-14); WCAG 2.2","format":"hsl","value":"hsl(120 60.694% 33.922%)"}}],"execute_url":"/v1/tools/color-convert/versions/1.0.0/execute"}