Function getClassWithColor