toHex

fun toHex(): String

Convert this color to an 8-bit hex color code (e.g. #FA00FA).

Return

color as RGB8 hex code