toHex

Returns a string in "FF0000" form (without a leading #).

Returns

String The color in hex notation.

In this article