← Back to Home

Color Converter

/color/:color
Convert between HEX, RGB, and HSL color formats. Supports full hex, short hex, and rgb() formats.
Try it now

Parameters

color path
Color in HEX (#FF5733 or F53) or RGB (rgb(255,87,51)) format

Examples

curl
curl https://tcpdata.com/color/FF5733
curl
curl 'https://tcpdata.com/color/#FF5733'
curl
curl https://tcpdata.com/color/F53
curl
curl 'https://tcpdata.com/color/rgb(255,87,51)'

Notes

HEX colors can include or omit the # symbol

Short hex formats are supported: F53 expands to FF5533

RGB format: rgb(255,87,51) - must be quoted in shell to avoid syntax errors

Parentheses and commas require quoting in bash/zsh