How can the syntax for specifying fill color in Imagemagick commands be better understood and utilized in PHP?

When using Imagemagick commands in PHP, specifying fill color can be confusing due to the variety of syntax options available. To better understand and utilize this, it's helpful to refer to the Imagemagick documentation for the correct syntax. One common way to specify fill color is using the -fill option followed by the color name or hexadecimal value.

// Example of specifying fill color in Imagemagick command in PHP
$command = "convert input.jpg -fill red -draw 'text 100,100 \"Hello\"' output.jpg";
exec($command);