Layout Readability

Free Online Color Contrast Checker

Check if your text and background colors meet WCAG AA and AAA for text and UI components, and get the closest passing colors in one click. 100% free, browser-based, with no sign-up and no software installation required.

Color Pair
Quick presets

Accepts HEX (3, 4, 6 or 8 digits), rgb(), hsl() and CSS color names. Transparent colors are blended over the background, as a browser would show them.

Contrast Results
Enter a valid color above to update the results.
Large text: 24px regular
Large text: 18.66px bold
Normal text at 16px. Good color contrast keeps text readable for everyone, including people with low vision and anyone reading in bright sunlight.
Small text at 13px needs the same 4.5:1 ratio, but is harder to read in practice.
Button Input field Hyperlink text
—
Contrast Ratio
1:1 (no contrast)21:1 (black on white)
Closest Passing Colors
Color Vision Simulation
How the pair looks to people with the three most common types of color blindness. Contrast ratio itself is based on lightness, so it changes little, but colors that look different to you may look alike to them.

How to Check Color Contrast for WCAG Compliance – 3 Steps

1

Pick Your Colors

Type HEX, rgb(), hsl() or a color name for text and background, use the color picker, or try a preset.

2

Check WCAG Results

The ratio updates as you type. Five badges show pass or fail for AA and AAA text and for UI components, with a live preview.

3

Apply a Fix if Needed

Click a suggested color to apply the smallest change that reaches AA or AAA. Your hue stays the same.

WCAG Contrast Requirements

LevelElementMin. RatioDescription
AANormal text (under 24px, or under 18.66px bold)4.5 : 1Minimum for standard body text
AALarge text (24px+, or 18.66px+ bold)3 : 1Large headings and bold text
AAUI Components & Graphics3 : 1Input borders, icons, focus rings, chart lines (WCAG 1.4.11)
AAANormal text7 : 1Enhanced accessibility standard
AAALarge text4.5 : 1Enhanced for large text

Frequently Asked Questions (FAQ)

What is WCAG?
WCAG (Web Content Accessibility Guidelines) is the W3C standard for making web content accessible to people with disabilities. Its contrast rules (success criteria 1.4.3, 1.4.6 and 1.4.11) set minimum ratios between text or UI parts and their background.
What's the difference between AA and AAA?
AA is the level most accessibility laws and policies refer to, for example the European EN 301 549 standard and the US Section 508 rules. AAA is a stricter, optional level: 7:1 for normal text and 4.5:1 for large text. It gives the best readability but is hard to meet across a whole site.
What counts as large text?
WCAG defines large text as at least 18 point (24 CSS pixels) regular, or at least 14 point (about 18.66 CSS pixels) bold. Large text only needs 3:1 for AA and 4.5:1 for AAA. The preview above shows both sizes.
Why does 4.497 not pass 4.5:1?
WCAG thresholds are exact minimums, so a ratio of 4.497 fails AA even though it rounds to 4.5. This checker cuts the ratio to two decimals instead of rounding it up, so 4.497 shows as 4.49:1 and fails, just as it would in an audit.
How is the contrast ratio calculated?
Contrast ratio = (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 of the darker one. Relative luminance comes from the sRGB values: each channel is converted to linear light and weighted 0.2126 red, 0.7152 green and 0.0722 blue. Everything runs in your browser.
How are transparent colors handled?
A transparent text color is blended over the background, and a transparent background is blended over white, the same way a browser paints them on a white page. The checker shows the blended HEX it used. If your real background is not white, enter the actual solid color.
How do the suggested colors work?
The tool keeps the hue and saturation of your color and changes only its lightness, step by step in both directions, until the pair reaches 4.5:1 (AA) or 7:1 (AAA). It shows the smallest change for the text color and for the background, so your design changes as little as possible.
Do buttons and icons need to meet contrast requirements?
Yes. WCAG 1.4.11 (Non-text Contrast, level AA) requires 3:1 for the visual parts needed to identify UI components and their states, such as input borders, focus rings, icons and meaningful chart lines. The text inside a button still needs 4.5:1.
Does this apply to logos, decorative images or disabled buttons?
No. Logos and brand names, purely decorative images and inactive (disabled) components are exempt from WCAG contrast requirements. Text inside images still counts.
Why show a color-blindness simulation?
Contrast ratio depends only on lightness, so a pair can pass and still be hard to tell apart for someone with color blindness, for example a red error message next to green success text. The simulation shows the pair as people with protanopia, deuteranopia and tritanopia see it, so you can check that meaning is not carried by color alone.
What contrast is recommended for dark mode?
The same WCAG ratios apply in dark mode: 4.5:1 for normal text and 3:1 for large text and UI parts. Very high contrast, such as pure white on pure black, can cause glare for some readers, so many designers use off-white text on a dark gray background that still passes.
What is the highest possible contrast ratio?
21:1, which is pure black (#000000) on pure white (#ffffff) or the reverse. The lowest is 1:1, two identical colors.
Is this color contrast checker free? Do I need to sign up?
Yes, it is free with no sign-up and nothing to install. All calculations run in your browser, and no color data is sent to a server. Your last pair is remembered only in your own browser.

Free Online Color Contrast Checker – WCAG AA/AAA Compliance, Live Preview, Smart Fix Suggestions

Ensure Flawless Readability with WCAG Ratio Calculators

Drafting rich user experiences for modern mobile apps and web platforms requires careful control over text visibility factors. Our free online color contrast checker evaluates your layout palette strings against strict global specifications. It compares the relative luminance of the two colors, exactly as WCAG defines it, and tells you whether your text, buttons and icons are readable for visitors with low vision.

Dynamic Real-Time Adjustments and Smart Fix Suggestions

If your investigated palette pairs return low readability scores, you don't have to guess how to resolve the problem. This color accessibility tool searches for the closest passing color: it keeps the hue of your text or background and changes only the lightness, as little as needed to reach AA (4.5:1) or AAA (7:1). One click applies it.

Completely Secure Offline Processing Sandbox — No Sign-Up

We respect the confidentiality of your ongoing system production styles, secure wireframe layouts, and corporate design assets. All contrast calculations run 100% in your browser. No colors or other data are sent to a server. The tool is free, with no sign-up and nothing to install.

What Is a Color Contrast Checker?

A color contrast checker is a tool that measures the visual difference between foreground and background colors. It calculates the contrast ratio and determines whether text remains readable for users with different levels of vision and screen conditions.

Designers, developers, UX specialists, and accessibility auditors use a WCAG contrast checker to verify that websites, applications, dashboards, and documents meet accessibility standards.

Instead of guessing whether a color combination is readable, you can use a contrast ratio calculator to obtain an accurate score and instantly identify potential accessibility issues.

Understanding WCAG AA and AAA Requirements

The Web Content Accessibility Guidelines (WCAG) define minimum contrast requirements to ensure digital content can be read by people with low vision, color blindness, or age-related visual impairments.

Compliance Level Normal Text Large Text
WCAG AA 4.5:1 3:1
WCAG AAA 7:1 4.5:1

A reliable WCAG AA checker and WCAG AAA checker helps teams verify compliance before launching websites, mobile apps, software interfaces, or digital publications.

Why Color Accessibility Matters

Poor color contrast can make content difficult or impossible to read. Users may struggle with navigation menus, buttons, form fields, error messages, charts, and important instructions.

A proper color accessibility tool helps improve:

Readability Text remains clear across different devices and displays.
User Experience Visitors can interact with content more comfortably.
Legal Compliance Supports accessibility requirements in many countries.
SEO Signals Accessible websites often provide better usability overall.

Accessibility improvements benefit all users, not only people with disabilities.

Browser-Based Accessibility Testing

ToolTiny performs all calculations directly in your browser. Your color values are processed locally and never uploaded to external servers.

This makes the tool suitable for designers, agencies, software developers, and organizations performing website accessibility testing on confidential projects.

Whether you need a quick color contrast checker, WCAG compliance checker, contrast ratio calculator, or accessibility testing tool, you can evaluate color combinations instantly without registration or software installation.

Best Color Contrast Practices for Modern UI Design

Strong contrast is not only an accessibility requirement but also a core usability principle. Users should immediately distinguish buttons, links, navigation menus, and form fields regardless of device type or ambient lighting conditions.

When designing user interfaces, avoid relying solely on color to communicate meaning. Pair color differences with icons, labels, borders, or typography changes to improve accessibility for users with color vision deficiencies.

A professional color contrast checker helps designers validate entire interface systems before launch and reduces the risk of accessibility issues appearing in production environments.

Color Contrast and Users with Visual Impairments

Millions of people worldwide experience low vision, color blindness, cataracts, or age-related visual limitations. Poor color combinations can make important content difficult to read and reduce overall usability.

WCAG contrast requirements were created to ensure digital content remains readable for the widest possible audience. Meeting AA or AAA standards improves accessibility while also enhancing readability for all users.

By testing foreground and background combinations with a WCAG color contrast checker, organizations can build more inclusive websites, applications, and digital services.

Related Design & Dev Tools

Watch: How to Check Color Contrast for WCAG AA and AAA

Open the ToolTiny Color Contrast Checker, try the presets, read the 21.00:1 result, pick a red text color and a cream background, and see the closest passing colors for 3.45:1.

How to Check Color Contrast for WCAG AA and AAA (Free Online Checker)
Check text and background contrast against WCAG AA and AAA for free. Pick colors, read the ratio and get the closest passing colors. Step by step…
Read the Guide

Community Comments

500 left
500 characters remaining
Loading comments...