✓ Free WCAG Accessibility Tool

Color Contrast Checker

Check text and background color contrast ratios for WCAG AA and AAA compliance. Test normal text, large text, and UI components instantly. See a live website mockup to understand exactly how your colors look in real designs. Already picked a color from a photo? Use the Image Color Picker and paste it straight in here.

Foreground (Text) Color
Near Black
Background Color
Off White
15.94:1
Contrast Ratio
WCAG AA
✓ Pass
Normal Text
WCAG AA
✓ Pass
Large Text
WCAG AAA
✓ Pass
Normal Text
WCAG AAA
✓ Pass
Large Text
WCAG AA
✓ Pass
UI Components
Live Preview — See How Your Colors Look
yourwebsite.com
YourBrand

Design with Accessible Colors

Great design starts with readable, accessible color choices. Your users deserve interfaces that work for everyone.

Get Started → Learn More

Accessibility

Build interfaces usable by everyone, including users with low vision.

Performance

Fast, efficient interfaces that load quickly and respond instantly.

Aesthetics

Beautiful designs that communicate your brand and delight users.

ui-component.pro
User Profile

Manage your account settings, update your profile details, and configure your notification preferences all in one place.

Edit Profile →
36px — Display / Heading 1
The quick brown fox
24px — Heading 2 (Large Text Threshold)
The quick brown fox jumps over the lazy dog
18px — Subheading (Bold Large Text)
The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.
16px — Body Text
The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs. How vexingly quick daft zebras jump!
13px — Caption / Small Text
The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs. How vexingly quick daft zebras jump! The five boxing wizards jump quickly.
Accessible Alternatives

WCAG Contrast Requirements

LevelNormal TextLarge TextUI Components
WCAG AA4.5 : 13.0 : 13.0 : 1
WCAG AAA7.0 : 14.5 : 1
FailBelow 4.5 : 1Below 3.0 : 1Below 3.0 : 1

Large text is 18pt (24px)+ regular or 14pt (18.67px)+ bold. These have lower requirements because larger text is easier to read at reduced contrast.

Frequently Asked Questions

What is color contrast ratio?
Contrast ratio measures how distinct two colors appear against each other. A ratio of 1:1 means identical colors; 21:1 is the maximum (black on white). The higher the ratio, the more readable the text.
What is WCAG and why does it matter?
WCAG (Web Content Accessibility Guidelines) defines how to make web content accessible. Many countries require WCAG AA compliance by law, including the ADA in the US, EN 301 549 in Europe, and AODA in Canada.
What is the difference between WCAG AA and AAA?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text. WCAG AAA requires 7:1 for normal text and 4.5:1 for large text. Most websites target AA as the legal standard. AAA is recommended for healthcare, government, and accessibility-first applications.
What counts as large text?
Large text is 18pt (24px) or larger at regular weight, or 14pt (18.67px) or larger at bold weight. Larger letterforms are easier to read so they get a lower contrast threshold.
How do I fix a failing contrast ratio?
Darken your text color or lighten your background. Click any suggested alternative shown below the tool. These are pre-calculated to pass WCAG AA while staying as close as possible to your original colors.
Does contrast apply to icons and UI elements?
Yes. WCAG 1.4.11 requires 3:1 for UI components like icons, buttons, and form fields. The UI Components badge in this tool checks that threshold specifically.
Does my website legally need to pass WCAG AA?
In many countries, yes. The ADA in the United States, the Accessibility for Ontarians with Disabilities Act in Canada, the European Accessibility Act, and Section 508 for US federal agencies all reference WCAG AA as the standard. Failing to meet it can expose businesses to legal liability. Even where it is not legally mandated, meeting WCAG AA is considered best practice.
What contrast ratio do I need for buttons?
Button text needs 4.5:1 against the button background color for WCAG AA normal text. The button border or outline against its surrounding background needs 3:1 for UI components under WCAG 1.4.11. This tool checks all these thresholds at once.
How do I check color contrast in Figma?
Figma has a built-in contrast checker in the accessibility panel when you select a text layer. For a more detailed check with live mockups and accessible alternative suggestions, copy your HEX codes from Figma and paste them into this tool instead.
What is the minimum font size for WCAG compliance?
WCAG does not specify a minimum font size, but it does define size thresholds for contrast requirements. Normal text (below 18pt regular or 14pt bold) needs 4.5:1 contrast. Large text (18pt+ regular or 14pt+ bold) only needs 3:1. Larger text is easier to read at lower contrast, which is why it gets a more lenient requirement.

About This Tool

Free Color Contrast Checker for WCAG AA and AAA Compliance

This free color contrast checker tests any text color and background color combination against WCAG 2.1 standards instantly. Enter your colors in HEX or use the color picker, then see your contrast ratio, all five WCAG badges, and a live website mockup showing how your colors look in real context.

Unlike generic contrast checkers that just show you a number, this tool includes live previews across three design contexts: website layout, UI card, and text sizes. You can see not just the ratio but what it actually means for your design. When colors fail, the tool also suggests the closest accessible alternatives so you can fix issues without completely abandoning your color choices. Need to find a color from an image first? Use our Image Color Picker to extract any color from a photo, then paste the HEX code here.

Text Color and Background Color Contrast Explained

The contrast ratio between your text color and background color is the most important accessibility metric in web design. A ratio of 1:1 means the colors are identical and completely unreadable. The maximum possible ratio is 21:1, which is pure black on pure white. WCAG defines minimum ratios based on the size and weight of the text.

For most body text at 16px, you need at least 4.5:1 to pass WCAG AA. For large headings at 24px or larger, the requirement drops to 3:1 because larger text is easier to read at lower contrast. For icons, buttons, and UI components, the minimum is also 3:1. This tool checks all five of these thresholds simultaneously every time you enter a color pair.

WCAG AA vs AAA Compliance

WCAG AA: The Legal Standard

Requires 4.5:1 for normal text and 3:1 for large text and UI components. WCAG AA compliance is required by the Americans with Disabilities Act (ADA) in the United States, Section 508 for federal agencies, the Accessibility for Ontarians with Disabilities Act (AODA) in Canada, and EN 301 549 across the European Union. Most businesses targeting these markets should meet AA as a baseline minimum.

WCAG AAA: Enhanced Accessibility

Requires 7:1 for normal text and 4.5:1 for large text. AAA compliance is recommended for healthcare, government, financial services, and any application where the widest possible audience must be served, including users with low vision or color vision deficiencies. AAA is not always achievable for every color combination in a design system, but it is worth targeting where possible.

Who Uses a Color Contrast Checker?

Web designers use contrast checkers before finalizing color choices and handing off designs to developers. Frontend developers verify CSS color combinations meet accessibility requirements during implementation. Brand designers ensure brand colors are accessible when applied in digital contexts, since a brand color that looks great in print may fail contrast requirements on screen. Accessibility auditors and QA teams run contrast checks as part of pre-launch compliance testing. Product managers use contrast checking as a gate in the design review process to catch accessibility issues before they reach production. If you need to build a full accessible color palette from scratch, our Color Palette Generator can help you create harmonious color schemes to test here.

Use the Color Name Finder to identify the name of any color from its HEX or RGB code — useful when you need to communicate a color to a client or paint store.

More Free Color Tools