ad_color_to_hex tripletWhat it does:
Converts a string of the form 0,192,255 to a string of the form #00C0FF.Defined in: /web/philip/packages/acs-core/widgets-procs.tcl
Source code:
if { [regexp {^([0-9]+),([0-9]+),([0-9]+)$} $triplet all r g b] } { return "#[format "%02x%02x%02x" $r $g $b]" } else { return "" }