get color from class name code example Example: get color from classname var color = $(this).css("background-color");