Skip to content
Email signature generator update - check out new features tools
Arteon - company logo
#MadeWithNext.js
Arteon logo

Free online tools for web developers, designers, and marketers.

Tools

  • Online image editor
  • Favicon generator
  • Meta title & description checker
  • Word & character counter
  • Lorem Ipsum Generator
  • Email signature generator
  • Color contrast checker
  • Image color extractor
  • Color palette generator

Tools

  • Free QR code generator
  • pt to px
  • rem to px
  • em to px
  • cm to px
  • mm to px
  • inches to px
  • DPI to PPI
  • HEX to RGB

Tools

  • RGB to HSL
  • RGB to CMYK
  • bytes to KB/MB/GB
  • Unix to date
  • DEC to BIN
  • DEC to HEX
  • Mbps to MB/s
  • vw to px
  • Tailwind CSS spacing to px

Tools

  • JPG to WebP
  • PNG to WebP
  • WebP to JPG
  • WebP to PNG
  • PNG to JPG
  • JPG to PNG
  • SVG to PNG
  • BMP to JPG
  • JPG to AVIF

Legal documents

  • Privacy Policy
  • Terms of Service
© 2025 Arteon. All rights reserved.#MadeWithNext.js

Check color contrast and text readability per WCAG standards

Enter a text and background color, and the tool will show whether contrast is sufficient. Calculations are based on the international accessibility standard WCAG 2.1, which defines minimum contrast values for different content types.

  1. /Tools
  2. /Color contrast checker
Loading tool editor...
Color contrast checker – Arteon

Why does color readability matter?

Readability is the luminance difference between the text color and the background color. The greater the difference, the easier it is to read the text. Too low contrast makes content hard to read - especially for people with vision impairments, older adults, or in difficult lighting conditions (e.g., on a phone in direct sunlight).

According to the World Health Organization (WHO), approximately 2.2 billion people worldwide have some form of vision impairment. In addition, millions have color blindness (about 8% of men and 0.5% of women), and many more experience age-related vision decline.

The tool calculates the contrast ratio using the formula specified in the WCAG 2.1 (Web Content Accessibility Guidelines) - international digital accessibility guidelines. The result allows an objective assessment of whether colors are readable enough, regardless of monitor settings or individual color perception.

How to use the color contrast checker

Checking readability takes just a few seconds:

  1. 1. Enter the text color

    Type a color code (e.g., #333333) in HEX, RGB, or HSL format - or pick a color from the color picker.
  2. 2. Enter the background color

    Enter the background color on which the text will be displayed - this can be a section, block, or full page background.
  3. 3. Read the result

    The tool will calculate the contrast ratio and show whether the colors meet WCAG requirements for normal text, large text, and icons.
  4. 4. Adjust colors

    If contrast is too low, the Match feature automatically suggests a color variant that meets the selected threshold.

What color formats are supported?

HEX

Hexadecimal format - the most common in web design. Starts with # and contains 3 or 6 characters (digits 0-9 and letters A-F).

  • #fff - white (shorthand)
  • #ffffff - white (full form)
  • #1a73e8 - blue

Contrast ratio

8.59:1

Normal text

AA (min. 4.5:1)AAA (min. 7:1)

Sample normal text

Large text

AA (min. 3:1)AAA (min. 4.5:1)

How to interpret the readability test results

After entering colors, the tool displays results in three sections:

  • Normal text - requires 4.5:1 contrast (AA) or 7:1 (AAA). Applies to text below 18pt (24px) or below 14pt bold.
  • Large / bold text - requires 3:1 contrast (AA) or 4.5:1 (AAA). Applies to headings, buttons, and highlights.
  • Icons - requires 3:1 contrast (AA). Applies to icons and graphical UI elements that convey information.

Green indicator means the requirement is met. Red indicator means contrast is too low and needs improvement.

What do the readability test results mean?

The tool shows the contrast ratio on a scale from 1:1 (no contrast) to 21:1 (maximum contrast - black on white). The result is compared against thresholds defined in the WCAG standard:

  • Normal text - requires at least 4.5:1 for Level AA (minimum standard) or 7:1 for Level AAA (enhanced standard). Applies to text under 18pt (24px) or under 14pt (18.5px) bold.
  • Large / bold text - requires at least 3:1 for Level AA or 4.5:1 for Level AAA. Applies to text from 18pt (24px) or from 14pt (18.5px) bold - headings, buttons, highlights.
  • Icons and UI elements - require at least 3:1 for Level AA. Applies to icons, buttons, form fields, and other interface elements that convey information.

Level AA is the minimum required by digital accessibility regulations in many countries, including the EU Web Accessibility Directive. Level AAA provides better readability but is not always practical to achieve for all elements.

Automatic color matching to WCAG requirements

If contrast is too low, you don't need to search for the right color by trial and error. The Match feature automatically finds a text color variant that meets the selected contrast threshold.

How matching works:

  1. Select the matching target from the list - e.g., AA for normal text or AAA for large text.
  2. Click the Match button.
  3. The tool will search through lightness variants of the text color and suggest the closest one that meets the requirements.
  4. The suggested color can be copied to the clipboard or immediately set as the new text color.

The algorithm preserves the hue and saturation of the original color, changing only the lightness. The suggested color stays consistent with the visual identity while meeting the accessibility standard.

What do AA and AAA levels mean in the WCAG standard?

What do AA and AAA levels mean in the WCAG standard?
FeatureLevel AA (minimum)Level AAA (enhanced)
Normal text - min. 4.5:1
Normal text - min. 7:1
Large / bold text - min. 3:1
Large / bold text - min. 4.5:1
Icons and UI elements - min. 3:1
Required by EU Web Accessibility Directive
Required by US ADA / Section 508
Required by UK Equality Act 2010
Recommended for key content

Level AA (minimum)

  • Normal text - min. 4.5:1
  • Normal text - min. 7:1
  • Large / bold text - min. 3:1
  • Large / bold text - min. 4.5:1
  • Icons and UI elements - min. 3:1
  • Required by EU Web Accessibility Directive
  • Required by US ADA / Section 508
  • Required by UK Equality Act 2010
  • Recommended for key content

Level AAA (enhanced)

  • Normal text - min. 4.5:1
  • Normal text - min. 7:1
  • Large / bold text - min. 3:1
  • Large / bold text - min. 4.5:1
  • Icons and UI elements - min. 3:1
  • Required by EU Web Accessibility Directive
  • Required by US ADA / Section 508
  • Required by UK Equality Act 2010
  • Recommended for key content

Troubleshooting the color contrast checker

I see a color format error message

Check the color format. A HEX code should start with # and contain 3 or 6 characters (e.g. #fff or #ffffff). For RGB, make sure values are separated by commas and fall within the 0-255 range.

The Adjust function cannot find a suitable color

When the background and text have similar lightness in the same hue, the algorithm may not find a variant that meets the requirements without changing the hue. In this case, consider changing the background color or choosing an entirely different text color.

The color picker does not match the entered code

The browser color picker only supports the HEX format without transparency. If you enter a color in RGBA or HSLA format with transparency, the picker will show only the color part (without alpha). Contrast calculations still take transparency into account.

Where should you check color readability?

Readability matters everywhere someone needs to read text or recognize a UI element:

  1. Websites

    Text on pages, buttons, links, forms. Especially important for business sites where visitors have varying ages and visual abilities.
  2. Online stores

    Prices, Buy Now buttons, product information. Low readability can mean lost orders.
  3. Presentations

    Slides displayed via projector often have weaker contrast than on a monitor. Check colors before presenting.
  4. Posters and flyers

    Printed materials viewed in various lighting conditions require high contrast.
  5. Mobile apps

    Phones are used in bright sunlight, at night, and by people of all ages.
  6. Restaurant menus

    Often printed on colored paper or with decorative fonts - easy to end up with too low contrast.

Color readability for color-blind users

Color blindness affects about 8% of men and 0.5% of women. People with color blindness may have difficulty distinguishing certain color pairs, even if the luminance contrast is sufficient.

Most common types of color blindness:

  • Deuteranopia - difficulty distinguishing green and red (most common form)
  • Protanopia - difficulty seeing red
  • Tritanopia - difficulty seeing blue and yellow (rare)

This tool checks luminance contrast, which is important for all users. However, when designing, it is also worth avoiding problematic color combinations (e.g., red text on a green background) and not relying solely on color to convey information - use shapes, icons, and text as well.

International accessibility laws that require color contrast

Color contrast is not just a best practice - it is a legal requirement in many countries. Here are the key regulations that reference WCAG contrast standards:

  • European Union - Web Accessibility Directive (2016/2102): All public sector websites and apps must meet WCAG 2.1 Level AA. The European Accessibility Act (2019/882) extends this to private sector products and services from June 2025.
  • United States - ADA & Section 508: The Americans with Disabilities Act (ADA) and Section 508 of the Rehabilitation Act require federal agencies and organizations receiving federal funding to meet WCAG 2.0 AA standards. Courts have increasingly applied ADA requirements to commercial websites.
  • United Kingdom - Equality Act 2010: Public sector bodies must meet WCAG 2.1 AA under the Public Sector Bodies Accessibility Regulations 2018. The Equality Act also covers private sector services.
  • Canada - Accessible Canada Act (2019): Federal organizations must ensure digital accessibility. Ontario's AODA requires WCAG 2.0 AA compliance for all public and large private organizations.
  • Australia - Disability Discrimination Act (1992): Australian courts have ruled that websites must be accessible, referencing WCAG standards in multiple landmark cases.
  • Japan - JIS X 8341-3: Japan's accessibility standard is based on WCAG 2.0 and applies to government and public-facing websites.

Regardless of your location, meeting WCAG 2.1 Level AA contrast requirements protects your organization from legal risk and ensures your content reaches the widest possible audience.

How the contrast ratio is calculated

The contrast ratio uses relative luminance - how bright a color appears to the human eye. The WCAG 2.1 formula is:

(L1 + 0.05) / (L2 + 0.05)

L1 is the luminance of the lighter color, L2 of the darker. Luminance is derived by converting sRGB to linear light, then weighting channels: 0.2126 × R + 0.7152 × G + 0.0722 × B.

The result ranges from 1:1 (identical) to 21:1 (black on white). This removes subjectivity - the ratio stays the same regardless of monitor, lighting, or personal vision.

WCAG 2.2 and WCAG 3.0 (APCA): what is changing?

WCAG 2.2 (October 2023) adds criteria for focus appearance and dragging movements but does not change contrast thresholds. Success Criteria 1.4.3 and 1.4.6 remain identical to WCAG 2.1.

WCAG 3.0 is an early draft proposing APCA (Advanced Perceptual Contrast Algorithm). APCA accounts for font size, weight, and polarity (light-on-dark vs dark-on-light) for a more accurate score.

WCAG 3.0 is years from becoming a recommendation. For now, WCAG 2.1 AA (4.5:1 / 3:1) remains the legal standard worldwide. This tool uses the current WCAG formula.

Common contrast mistakes to avoid

These patterns appear frequently in web design and often fail WCAG checks:

  1. Light gray text on white

    Gray #999 on white #fff gives only 2.8:1 - well below 4.5:1. Use at least #767676 for AA on white backgrounds.
  2. White text over photographs

    Photos have varying brightness. White text may vanish on a bright region. Add a semi-transparent dark overlay or text shadow.
  3. Thin font weights under 400

    Lighter weights make text harder to read at the same ratio. If using thin fonts, aim higher than the bare minimum.
  4. Low-contrast placeholder text

    Form placeholders are often very faint. If the placeholder conveys instructions, it should meet 4.5:1.
  5. Untested brand colors

    A brand color may look bold on its own but fail when used as text on certain backgrounds. Always test the actual pairing.
  6. Links on colored sections

    Links inside colored banners or cards often fail. Check the link against its section background, not the page background.

What makes this contrast and readability checker special?

  1. Objective evaluation based on a mathematical formula

    Contrast ratio is calculated using the WCAG formula - the result does not depend on monitor settings or individual color perception.
  2. Compliance with international WCAG standard

    Results match WCAG 2.1 requirements, which form the basis of digital accessibility regulations in the EU and many other countries.
  3. Automatic color matching to threshold

    The Match feature finds a text color variant that meets the selected contrast threshold - preserves hue, changes only lightness.
  4. Five color formats

    Supported formats: HEX, RGB, RGBA, HSL, and HSLA. Color code can be pasted directly from Figma, Photoshop, or a CSS stylesheet.
  5. Three content types in one test

    A single check shows the result for normal text, large text (headings, buttons), and icons - no need to test each type separately.

Frequently asked questions about the color contrast checker

What is a color contrast ratio?

A contrast ratio is a measure of the luminance difference between two colors. The scale ranges from 1:1 (no difference - e.g., white text on white background) to 21:1 (maximum difference - black text on white background). The higher the ratio, the easier it is to distinguish text from the background.

What contrast is sufficient according to WCAG?

For normal text, the minimum is 4.5:1 (Level AA). For large text - headings from 18pt or bold text from 14pt - 3:1 is sufficient. For icons and UI components, 3:1 is also required. These thresholds ensure readability for most users, including those with impaired vision.

Is color contrast important for color-blind users?

The checker tests luminance contrast, which matters for all users, including those with color blindness. However, color blindness is a color perception issue, not a luminance issue - so in addition to contrast, avoid problematic color pairs (e.g., red text on green background) and don't rely solely on color to convey information.

Why doesn't my color meet the requirements even though I can see it fine?

Personal color perception depends on monitor settings, room lighting, and individual visual abilities. WCAG is based on an objective mathematical formula that accounts for various vision impairments. A color readable on one screen may be unreadable on another or for a different person.

Do I need to meet AAA contrast level?

Not always. Level AA (4.5:1 for normal text) is the minimum required by accessibility regulations in the European Union. Level AAA (7:1) provides better readability but is harder to achieve. For critical content - warnings, safety instructions - consider aiming for AAA.

What is the WCAG standard?

WCAG (Web Content Accessibility Guidelines) is an international set of web accessibility guidelines developed by the W3C organization. It defines, among other things, minimum color contrast values, heading structure, keyboard support, and other requirements that make websites accessible to people with various disabilities.

Where can I find color codes from my website?

In a browser (Chrome, Firefox, Edge) you can open developer tools (right-click > Inspect). In the Styles tab, you can see the colors used on the page. Alternatively, browser extensions like ColorZilla let you pick the color of any element without digging into code.

Which color pairs on my site should I check first?

Most important: text on the main background, text on banners and colored sections, buttons (text color and button background relative to page background), links, and icons. Pay special attention to elements that appear on different backgrounds depending on the section.

Is color contrast legally required in the United States?

Yes. The Americans with Disabilities Act (ADA) and Section 508 of the Rehabilitation Act require digital accessibility. Courts have increasingly ruled that commercial websites must be accessible under ADA Title III. The standard referenced is WCAG 2.0/2.1 Level AA, which includes minimum contrast ratios of 4.5:1 for normal text and 3:1 for large text.

What is the difference between WCAG 2.0, 2.1, and 2.2?

WCAG 2.0 (2008) established the original contrast requirements. WCAG 2.1 (2018) added criteria for mobile accessibility, cognitive disabilities, and low vision. WCAG 2.2 (2023) adds further criteria but does not change the contrast ratio thresholds. The contrast requirements (1.4.3 and 1.4.6) remain the same across all versions.

Does this tool work for dark mode designs?

Yes. The tool checks the contrast ratio between any two colors regardless of which is lighter. For dark mode, you would typically enter a light text color and a dark background color. The same WCAG thresholds apply - 4.5:1 for normal text (AA) and 7:1 (AAA).

What is a safe minimum text color on a white background?

The darkest gray that still passes WCAG AA on pure white (#ffffff) is #767676, which gives exactly 4.54:1. Anything lighter - for example #999999 at 2.85:1 - fails. For AAA compliance (7:1) you need at least #595959.

Does the European Accessibility Act (EAA) affect my website?

If you sell products or services to consumers in the EU, yes. The EAA (Directive 2019/882) took effect in June 2025 and extends accessibility obligations beyond public sector to private e-commerce, banking, transport, and media. It references the EN 301 549 standard, which maps to WCAG 2.1 AA - including the 4.5:1 and 3:1 contrast thresholds checked by this tool.

How do I test contrast for text over a gradient or image?

Pick the lightest area of the background where text appears and test against your text color. That worst-case spot determines whether the combination passes. For gradients, check both endpoints. For images, the safest approach is to add a solid or semi-transparent overlay behind the text.

What is APCA and should I use it instead of WCAG contrast?

APCA (Advanced Perceptual Contrast Algorithm) is a proposed replacement for the current WCAG contrast formula, developed as part of the WCAG 3.0 draft. It considers font size, weight, and text polarity for a more perceptually accurate score. However, WCAG 3.0 is not yet a W3C Recommendation and no law currently references APCA. Until it is finalized, use the WCAG 2.1 formula - which is what this tool calculates.

Color contrast checker – Arteon

Help us improve our tools

Have an idea for a new feature, found a bug, or want to suggest another tool that would make your work easier? Write to us – we respond within 24 hours.