It seems like this issue with contrast is fixed in more recent version of Pygments.
The failures here happen for the comment blocks.