clrtobot - Linux


clrtobot is a command-line tool for converting color codes from one format to another. It supports a wide range of color code formats, including hex, rgb, cmyk, and hsv.


clrtobot [options] <input_color> [output_format]


  • -h, --help: Display help information
  • -v, --version: Display version information
  • -i, --input-format: Specify the input color format (default: hex)
  • -o, --output-format: Specify the output color format (default: hex)


Convert hex to rgb:

clrtobot #ff0000 -o rgb

Convert cmyk to hex:

clrtobot cmyk(0, 100, 100, 0) -o hex

Convert hsv to rgb:

clrtobot hsv(360, 100, 100) -o rgb

Common Issues

  • Incorrect input format: Ensure the specified input format is correct.
  • Unsupported color code: clrtobot may not support all color code formats.
  • Invalid color values: Input color values must be within the valid range for the specified format.


clrtobot can be integrated into scripts or command chains for automated color conversion tasks. For example:

echo "#00ff00" | clrtobot -i hex -o rgb | xargs -I{} echo {}

Related Commands