Free tools

Free Color Contrast Checker

Test color combinations for accessibility compliance and preview text readability in real time.

Copy-paste outputs

The autonomous growth engine for your business.

Brand Armor AI finds where your customers are, decides what to create, distributes it across the channels that matter, and learns from every result.

Discover customer opportunitiesPlan campaignsCreate posts, images, and videosPublish across channelsMeasure what worksAI search visibilityDiscover customer opportunitiesPlan campaignsCreate posts, images, and videosPublish across channelsMeasure what worksAI search visibility
Social publishingBlog and CMS deliveryEmail outreachAutopilot workflowsBrand IdentityWeekly reportsSocial publishingBlog and CMS deliveryEmail outreachAutopilot workflowsBrand IdentityWeekly reports
Shopping IntelligenceCompetitor AnalysisBrand IdentityShopping IntelligenceCompetitor AnalysisBrand Identity

Tool 01

Color Contrast Checker

Calculate contrast ratio and WCAG AA/AAA pass-fail results for accessibility-safe UI colors.

Color Contrast Checker
Check contrast ratio and WCAG AA/AAA accessibility compliance.
Brand Armor AI contrast preview

Contrast ratio

18.88:1

WCAG AA (normal text)

Pass

WCAG AA (large text)

Pass

WCAG AAA (normal text)

Pass

WCAG AAA (large text)

Pass

How it works

Color Contrast Checker: methodology and worked example

How this tool computes its result

Implements the WCAG 2.x relative luminance formula directly: each hex color is split into R/G/B channels, linearized with the piecewise sRGB function (channel/12.92 below 0.03928, otherwise ((channel+0.055)/1.055)^2.4), then combined as 0.2126R + 0.7152G + 0.0722B. Contrast ratio is (L_lighter + 0.05) / (L_darker + 0.05). Hex input is normalized first — 3-digit shorthand is expanded to 6 digits, and anything not matching 6 hex characters (with or without a leading #) is rejected. The result is checked against four fixed WCAG thresholds: AA normal text 4.5:1, AA large text 3:1, AAA normal text 7:1, AAA large text 4.5:1.

Worked example

With the tool's defaults — foreground #111111, background #ffffff — the linearized luminance of #111111 works out to about 0.0076 and pure white to 1.0, giving a contrast ratio of (1.0 + 0.05) / (0.0076 + 0.05) ≈ 18.2:1. That clears all four thresholds (4.5, 3, 7, 4.5), so every WCAG band shows "Pass."

When not to use this tool

It checks exactly one foreground/background pair typed in as solid hex colors — it doesn't crawl a live page to find every text/background combination, doesn't account for gradients or images behind text, and has no notion of alpha transparency in the luminance math, so it's a spot-check, not a full accessibility scan.

Common mistakes

  • - Entering a CSS color name (e.g. "black") or an rgb()/hsl() string instead of hex — the normalizer only accepts 3- or 6-digit hex values with or without a leading #; anything else returns an empty string and the tool shows "Enter valid hex colors" rather than attempting to parse it.
  • - Reading the "Pass" badges without knowing your actual font size — the tool computes all four thresholds at once but has no font-size input, so you have to independently know whether your text qualifies as "large" (roughly 18pt+/14pt bold+) to pick the relevant AA/AAA column.
  • - Checking colors intended to be used with partial opacity — the formula assumes fully opaque colors; a semi-transparent overlay's real on-screen contrast against whatever is behind it won't match the ratio reported here.

Ready to put your growth work on autopilot?

Connect your business once, then let Brand Armor AI find opportunities, create content, publish it, and learn from what brings customers in.