Lea Verou has created over at Github, an Easy Color Contrast Ratios.
As you type, the contrast ratio indicated will update. Hover over the circle to get more detailed information. When semi-transparent colors are involved as backgrounds, the contrast ratio will have an error margin, to account for the different colors they may be over.
Check it out at http://leaverou.github.com/contrast-ratio/