AlpaKit Logo AlpaKit

Color Contrast & Accessibility Checker

Calculate text & background contrast ratio based on WCAG 2.1 standards, fix colors automatically, extract color palettes from drag-and-drop images, and simulate color blindness.

⚖️ Color Contrast Analyzer (WCAG 2.1)

Contrast Ratio

12.3:1

WCAG 2.1 AA

PASS

WCAG 2.1 AAA

PASS

Component Real-time Preview

This is a sample text used to test color readability. Proper contrast helps everyone read web content easily.

✨ Smart Contrast Fix

One-click text color auto-adjustment to meet AA (4.5:1) standards

👁️ Image Color Blindness Simulator

📤 Drag & drop image here or click to upload Supports PNG, JPG, WebP. Processed locally in your browser.

📚 Web Color Accessibility Guide (WCAG 2.1)

  • AA Level: Normal text requires a contrast of 4.5:1+, large text (18pt+) requires 3:1+.
  • AAA Level: Normal text requires a contrast of 7:1+, large text requires 4.5:1+.
  • Relative luminance is the perceived brightness of a color, from 0 (darkest black) to 1 (brightest white).

How to use this tool

  1. 1 Open Color Contrast & Accessibility Checker, then enter, paste, or choose the content you want to process.
  2. 2 Adjust the available options and output format for your task.
  3. 3 Review the instant result, then copy or download the available output.

Common use cases

Calculate text & background contrast ratio based on WCAG 2.1 standards, fix colors automatically, extract color palettes from drag-and-drop images, and simulate color blindness. Use it for everyday work, development, learning, or quick verification.

Privacy and data handling

This tool runs in your browser. Before working with sensitive data, make sure you trust your browser and device environment.

Color contrast checker: WCAG AA/AAA ratios and color blindness simulation

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.

Frequently asked questions

What contrast ratio meets accessibility guidelines?

Body text needs at least 4.5:1 for WCAG AA and 7:1 for AAA. Large text (18pt or 14pt bold) needs 3:1 for AA and 4.5:1 for AAA. Non-text elements such as icons and input borders need at least 3:1 under WCAG 2.1.

Why does 4.47:1 fail when it is so close to 4.5:1?

WCAG thresholds are strict minimums and cannot be rounded. The checker shows two decimal places and rounds down, so you never see a ratio that looks like 4.5:1 but fails.

Will Smart Fix change my brand color?

It only changes the lightness of the text color; the background stays the same. The result keeps a similar hue, or becomes black or white if nothing else passes. To keep a brand color, adjust the background instead or reserve the original color for large text and decoration.

Are images uploaded for the color blindness simulation?

No. The browser reads the image and applies the color matrix on a canvas, so everything stays on your device. The filters are common approximations, useful for spotting designs that communicate information through color alone.

Browse this category: Design & Color

Suggested & Recent Tools
    ↑ ↓ Navigate ↵ Open ESC Close
    咩~
    Alpa Idle Alpa Walk 1 Alpa Walk 2 Alpa Walk 3 Alpa Walk 4 Alpa Dizzy Alpa Sleep