直接看转换方法吧
public static string Rgb216(int r,int g,int b){ return System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(r,g,b)); }使用方法
String color = Rgb216(255,0,0); System.Console.WriteLine(color);