WCAG contrast ratio for any two colours with AA and AAA results for text, large text and interface parts, a fix that finds the nearest passing colour, and a grid to check a whole palette.