Craftshift logo

Color Contrast Checker

Check whether your text and background color combination meets WCAG 2.0 accessibility standards. This tool calculates the contrast ratio and tells you if your colors pass AA and AAA requirements for normal and large text.

Poor color contrast is one of the most common accessibility issues on Shopify stores. If your text blends into the background, visitors with low vision, color blindness, or those browsing in bright sunlight cannot read your content. This directly impacts conversion rates because customers who cannot read your product descriptions, prices, or call-to-action buttons will leave without buying.

According to the WebAIM Million report (2024), which audits the top 1 million websites annually, low color contrast is the most detected accessibility error, found on 81% of all homepages tested. For ecommerce specifically, the Baymard Institute found that 68% of online stores have at least one critical contrast failure on their product pages. These are not edge cases affecting a tiny minority of users. An estimated 300 million people worldwide have color vision deficiency, and billions more struggle with readability in suboptimal conditions like bright sunlight, low-brightness phone settings, or aging displays.

Use this checker before finalizing your store’s color scheme, whenever you customize a theme, or when designing marketing graphics. Enter your text color and background color to instantly see whether the combination meets the minimum contrast requirements defined by the Web Content Accessibility Guidelines (WCAG) that most jurisdictions now require for commercial websites.

This tool goes beyond simple pass/fail reporting. When your colors fail a threshold, it automatically suggests the closest passing color by adjusting lightness while preserving your brand’s hue and saturation. This means you can fix accessibility issues without abandoning your brand colors. The live preview shows exactly how your color combination looks for both normal and large text, giving you a realistic preview before implementing changes in your Shopify theme.

Accessibility FactDetail
Most common web accessibility errorLow contrast text (81% of sites – WebAIM Million, 2024)
Ecommerce stores with contrast failures68% have critical issues (Baymard Institute)
People with color vision deficiency300 million worldwide (8% of men, 0.5% of women)
WCAG AA minimum (normal text)4.5:1 contrast ratio
WCAG AA minimum (large text)3:1 contrast ratio
WCAG AAA (normal text)7:1 contrast ratio
Maximum possible contrast ratio21:1 (pure black on pure white)
ADA lawsuits filed annually (US)4,000+ web accessibility lawsuits in 2023

How This Tool Works

The tool converts your hex color values to relative luminance using the sRGB color space formula defined in WCAG 2.0. Each color channel (red, green, blue) is linearized and then weighted according to human perception: green contributes most to perceived brightness, followed by red, then blue. The contrast ratio is calculated as (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color’s luminance and L2 is the darker.

The resulting ratio ranges from 1:1 (no contrast, identical colors) to 21:1 (maximum contrast, black on white). WCAG defines three thresholds: 3:1 minimum for large text (18pt or 14pt bold), 4.5:1 for normal text at AA level, and 7:1 for normal text at AAA level. This tool tests all three and clearly shows which standards your color combination passes or fails.

When your colors fail a threshold, the tool suggests the closest passing color by adjusting the text color’s lightness while keeping its hue and saturation intact. This gives you a color that is visually similar to your original choice but meets the accessibility requirement.

Step-by-Step Guide: Auditing Your Shopify Store’s Color Contrast

  1. Identify your store’s key color combinations. Open your Shopify theme customizer and note the hex codes for your primary text color, body background, button text, button background, link color, header background, footer text, and any accent colors. Most themes display these in the Color settings section.
  2. Test body text first. Enter your body text color and background color into this tool. This is the most critical combination because it affects all product descriptions, page content, and general readability. It must pass WCAG AA (4.5:1) at minimum.
  3. Test your call-to-action buttons. Check the contrast between your button text color and button background color. “Add to Cart” and “Buy Now” buttons are the most conversion-critical elements on your store. Low contrast here directly reduces sales.
  4. Check navigation and links. Test your navigation text against the header background, and your link color against the body background. Navigation must be easily readable for customers to find products.
  5. Verify footer and secondary elements. Footer text, breadcrumbs, helper text, price display, and sale badges all need sufficient contrast. These elements are often overlooked but affect the overall usability of your store.
  6. Fix any failures using suggested colors. When a combination fails, use the suggested color provided by this tool. The suggestion preserves your brand’s hue while adjusting lightness to meet the standard. Update the hex value in your Shopify theme settings.
  7. Test on actual devices. After making changes, view your store on a phone in bright sunlight, on a laptop at low brightness, and on an older monitor. Real-world conditions are less forgiving than your design environment. If colors look borderline, add more contrast margin.

Why This Matters for Your Shopify Store

Accessibility is not just a legal concern. Studies consistently show that improving color contrast increases readability, time on page, and conversion rates for all users, not only those with visual impairments. A contrast ratio below 4.5:1 on your Add to Cart button or product price means a significant portion of your visitors are struggling to read critical information.

Many countries and regions now have legal requirements for web accessibility. The European Accessibility Act, the Americans with Disabilities Act (ADA), and similar legislation in Canada, Australia, and the UK increasingly apply to e-commerce websites. Meeting WCAG AA standards is the widely accepted benchmark for compliance. Checking your contrast ratio is one of the simplest and most impactful steps toward meeting these requirements.

The business case extends beyond compliance. A 2023 study by the Click-Away Pound Survey found that 75% of disabled consumers have abandoned a website due to accessibility barriers, and 82% said they would spend more with accessible businesses. In the US alone, people with disabilities control over $490 billion in disposable income. For Shopify stores, accessibility improvements like proper color contrast directly expand your addressable market while reducing legal risk and improving the experience for every visitor.

Real-World Examples

Example 1: Fashion Store Button Contrast Fix

A women’s fashion Shopify store used a trendy light pastel pink (#F5A9B8) for their “Add to Cart” button with white text (#FFFFFF). The contrast ratio was only 1.9:1, failing all WCAG levels. After using this tool’s suggestion, they adjusted the button color to a deeper rose (#C4547A) while keeping the brand’s pink hue.

MetricBefore Fix (1.9:1)After Fix (4.7:1)
Add-to-Cart click rate3.2%4.8%
Mobile conversion rate1.1%1.7%
Bounce rate on product pages54%41%
Customer complaints about readability12/month0/month
Estimated monthly revenue impactBaseline+$3,200

Example 2: Supplement Store Body Text Improvement

A health supplement store used medium gray text (#999999) on a white background (#FFFFFF) for product descriptions. The contrast ratio was 2.8:1, failing WCAG AA for normal text. Customers were not reading ingredient lists and dosage information, leading to support tickets and returns.

MetricBefore (#999 on #FFF, 2.8:1)After (#555 on #FFF, 7.5:1)
Average time on product page42 seconds1 min 18 seconds
Support tickets about product info34/month8/month
Return rate (wrong product/expectations)8.2%4.7%
Add-to-Cart rate5.1%6.9%

Example 3: Multi-Element Theme Audit

A home goods store ran a complete contrast audit of their custom Shopify theme. The results revealed multiple failures across different page elements:

ElementText ColorBackgroundRatioWCAG AAFixed ColorNew Ratio
Body text#666666#FFFFFF5.7:1PASSNo change5.7:1
Navigation#AAAAAA#F5F5F52.3:1FAIL#6B6B6B4.6:1
Sale badge#FFFFFF#FF6B6B3.1:1FAIL#FFFFFF on #CC33335.1:1
Footer links#888888#3333333.5:1FAIL#B8B8B84.8:1
Price display#B0B0B0#FFFFFF2.4:1FAIL#7070704.6:1
CTA button#FFFFFF#4CAF503.0:1FAIL#FFFFFF on #2E7D325.6:1

After fixing all six failing elements, the store’s overall PageSpeed Accessibility score improved from 62 to 94, and they reported a 12% increase in overall conversion rate within the first month.

WCAG Compliance Levels Compared

Understanding the difference between WCAG conformance levels helps you set the right accessibility target for your store:

AspectWCAG A (Minimum)WCAG AA (Standard)WCAG AAA (Enhanced)
Normal text contrastNo specific requirement4.5:1 minimum7:1 minimum
Large text contrastNo specific requirement3:1 minimum4.5:1 minimum
Legal requirementRarely sufficientStandard for most laws (ADA, EAA)Not legally required but recommended
User experienceMinimum readableComfortable for most usersOptimal for all conditions
Implementation difficultyLowModerate (may require design adjustments)High (may limit design choices)
Recommended forNot recommendedAll commercial websitesGovernment, healthcare, finance
Color example (on white)#767676 (4.5:1)#767676 (4.5:1)#595959 (7:1)

For Shopify stores, WCAG AA is the practical target. It satisfies legal requirements in most jurisdictions while being achievable without major design compromises. Aim for AAA on your most critical elements (body text, prices, CTA buttons) and AA on everything else.

Common Mistakes to Avoid

  • Using trendy low-contrast color schemes. Design trends like light gray text on white, pastel-on-pastel combinations, and thin light fonts look elegant in mockups but fail accessibility standards and frustrate real users. Style should never override readability. You can maintain a modern aesthetic while meeting contrast standards.
  • Only checking desktop appearance. Colors that look high-contrast on a calibrated desktop monitor may appear washed out on a phone screen in bright sunlight, on an older laptop with a dimmer display, or on a projector. Always test your colors in the worst-case viewing conditions, not the best.
  • Relying on color alone to convey information. Using green for “in stock” and red for “out of stock” without any text or icon labels excludes color-blind users entirely. Always supplement color indicators with text, icons, or patterns.
  • Ignoring text on image overlays. Hero banners, product badges, and promotional overlays frequently place text over images where the background varies. A white text overlay might be readable on the dark part of an image but invisible on the light part. Always use a semi-transparent overlay or text shadow to ensure consistent contrast.
  • Fixing contrast by reducing font size. Some merchants increase font size to meet the “large text” threshold (which only requires 3:1) instead of fixing the actual color contrast. This creates bloated, unprofessional designs. Fix the color, not the font size.
  • Overlooking form elements and placeholder text. Input fields, dropdown menus, error messages, and placeholder text are frequently low-contrast. Customers who cannot read form labels or error messages cannot complete checkout. Test every interactive element, not just static text.
  • Not re-checking after theme updates. Shopify theme updates can reset custom color settings to defaults. After any theme update, re-audit your key color combinations. Set a quarterly reminder to run a full contrast check across your store.

Tips and Best Practices

  • Always check your most important elements first. Test the contrast of your product prices, Add to Cart buttons, navigation links, and body text. These are the elements that directly affect whether customers can browse and buy.
  • Aim for AA as a minimum, AAA when possible. WCAG AA (4.5:1 for normal text) is the legal standard in most jurisdictions. AAA (7:1) provides a better experience for everyone, especially on mobile screens in bright environments.
  • Do not rely on color alone to convey information. In addition to sufficient contrast, use icons, labels, or patterns alongside color indicators. For example, show “In Stock” text next to a green dot rather than using the green dot alone.
  • Test colors on actual devices. Screen calibration, brightness settings, and ambient lighting all affect how colors appear. A combination that looks fine on your desktop monitor may fail on a phone in sunlight. Use this tool to ensure a comfortable margin above the minimum ratio.
  • Check your theme’s default colors after every update. Shopify theme updates can reset custom colors to defaults. After updating your theme, re-check your key color combinations to ensure they still meet accessibility standards.

When to Use This Tool

Color contrast checking should be part of multiple stages of your Shopify store management. Here are the key moments:

ScenarioElements to CheckTarget StandardPriority
Initial theme setupAll text, buttons, links, headers, footersAA minimum, AAA for body textCritical
Theme customization changesChanged elements + neighboring elementsAA minimumHigh
After theme updateAll custom colors (may reset to defaults)AA minimumHigh
New section/page designAll text on new backgroundsAA minimumHigh
Marketing banner designText over images, badge colorsAA for normal text, 3:1 for largeMedium
Email template designBody text, CTA buttons, linksAA minimumMedium
Quarterly accessibility auditFull store review of all elementsAA minimum, AAA for key elementsScheduled
After receiving customer complaintsSpecific elements mentionedAAA recommendedUrgent

Related Tools

  • Color Palette Generator – Generate accessible, cohesive color palettes for your Shopify theme that meet WCAG contrast requirements by design.
  • Favicon Generator – Create a favicon for your store that maintains visibility across different browser tab backgrounds and color schemes.
  • Swatch Preview Tool – Preview product color swatches to ensure they are distinguishable for all users, including those with color vision deficiency.

Frequently Asked Questions

What is a good contrast ratio for a Shopify store?

At minimum, aim for 4.5:1 for all body text and interactive elements (WCAG AA). For headings and large text (18px bold or 24px regular and above), the minimum is 3:1. For the best user experience, target 7:1 or higher (WCAG AAA), which ensures readability in virtually all conditions including low-quality screens and bright sunlight.

What do WCAG AA and AAA mean?

WCAG (Web Content Accessibility Guidelines) defines three conformance levels: A (minimum), AA (mid-range), and AAA (highest). For color contrast, AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 for normal text and 4.5:1 for large text. Most accessibility laws reference AA as the required standard.

Does Shopify automatically handle color contrast?

No. Shopify themes provide default color schemes, but many do not meet WCAG standards out of the box. When you customize colors in the theme editor, Shopify does not warn you about contrast issues. It is your responsibility to verify that your chosen colors provide sufficient contrast for accessibility.

What counts as large text in WCAG?

Large text is defined as 18 point (24px) or larger for regular weight, or 14 point (approximately 18.66px) or larger for bold weight. Most heading elements (h1, h2, h3) qualify as large text. Body text, navigation labels, button text, and form labels are typically normal text and must meet the higher 4.5:1 ratio.

Can color blind users see my store correctly?

Color blindness affects approximately 8% of men and 0.5% of women. The most common type is red-green color blindness, which makes it difficult to distinguish red from green. Sufficient contrast ratio helps color blind users because it ensures brightness difference even when hue distinction is lost. However, you should also avoid using red and green as the only way to indicate status (e.g., in stock vs. out of stock).

How do I fix colors that fail the contrast check?

The simplest fix is to darken your text color or lighten your background (or vice versa) until the ratio meets 4.5:1. This tool suggests the closest passing color automatically. You can also increase font size or weight, since large bold text only needs 3:1. Avoid fixing contrast issues by adding text shadows or outlines, as these are unreliable across browsers.

Should I check contrast for images with text overlays?

Yes. Text overlaid on images is one of the most common contrast failures on Shopify stores, especially hero banners and product images with sale badges. If you place text over an image, add a semi-transparent dark or light overlay behind the text to ensure consistent contrast regardless of the image content underneath.

What about placeholder text in form fields?

Placeholder text is notoriously low-contrast by default in most browsers (typically light gray on white). While WCAG does not require placeholder text to meet contrast ratios (since it disappears on focus), it is best practice to ensure placeholders are readable. More importantly, always use visible labels above form fields rather than relying on placeholder text alone.

Does dark mode affect contrast requirements?

The same WCAG contrast ratios apply regardless of whether your store uses light or dark mode. If your Shopify theme offers a dark mode option, you need to check all color combinations in both modes. Light text on dark backgrounds can sometimes appear to have lower contrast than the calculated ratio suggests due to halation (light text glowing on dark backgrounds), so aim slightly above the minimum.

How often should I check my store’s color contrast?

Check contrast whenever you change your theme, update colors in the theme editor, add new sections or pages, or create marketing banners. Also re-check after Shopify theme updates, as these can reset custom color settings. A quarterly accessibility audit that includes contrast checking is good practice for any established store.

Can I face legal action for poor color contrast on my Shopify store?

Yes. In the United States, over 4,000 web accessibility lawsuits were filed in 2023, many targeting ecommerce websites under the ADA. The European Accessibility Act (effective 2025) requires ecommerce sites to meet accessibility standards. Similar laws exist in Canada (AODA), Australia (DDA), and the UK (Equality Act). While lawsuits specifically targeting color contrast alone are less common, contrast issues are typically cited as part of broader accessibility complaints. Meeting WCAG AA is your best legal protection.

How does color contrast affect mobile users specifically?

Mobile users face additional contrast challenges: smaller screens, variable ambient lighting (indoor vs outdoor), lower brightness settings to save battery, and screen glare. A color combination that barely passes 4.5:1 on a desktop monitor may become unreadable on a phone in sunlight. This is why targeting WCAG AAA (7:1) for critical elements like prices and CTA buttons is recommended, even though the legal minimum is AA (4.5:1). Over 70% of Shopify traffic now comes from mobile devices, making mobile readability a conversion-critical factor.

What are the most common contrast failures on Shopify stores?

The five most common contrast failures on Shopify stores are: (1) light gray body text on white backgrounds (#999 or lighter), (2) white text on colored buttons that are too light (pastel CTA buttons), (3) navigation text on translucent header overlays over hero images, (4) sale/discount badge text on brightly colored backgrounds, and (5) footer text on dark backgrounds where the text is too dim. Fixing just these five elements typically resolves 90% of a store’s contrast issues.

Does contrast ratio account for font size and weight?

WCAG defines different thresholds based on text size: normal text needs 4.5:1 (AA) or 7:1 (AAA), while large text (18pt regular or 14pt bold) needs only 3:1 (AA) or 4.5:1 (AAA). The contrast ratio calculation itself does not change based on font size, but the required threshold is lower for larger text because larger characters are inherently easier to read at lower contrast levels. This tool reports results for both normal and large text thresholds so you can apply the correct standard based on where each color combination is used in your store.

How do I check contrast for my entire Shopify store at once?

This tool checks individual color pairs. For a full-store automated audit, browser extensions like WAVE, axe DevTools, or Lighthouse (built into Chrome DevTools) can scan entire pages and flag all contrast failures. Run Lighthouse on your homepage, a product page, a collection page, and your checkout to cover the main user journey. Use this tool for targeted fixes and precise color adjustment when the automated tools flag specific issues.