Use data-color attribute instead of relying on background-color

.css('background-color') returns a RGB value instead of the original hex value
With the use of data-color we retain the original hex value