This color contrast checker calculates the contrast ratio between a text color and a background color using the WCAG 2.1 formula. Each RGB color is converted to relative luminance, then (lighter + 0.05) ÷ (darker + 0.05) gives a ratio from 1:1 to 21:1. Black on white is the maximum, 21:1; identical colors are 1:1. Pick colors with the color picker or type HEX codes, and the preview updates live with sample text and a button.
WCAG level AA requires at least 4.5:1 for normal text and level AAA requires 7:1; large text (18pt, or 14pt bold) relaxes those to 3:1 and 4.5:1. The AA and AAA badges here use the normal-text thresholds. Ratios must not be rounded up: #777777 on white is 4.47:1, which looks close but fails, while #767676 reaches 4.54:1 and passes AA. #595959 on white is about 7.00:1, enough for AAA.
If a pair fails, press Smart Fix. The tool keeps the hue direction and steps the text color lighter (on dark backgrounds) or darker (on light backgrounds) until it reaches the AA ratio of 4.5:1; if that is not possible, it falls back to pure black or white. It is a quick way to find a usable color, though brand colors still deserve a designer’s final touch.
The color blindness simulator lets you upload an image or use the sample and preview it as seen with protanopia, deuteranopia, tritanopia or achromatopsia, using color matrices. It is handy for checking whether charts, maps or status colors rely on hue alone. Images are scaled to fit 800×600 and processed on a canvas in your browser without being uploaded. The simulation is an approximation; real color vision varies from person to person.