ConvertRGBcolourToHTML Function

Converts a colour definition from Decimal RGB format to HTML format.

HTML format is in the form #rrggbb where rr, gg and bb are hexadecimal values describing the red, green and blue content respectively. The decimal RGB value is equal to bb*65536 + gg*256 + rr expressed as a decimal integer.

Arguments

Number Type Compulsory Default Description
1 String Yes Decimal RGB Colour

Argument 1

Decimal RGB. See description for details

Returns

Return type: String

HTML colour value. See description for details