system.drawing.color custom color code example Example: assign color to value in c# Color redColor = Color.FromArgb(255, 0, 0);