OnlineFreeTools.org
  • Home
  • Image editing tools
    • Add Text Watermark to Photo — Local Browser Tool
    • Extract Colors from Image — Palette & Click Pick
    • Flip Image — Mirror Horizontally or Vertically
    • Add Border to Image — Color & Width Online
    • Image Compressor — Resize, Quality & Target Size Local
    • Crop & Resize Image — Local Aspect Presets
    • Photo EXIF Viewer & Remover — GPS, Camera & Local Strip
    • Image Format Converter — PNG JPEG WebP AVIF BMP GIF ICO SVG
    • Convert Image to Grayscale — Black & White Online
    • Merge Images — Combine Photos into One Collage
    • Image Optimizer — WebP, AVIF & MozJPEG Local
    • Overlay Images — Put a Logo on a Photo
    • Image to Base64 Converter — Encode & Decode Locally
    • Images to GIF — Make an Animated GIF Locally
    • Images to PDF — Combine Photos into One File
    • Images to PowerPoint — Photos to PPTX Slides
    • Images to Word — Build a DOCX from Photos
  • Design tools
    • Generate Brand Color Scale — 50–950 Palette & CSS Tokens
    • Brand Style Guide — Generate a Modular Draft You Can Edit
    • Smart Website Color Scheme — Semantic CSS Tokens
    • WCAG Contrast Checker — AA/AAA Ratio Online
  • Developer tools
    • Add WWW to DNS — A/CNAME, Apex Rules & Provider Guides
    • CSV ↔ JSON Converter — Types, Delimiters & Local
    • HTML Entity Encoder & Decoder — Escape, Unescape & Local
    • IndexNow — Bing URL Submit, Key Check & Status Codes
    • What Is My IP Address — See Your Public IP (IPv4 or IPv6)
    • JSON Schema Validator — Draft-07 Paths & Local
    • Markdown ↔ HTML Converter — Sanitize & Preview
    • Compare Two Texts Online — Text Diff Checker
    • Check HTTP Response Headers Online
    • YAML ↔ JSON Converter — Types, Multi-doc & Local
  • Calculators
    • BMI Calculator — How to Calculate Body Mass Index
    • Gradient Calculator — Multivariable ∇f (Partial Derivatives)
    • How to Calculate Marginal Revenue — MR Calculator (ΔTR / ΔQ)
    • Percentage Change Calculator — From Old Value to New
    • ROI Calculator — How to Calculate Return on Investment
    • Square Feet to Square Meters — Area Converter for Homes & Renovation
  • English
  • 中文
  • Español
  • العربية
  • Português
  • Bahasa Indonesia
  • Français
  • 日本語
  • Русский
  • Deutsch

Tools

Add Text Watermark to Photo — Local Browser ToolAdd WWW to DNS — A/CNAME, Apex Rules & Provider GuidesGenerate Brand Color Scale — 50–950 Palette & CSS TokensBrand Style Guide — Generate a Modular Draft You Can EditExtract Colors from Image — Palette & Click PickCSV ↔ JSON Converter — Types, Delimiters & LocalFlip Image — Mirror Horizontally or VerticallyBMI Calculator — How to Calculate Body Mass IndexGradient Calculator — Multivariable ∇f (Partial Derivatives)How to Calculate Marginal Revenue — MR Calculator (ΔTR / ΔQ)Percentage Change Calculator — From Old Value to NewROI Calculator — How to Calculate Return on InvestmentHTML Entity Encoder & Decoder — Escape, Unescape & LocalAdd Border to Image — Color & Width OnlineImage Compressor — Resize, Quality & Target Size LocalCrop & Resize Image — Local Aspect PresetsPhoto EXIF Viewer & Remover — GPS, Camera & Local StripImage Format Converter — PNG JPEG WebP AVIF BMP GIF ICO SVGConvert Image to Grayscale — Black & White OnlineMerge Images — Combine Photos into One CollageImage Optimizer — WebP, AVIF & MozJPEG LocalOverlay Images — Put a Logo on a PhotoImage to Base64 Converter — Encode & Decode LocallyImages to GIF — Make an Animated GIF LocallyImages to PDF — Combine Photos into One FileImages to PowerPoint — Photos to PPTX SlidesImages to Word — Build a DOCX from PhotosIndexNow — Bing URL Submit, Key Check & Status CodesWhat Is My IP Address — See Your Public IP (IPv4 or IPv6)JSON Schema Validator — Draft-07 Paths & LocalMarkdown ↔ HTML Converter — Sanitize & PreviewSmart Website Color Scheme — Semantic CSS TokensSquare Feet to Square Meters — Area Converter for Homes & RenovationCompare Two Texts Online — Text Diff CheckerWCAG Contrast Checker — AA/AAA Ratio OnlineCheck HTTP Response Headers OnlineYAML ↔ JSON Converter — Types, Multi-doc & Local

WCAG Contrast Checker — AA/AAA Ratio Online

Pick foreground and background colors to see the WCAG contrast ratio and AA/AAA pass/fail for normal and large text. Steps: choose or type HEX, click Check, read the ratio and badges, swap or try suggestions. Example: #767676 on #ffffff ≈ 4.54:1 — passes AA for normal text, fails AAA for normal text. Colors stay in your browser.

Large text sample
Normal text sample
Contrast ratio
—

      

How it works

Pick a foreground and background with the color picker or type a HEX code. The page converts sRGB to relative luminance, computes the contrast ratio, and shows Pass/Fail badges for AA and AAA (normal and large text). Swap to reverse the pair, copy a text summary, or apply a suggested tweak when contrast is too low.

Rules you should expect

WCAG contrast is based on relative luminance — not hue alone. Use this checklist when a ratio looks surprising.

  • Relative luminance L comes from sRGB channels after the WCAG linearization curve. Contrast ratio = (Llighter + 0.05) / (Ldarker + 0.05).
  • Thresholds: AA normal text 4.5:1, AA large text 3:1, AAA normal text 7:1, AAA large text 4.5:1. One ratio drives all four badges on this page.
  • Only opaque sRGB HEX (#RGB or #RRGGBB) is supported here. Invalid HEX shows an error; identical foreground and background give 1:1 and fail every level.
  • Privacy: color values are processed locally in this tab — nothing is sent to a server.

Example

Load the sample: foreground #767676 on background #ffffff gives about 4.54:1. AA normal text passes (needs 4.5:1), AA large text passes (needs 3:1), AAA normal text fails (needs 7:1), AAA large text passes (needs 4.5:1). Swap colors to see how the ratio flips.

Good fits

  • UI design: verify body copy and labels against a brand background before handoff.
  • Buttons and chips: check white-on-color or color-on-white pairs for AA normal or large text.
  • Dark mode: swap light/dark surfaces and confirm secondary text still clears 4.5:1 or 3:1 for large type.

Frequently asked questions

What are the WCAG contrast thresholds?

AA normal text needs at least 4.5:1. AA large text (18 pt regular or 14 pt bold and up) needs 3:1. AAA normal text needs 7:1; AAA large text needs 4.5:1. This page shows all four badges from one ratio.

What counts as large text?

Large text is easier to read at lower contrast. WCAG treats text as large when it is at least 18 pt (24 px) regular, or 14 pt (18.66 px) bold. The preview shows both a large and a normal line so you can judge both thresholds.

Do my colors leave the browser?

No. Contrast math runs entirely in your browser. Check the Network panel — your color values are not uploaded.

How should I use the color suggestions?

When the pair falls below 4.5:1, the tool may suggest a darker or lighter foreground or background that reaches AA for normal text. Suggestions mix toward black or white on the side that failed — starting points, not brand-perfect palettes.

How does this relate to brand color tokens?

Use this page to validate any foreground/background pair. For a full brand palette with semantic tokens, open the brand color token pack tool; you can also sample colors from a photo with the color-from-image tool first.

Related tools

  • Smart Website Color Scheme — Semantic CSS Tokens
  • Generate Brand Color Scale — 50–950 Palette & CSS Tokens

Share this tool

Share on social networks, copy the page link, or use your device share sheet.

XFacebookLinkedInRedditWhatsAppTelegram

https://onlinefreetools.org/tools/wcag-contrast-checker

Questions or feedback

Something unclear, broken, or missing? Draft a message below — we read every note about these tools.

Email: dailyonetools@outlook.com

References

  • WCAG 2.2 Understanding — Contrast (Minimum)
  • WCAG 2.2 Recommendation
  • WCAG 2.2 — relative luminance
OnlineFreeTools.org · Learning project · Iterating
About·Dev Logs·Privacy·Terms·Contact