public static void Main()
Console.WriteLine("Can't be bothered putting in safeguards");
Console.WriteLine("Numbers MUST be between 0-255");
int r = GetColorInput("red");
int g = GetColorInput("green");
int b = GetColorInput("blue");
Console.WriteLine($"Hex code: {GetHexCode(Color.FromArgb(r, g, b))}");
public static int GetColorInput(string col)
Console.Write($"Input {col} value: ");
int v = Int32.Parse(Console.ReadLine());
public static string GetHexCode(Color c)
string s = "#" + c.R.ToString("X2") + c.G.ToString("X2") + c.B.ToString("X2");