Use loops and recognize HEX colors upto 9 charcaters