Text on Background Checker
Test how readable text is on any background color with adjustable font weight and size. Enter your text and background colours, choose a text scale or set custom font size and weight, and get instant WCAG AA/AAA pass/fail results with a live text preview. Fully private, 100% free, and no signup required.
Text Size & Weight
Contrast Ratio
21.00:1
Excellent
AA (4.5:1)
Meets AA requirement
AAA (7:1)
Meets AAA requirement
Suggested Text Colour
Black (#000000)
Live Text Preview
Technical Details
Foreground luminance: 0.0000
Background luminance: 1.0000
Formula: (L₁ + 0.05) / (L₂ + 0.05) = 21.00:1
Why Use Our Text on Background Checker?
Instant Text Readability Analysis
The text on background checker updates every value on every keystroke - no button to press. Enter any foreground and background colour and get the WCAG contrast ratio, AA/AAA pass/fail status, and a live text preview immediately. Swap colours or try preset pairs with one click.
Adjustable Font Size & Weight
Toggle between WCAG-standard text scales - small text (normal), large text, small bold, and large bold - or set custom font sizes from 12px to 48px and font weights from 400 to 700. See exactly how readability changes as you adjust these parameters, with a live text preview at the selected size.
WCAG 2.1 Compliant Calculations
All contrast calculations use the official WCAG 2.1 relative luminance formula and threshold values. The checker evaluates AA compliance (4.5:1 for normal text, 3:1 for large text) and AAA compliance (7:1 for normal text, 4.5:1 for large text) with clear pass/fail badges.
100% Free - No Signup Required
The text on background checker is completely free with no signup, no subscription, and no usage limits. All calculations run locally in your browser - your colours and text never leave your device. No ads blocking the interface.
Common Use Cases for Text on Background Checker
Web Accessibility Compliance
Frontend developers use the text on background checker to verify that their colour choices meet WCAG AA or AAA requirements before shipping. Test body text, headings, and button labels at their actual font sizes and weights to ensure no accessibility issues reach production.
Design System Color Validation
Design system maintainers use the text on background checker to validate every colour pair in their design token library. Test primary, secondary, text, and background combinations at different text scales to ensure consistent accessibility across the entire component library.
WCAG Audit & Remediation
Accessibility auditors use the text on background checker to document and fix contrast failures. The live preview and clear pass/fail badges make it easy to demonstrate issues to stakeholders and test proposed colour changes before implementing them.
Mobile & Responsive Design
Mobile designers use the text on background checker to test readability at different screen sizes. Small text (14px) on mobile backgrounds needs the higher 4.5:1 contrast ratio, while large headings at 24px can use the 3:1 threshold - the checker handles both scenarios.
Email & Digital Publishing
Email designers and digital publishers use the text on background checker to ensure their newsletters and articles are readable. With varying background colours and text sizes across sections, the checker helps maintain accessibility while using brand colours.
Dashboard & Data Visualization
Data analysts and dashboard designers use the text on background checker to verify that labels, legends, and annotations remain readable against chart backgrounds. The custom font size mode allows testing at the exact sizes used in data visualisations.
Understanding Text on Background Contrast
What is Text on Background Contrast?
Text on background contrast measures the difference in perceived brightness between text and its background. The WCAG (Web Content Accessibility Guidelines) defines a contrast ratio formula that quantifies this difference on a scale from 1:1 (no contrast, e.g. black text on black background) to 21:1 (maximum contrast, e.g. black text on white background). The minimum acceptable ratio depends on the text size and whether the text is bold - our text on background checker evaluates all these factors automatically.
How Our Text on Background Checker Works
- Enter your colours: Type or pick a foreground (text) colour and a background colour using the colour inputs or colour picker. All processing runs locally in your browser - your colours never leave your device. Use the preset buttons for common colour pairs or the swap button to exchange foreground and background.
- Select text size & weight: Choose from WCAG-standard text scales - Small Text (normal), Large Text, Small Bold, or Large Bold - or switch to Custom mode for precise font size (12px-48px) and weight (400-700) control. The checker automatically uses the correct WCAG threshold values based on your selection.
- Read the results: The contrast ratio displays prominently at the top with a colour-coded quality indicator (excellent, good, moderate, or poor). Pass/fail badges for WCAG AA and AAA show whether your text meets accessibility requirements. The live text preview lets you see exactly how your text looks at the selected size and weight.
WCAG Text Size Definitions & Thresholds
- Small Text (Normal): Body text, labels, and captions below 18pt (24px) regular weight, or below 14pt (18.67px) bold. Requires a contrast ratio of 4.5:1 for AA compliance and 7:1 for AAA compliance. This is the most common text category on the web.
- Large Text: Text at least 18pt (24px) regular weight, or at least 14pt (18.67px) bold weight. Headings typically qualify as large text. Requires a contrast ratio of 3:1 for AA compliance and 4.5:1 for AAA compliance. Large text has lower requirements because it is easier to read.
- Custom Sizes: The checker uses the WCAG definition to determine which threshold applies. If your custom font size and weight combination meets the large text definition (24px regular or 18.67px bold), the more lenient large text thresholds are used automatically.
Tips for Accessible Text Colour Choices
Start with high contrast: Black text on white background (21:1) is the most readable combination. While brand colours are important, always test them against your backgrounds. A common mistake is using light gray text on white backgrounds - even medium gray (#767676) on white only achieves a 4.0:1 ratio, which fails the 4.5:1 AA requirement for normal text.
Consider text size when choosing colours:You can use lower contrast ratios for large headings (3:1 AA minimum) while maintaining higher contrast for body text (4.5:1 AA minimum). This allows more design flexibility for display text while keeping the main content accessible. Always provide suggested text colours with the checker’s black/white recommendation when a background colour is too light or dark.
Test with real content: Use the editable text preview to test with your actual copy. The checker lets you type any text and see it rendered at the selected size and weight, giving you a true representation of how your content will look to users.
Related Color Tools
Color Contrast Checker
Calculate WCAG 2.1 contrast ratio and check AA/AAA compliance for normal text, large text, and UI components with live preview.
Color Picker & Converter
Visual colour picker with HEX, RGB, HSL, HSV, CMYK, HWB, and CIE LAB conversion. Bidirectional inputs, WCAG contrast checker, CSS variable output.
Hex to HSL Calculator
Convert HEX to HSL, RGB to HSL, and between all colour formats instantly with bidirectional inputs and live preview - free online hex to HSL calculator.
Color Name Finder
Enter any HEX or RGB color and instantly find the closest named color from 300+ CSS, X11, and Pantone color names. Search by name or browse the full database.
Frequently Asked Questions About Text on Background Checker
A text on background checker tests how readable text is on any background color by calculating the WCAG contrast ratio. It evaluates the contrast against WCAG 2.1 AA and AAA thresholds, which vary based on text size and weight. Our checker lets you adjust font size and weight to see how readability changes, with a live text preview at the exact settings you plan to use.
For normal text (smaller than 18pt or 14pt bold), you need a minimum contrast ratio of 4.5:1 to pass WCAG AA. For large text (at least 18pt regular or 14pt bold), the requirement is 3:1. Our text on background checker automatically uses the correct threshold based on the text scale you select.
WCAG AA is the standard compliance level required by most accessibility laws and regulations. For normal text, AA requires 4.5:1 and AAA requires 7:1. For large text, AA requires 3:1 and AAA requires 4.5:1. AAA is the enhanced level - while not always required, it provides better readability for users with low vision.
WCAG 2.1 defines large text as at least 18pt (24px) regular weight, or at least 14pt (18.67px) bold weight. Headings typically qualify as large text. Our text on background checker includes built-in presets for all WCAG text categories and lets you set custom font sizes and weights with automatic threshold selection.
Yes. The text on background checker offers both WCAG-standard presets (small text, large text, small bold, large bold) and a custom mode. In custom mode, you can select any font size from 12px to 48px and any font weight from 400 to 700. The checker evaluates the contrast against the appropriate WCAG thresholds based on your settings.
Yes. All calculations run 100% client-side in your browser using JavaScript. Your colour values and any text you type are never sent to any server, never stored, and never transmitted anywhere. The text on background checker is completely private and processes everything locally on your device.
Yes. The text on background checker is 100% free with no signup required, no premium features, and no usage limits. Test unlimited colour combinations without any restrictions or hidden costs. There are no ads blocking the interface.