Color.ToString

From Xojo Documentation

Method

Color.ToString() As String

New in 2020r1

Supported for all project types and targets.

Converts the Color to a hex String value.

Sample Code

Var c1 As Color
c1 = Color.RGB(255, 100, 50)
Var hexColor As String = c1.ToString // hexColor = &h00FF6432