Click on colour.

Results legend:

http://www.w3.org/TR/AERT#color-contrast

PHP, safe colours PHP, more colours PHP, even more colours
JS, safe colours JS, more colours JS, even more colours
// 1 | 3 | 5 | 15 | 17 | 51 | 85