I get color value with jQuery with .css(\'color\'), and then I know color that it should be.
.css(\'color\')
How can I compare color value that I get from jQuery with
What about...
if ($('#element').css('color') == 'rgb(0, 0, 0)') { // do something }
Replace 0, 0, 0 with the red, green and blue values of the colour value you want to compare.
.css() jQuery API