Random RandomNum = new Random(); int red = RandomNum.Next(256); int green = RandomNum.Next(256); int blue = RandomNum.Next(256); label1.ForeColor = Color.FromArgb(red,green,blue);