ToHex() Method API Reference Spectre.Console Color ToHex() Gets the hexadecimal representation of the color. public string ToHex() Namespace Spectre.Console Containing Type Color Returns string