parse_color
Convert color strings into hex, RGB, and HSL formats. Handles hex, rgb, hsl, and CSS named colors.
Instructions
Parse a color string and return it in hex, rgb, and hsl formats. Accepts hex (#fff, #ffffff), rgb(r,g,b), hsl(h,s%,l%), and CSS named colors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color to parse (e.g. '#ff6600', 'rgb(255,102,0)', 'tomato') |