using System;
    class ColorTheText
    {
        public static void Main(string [] args)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("\t\tCongratulations! You have cleared this level. \n\n\t\t\t    Entering Level 2...");
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
But I want to get the color from hex code i.e. ConsoleColor. color from hex code (#c0c0c0). How to do it?
 
     
    