Convert a color between hex, rgb, hsl and oklch
swatch_convert_colorUse when the user asks to convert a color between hex, RGB, HSL and OKLCH, or asks what a color is called or how light it is. Returns all formats, the relative luminance and the nearest CSS color name. Example: {"color": "#ff5a1f"}. Exact math, so prefer it to converting by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Any CSS color. |