Skip to tool

FREE ONLINE TOOL

Contrast Ratio Checker

Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design.

2 worked examples Methodology and sources included Ads only on eligible content Reviewed April 27, 2026
Design

Contrast Ratio Checker is a free, browser-based design tool. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design.

Drop an image file here or click to upload

Supports JPG, PNG, WebP, AVIF · browser-based · No upload

What this tool does

  • WCAG 2.1 AA and AAA compliance check
  • separate results for normal text, large text, and UI components
  • supports HEX, RGB, and HSL color input
  • real-time preview with sample text
  • relative luminance values displayed

In-Depth Guide

WCAG 2.2 Success Criterion 1.4.3 (Contrast Minimum) requires a contrast ratio of at least 4.5:1 between text and its background for normal text and 3:1 for large text (defined as 18pt+ regular or 14pt+ bold). Level AAA tightens these to 7:1 and 4.5:1 respectively. The ratio is computed from each colour's relative luminance (a weighted combination of RGB values after sRGB gamma expansion per the WCAG 2.2 formula), producing a value from 1:1 (identical colours) to 21:1 (pure black on pure white). FastTool's Contrast Ratio Checker accepts two colours in hex, RGB, HSL, or named-colour form, computes the exact ratio per the W3C formula, and reports which WCAG level passes or fails for each text size category.

Why This Matters

Low contrast excludes roughly 8.5% of men with red-green colour vision deficiency, users with age-related vision loss (roughly 30% of adults 60+ per NIH data), and anyone viewing a screen in bright sunlight. The WebAIM Million 2024 study found 81% of homepages had contrast failures, making this the single most common WCAG violation and the easiest to fix. Contrast is also a legal requirement in the EU (EN 301 549), US (ADA Title III case law), UK (PSBAR 2018), and the European Accessibility Act coming into force June 2025. Checking contrast at design time is cheaper than remediation at audit time.

Real-World Case Studies

Technical Deep Dive

WCAG 2.2 defines contrast ratio as (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter colour's relative luminance and L2 the darker. Relative luminance is computed per WCAG formula: L = 0.2126 R + 0.7152 G + 0.0722 * B, where each channel is first linearised from sRGB to linear-RGB via the piecewise function c_linear = (c_srgb / 12.92) if c_srgb <= 0.03928 else ((c_srgb + 0.055) / 1.055)^2.4. The coefficients match the Rec. ITU-R BT.709 luma weights for HDTV signals. Ratios below 4.5 fail AA for normal text (3.0 for large text); below 7.0 fail AAA. The calculator also computes the upcoming APCA (Accessible Perceptual Contrast Algorithm) score which may be included in WCAG 3.0, giving designers a preview of future requirements. All math runs in the browser with IEEE 754 double precision, and output includes the exact passing/failing status for both text sizes at both AA and AAA levels.

💡 Expert Pro Tip

For borderline pairs (e.g. 4.5:1 exactly), darken slightly to create margin - future refactors, accidental CSS override, or minor colour drift can push you below the threshold without warning. Aim for 5:1 or better as a working standard. If you must use a branded colour that fails, add a dark outline, a shadow, or a darker overlay layer rather than changing the brand colour itself.

Methodology, Sources & Accessibility

Methodology

Artifacts emitted by this tool are ready to drop directly into production codebases — no post-processing required. The output targets evergreen browsers released within the last two years and degrades gracefully on older ones where the CSS spec defines a fallback. Where platforms diverge on newer features, the tool favours the broadly-supported form unless you explicitly opt into a newer-only output.

Authoritative Sources

About This Tool

Contrast Ratio Checker is a free, browser-based utility in the Design category. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design. Standard processing runs on the client — no account is required, and there is no paywall or usage cap. The implementation uses audited standard-library primitives and published specifications rather than proprietary algorithms, so the output is reproducible and transparent.

Accessibility

FastTool targets WCAG 2.2 Level AA conformance: keyboard-navigable controls, visible focus states, semantic HTML, sufficient colour contrast, and screen-reader compatibility. If you encounter an accessibility issue, please reach us via the site footer.

Need to check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design? Contrast Ratio Checker handles it right in your browser — no downloads, no accounts. Designers work across multiple tools daily, and having instant access to design utilities in the browser eliminates context-switching between heavy desktop applications. The tool bundles WCAG 2.1 AA and AAA compliance check alongside separate results for normal text, large text, and UI components and supports HEX, RGB, and HSL color input, giving you everything you need in one place. Privacy is built into the architecture: Contrast Ratio Checker runs on JavaScript in your browser for core processing. Unlike cloud-based alternatives that require remote project storage, this tool keeps standard workflows local. The layout is designed for speed: choose your design settings, hit the action button, and preview, copy, or export the result — all in a matter of seconds. You can use Contrast Ratio Checker as a quick one-off tool or integrate it into your regular workflow. Either way, the streamlined interface keeps the focus on getting results, not on navigating menus and settings. Access Contrast Ratio Checker from any device with a web browser — the layout adjusts automatically to your screen size. No app download required, and your results are identical regardless of the platform you use. Give Contrast Ratio Checker a try — it is free, fast, and available whenever you need it.

Key Features of Contrast Ratio Checker

  • Integrated WCAG 2.1 AA and AAA compliance check for a smoother workflow
  • separate results for normal text, large text, and UI components included out of the box, ready to use with no extra configuration
  • Integrated supports HEX, RGB, and HSL color input for a smoother workflow
  • Real-time processing that updates results as you type
  • relative luminance values displayed — reducing manual effort and helping you focus on what matters
  • Integrated color swap button to reverse foreground/background for a smoother workflow
  • Completely free to use with no registration, no account, and no usage limits
  • Runs in your browser for standard workflows, with no account or upload queue required
  • Responsive design that works on desktops, tablets, and mobile phones

Benefits of Contrast Ratio Checker

  • Browser-first privacy — because Contrast Ratio Checker handles standard processing with client-side JavaScript, routine work does not need a FastTool application server. This is useful for tasks where you prefer not to upload confidential or proprietary information to a third-party workspace.
  • Full-featured and completely free — every capability of Contrast Ratio Checker, including WCAG 2.1 AA and AAA compliance check, separate results for normal text, large text, and UI components, is available to every user without any cost, usage limits, or premium tiers. Unlike many competing tools that restrict advanced features behind paywalls, Contrast Ratio Checker gives you unrestricted access to everything.
  • Works on every device — the responsive design ensures Contrast Ratio Checker performs identically on desktops, laptops, tablets, and smartphones. Whether you are at your workstation or using your phone during a commute, the tool adapts to your screen and delivers the same quality results.
  • Instant results without network latency — because all processing happens locally in your browser, results appear immediately after you click the action button. There is no waiting for server responses, no progress bars, and no risk of timeout errors during heavy usage periods.

Getting Started with Contrast Ratio Checker

  1. Open Contrast Ratio Checker on FastTool — it loads instantly with no setup.
  2. Fill in the input section: choose your design settings. Use the WCAG 2.1 AA and AAA compliance check capability if you need help getting started. The interface is self-explanatory, so you can begin without reading a manual.
  3. Configure the available settings. Contrast Ratio Checker provides separate results for normal text, large text, and UI components along with supports HEX, RGB, and HSL color input to give you precise control over the output.
  4. Hit the main button to run the operation. Since Contrast Ratio Checker works in your browser, results show without delay.
  5. Check the output in the result panel. If something does not look right, you can adjust your input and reprocess instantly without any delays.
  6. Export your result by clicking the copy button or using your browser's built-in copy functionality. The tool makes it easy to preview, copy, or export the result with minimal effort.
  7. Run the tool again with new data whenever you need to. Contrast Ratio Checker has no usage caps, so you can process as many inputs as your workflow requires.

Tips from Power Users

  • Use Contrast Ratio Checker as a starting point, then fine-tune in your main design application. The speed of browser-based tools makes the exploration phase much faster.
  • Build a personal library of frequently used values. Many designers keep a plain text file of their go-to colors, sizes, and ratios alongside tools like this.
  • Create a checklist of standard values you need for each project and use this tool to generate them all in one session. Batch processing saves significant time.

Common Mistakes to Avoid

  • Ignoring dark mode in your workflow. Modern users expect both light and dark themes — test every generated value in both contexts before declaring a design done.
  • Forgetting that designs look different across devices. A color or spacing choice that works on a calibrated monitor can fail on an OLED phone or a cheap laptop panel — sample across real hardware.
  • Skipping motion accessibility. `prefers-reduced-motion` affects an estimated 35% of users at some point — always provide a non-animated fallback for any animated design.
  • Choosing colors by eye alone. Always check your generated palette against WCAG 2.2 contrast requirements (4.5:1 for body, 3:1 for large text) before shipping — accessibility regressions hurt both users and SEO.
  • Hard-coding design tokens that should be CSS variables. Pasting raw hex values into dozens of components locks you out of easy theming later — centralize them in a token file from day one.

Quick Examples

Checking body text contrast
Input
Foreground: #1f2937 Background: #ffffff Text size: normal
Output
Contrast ratio: 14.68:1 WCAG AA normal text: pass WCAG AAA normal text: pass

Dark gray text on white easily passes WCAG contrast thresholds for readable body copy.

Testing muted text on a tinted card
Input
Foreground: #94a3b8 Background: #f8fafc Text size: normal
Output
Contrast ratio: 2.35:1 WCAG AA normal text: fail Recommendation: darken the foreground

Muted colors often look polished but can fail accessibility checks unless the contrast is measured.

Contrast Ratio Checker vs Alternatives

FeatureBrowser-Based (FastTool)Design SuiteMobile Design App
CostFree, no limits$$$ license or subscriptionFree with limitations
PrivacyBrowser-local standard processingLocal processingMay upload data
InstallationNone — runs in browserLarge download + installBrowser extension install
SpeedInstant for quick tasksPowerful for complex workLightweight but limited
Cross-PlatformWorks everywhereOS-specific versionsBrowser-dependent
UpdatesAlways latest versionManual updates neededAuto-updates

Situations Where Contrast Ratio Checker Is Not the Right Fit

No tool is perfect for every scenario. Here are situations where a different approach will serve you better:

  • When working with advanced typography. Pro-level font features (OpenType ligatures, variable axes, language-specific forms) need a dedicated design application.
  • When preparing for print production. Color calibration, bleed, crop marks, and spot colors are print-shop essentials that browser tools typically do not surface.
  • When producing final assets for a major brand campaign. Contrast Ratio Checker handles quick iterations well, but the precision controls of Figma, Adobe Illustrator, or Affinity Designer remain essential for production-grade output.

Deep Dive: Contrast Ratio Checker

Contrast Ratio Checker supports the visual design process by providing instant feedback on design decisions. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design. Professional designers often need to rapidly test variations and communicate precise specifications to developers. Browser-based design tools bridge the gap between concept and implementation by generating production-ready values that can be copied directly into CSS or design files.

The task that Contrast Ratio Checker handles — check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design — is something that designers and creatives encounter regularly in their work. Before tools like this existed, the same task required either specialized desktop software, manual effort, or custom scripts written from scratch. Browser-based tools have changed this landscape by providing instant access to focused functionality without the overhead of software installation, license management, or environment configuration.

Features like WCAG 2.1 AA and AAA compliance check, separate results for normal text, large text, and UI components demonstrate that browser-based tools have matured to the point where they can handle tasks that previously required dedicated applications. As web technologies continue to advance — with improvements in JavaScript performance, Web Workers for parallel processing, and modern APIs like the Clipboard API and File System Access API — the gap between browser tools and native applications continues to narrow. Contrast Ratio Checker represents this trend: professional-grade functionality delivered through the most universal platform available.

How Contrast Ratio Checker Works

Built with CSS and JavaScript, Contrast Ratio Checker processes design parameters using mathematically precise algorithms with capabilities including WCAG 2.1 AA and AAA compliance check, separate results for normal text, large text, and UI components, supports HEX, RGB, and HSL color input. The tool uses the browser's built-in color parsing for accuracy and generates output compatible with all modern CSS specifications. Visual previews are rendered using the same engine that displays websites, so what you see matches what your users will see. All calculations happen instantly in your browser with no server roundtrip.

Worth Knowing

The average person encounters between 4,000 and 10,000 design elements (ads, logos, icons, UI components) per day.

White space in design is not empty space — studies show that increasing white space around text improves reading comprehension by up to 20%.

Essential Terms

Contrast Ratio
The ratio of luminance between the lightest and darkest colors in a design element. WCAG accessibility guidelines require a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text.
Typography Scale
A set of harmoniously sized text values used in a design system. Common scales are based on mathematical ratios like the golden ratio (1.618) or the perfect fourth (1.333).
Responsive Design
A web design approach that makes pages render well on a variety of screen sizes. Responsive designs use flexible grids, flexible images, and CSS media queries to adapt to the viewing environment.
Golden Ratio
An irrational number approximately equal to 1.618, found throughout nature and used in art and design for aesthetically pleasing proportions.

Got Questions?

What is WCAG contrast ratio?

WCAG contrast ratio is a key concept in design that Contrast Ratio Checker helps you work with. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design. Understanding WCAG contrast ratio is important because it affects how you approach this type of task. Contrast Ratio Checker on FastTool lets you explore and apply WCAG contrast ratio directly in your browser, with features like WCAG 2.1 AA and AAA compliance check, separate results for normal text, large text, and UI components, supports HEX, RGB, and HSL color input — no sign-up or download required.

What contrast ratio passes WCAG AA?

As a browser-based design tool, Contrast Ratio Checker addresses this by letting you choose your design settings and get results instantly. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design. It is free, private, and works on any device with a modern web browser. Tool input is handled locally where browser APIs support it, and FastTool does not require uploads for standard use.

What is the difference between WCAG AA and AAA?

Difference between WCAG AA and AAA is a key concept in design that Contrast Ratio Checker helps you work with. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design. Understanding difference between WCAG AA and AAA is important because it affects how you approach this type of task. Contrast Ratio Checker on FastTool lets you explore and apply difference between WCAG AA and AAA directly in your browser, with features like WCAG 2.1 AA and AAA compliance check, separate results for normal text, large text, and UI components, supports HEX, RGB, and HSL color input — no sign-up or download required.

What is Contrast Ratio Checker and who is it for?

Think of Contrast Ratio Checker as your go-to design assistant in the browser. Check the WCAG 2.1 color contrast ratio between foreground and background colors. Instantly see if your text passes AA or AAA accessibility standards for normal text, large text, and UI components. Essential for inclusive web design. It includes WCAG 2.1 AA and AAA compliance check, separate results for normal text, large text, and UI components, supports HEX, RGB, and HSL color input. It serves designers and creatives who want to speed up your design process without installing software or creating accounts. The entire experience is free, private, and instant.

Is my data safe when I use Contrast Ratio Checker?

Yes. Contrast Ratio Checker runs primarily in your browser, so standard inputs stay on your device. FastTool does not intentionally upload or log tool input for this workflow. This client-side approach is ideal for design work that involves private or confidential information. Even if you are on a corporate network with strict data policies, using Contrast Ratio Checker does not send tool input to a FastTool application server.

Can I use Contrast Ratio Checker on my phone or tablet?

You can use Contrast Ratio Checker on any device — iPhone, Android, iPad, or desktop computer. The interface automatically adjusts to your screen dimensions, and processing performance is identical across platforms because everything runs in your browser's JavaScript engine. No app download is needed — just open the page in your mobile browser and start using the tool immediately. Your mobile browser's built-in features like copy, paste, and share all work seamlessly with the tool's output.

Does Contrast Ratio Checker work offline?

Once the page finishes loading, Contrast Ratio Checker works without an internet connection. All computation runs locally in your browser using JavaScript, so there are no server requests during normal operation. Feel free to disconnect after the initial load — your workflow will not be affected. Bookmark the page so you can reach it quickly the next time you are online, and the tool will be ready to use again as soon as the page loads.

What makes Contrast Ratio Checker stand out from similar tools?

Most online design tools either charge money for full access or require account-based server processing, which raises both cost and data-handling concerns. Contrast Ratio Checker avoids those tradeoffs for standard workflows: it is free, browser-first, and delivers instant results. On top of that, it supports 21 languages with full right-to-left layout support, works offline after loading, and runs on any device without requiring an app download or account creation.

Who Benefits from Contrast Ratio Checker

Prototyping

During rapid prototyping, Contrast Ratio Checker lets you iterate on design decisions faster by giving you instant feedback in the browser. This is a scenario where having a reliable, always-available tool in your browser saves meaningful time compared to launching a desktop application or searching for an alternative.

Client Presentations

Prepare design assets for client presentations using Contrast Ratio Checker — generate values on the spot during meetings. The browser-based approach means you can start immediately without any installation, making it practical for time-sensitive situations where setting up dedicated software is not an option.

Design System Maintenance

Keep your design system consistent by using Contrast Ratio Checker to verify and generate design tokens across projects. The browser-based approach means you can start immediately without any installation, making it practical for time-sensitive situations where setting up dedicated software is not an option.

Freelance Design Work

Freelance designers can use Contrast Ratio Checker as a lightweight alternative to heavy desktop apps for quick design tasks. The instant results and copy-to-clipboard functionality make this workflow fast and efficient, letting you move from task to finished output in a matter of seconds.

All Design Tools (40)

BROWSE BY CATEGORY

Explore all tool categories

Find the right tool for your task across 17 specialized categories.

References & Further Reading

Authoritative sources and official specifications that back the information on this page.

  1. WCAG 2.2 - Contrast (Minimum) — W3C WAI

    Authoritative accessibility contrast criterion

  2. Understanding WCAG contrast - W3C — W3C WAI

    Explanatory guide to 4.5:1 and 7:1 ratios

  3. Relative luminance - Wikipedia — Wikipedia

    Math behind WCAG contrast formula