Recently I was looking for a tool to measure luminosity of a given color and wrote about it here. My objective was to guarantee enough contrast when defining a css color palette for text and background.
Today I came across this on-line tool that is targeted exactly for that purpose. It is called Contrast Ratio:
Hope you enjoy it! Thanks to Lea Verou for her amazing projects!