convert_color
Translate color values between hex and RGB formats for CSS and design systems.
Instructions
Convert a color value between hex and RGB formats.
Use this when working with CSS colors, design systems, or anywhere you need
to translate between hex (#FF0000) and RGB (rgb(255, 0, 0)) representations.
Parameters:
value — The color value to convert (required).
Hex format e.g.: "FF0000" or "#FF0000".
RGB format e.g.: "rgb(255,0,0)" or "255,0,0".
from_format — Source format: "hex" or "rgb" (default: "hex").
to_format — Target format: "hex" or "rgb" (default: "rgb").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| from_format | No | hex | |
| to_format | No | rgb |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |