Color Contrast Checker - WCAG Accessibility
Check color combinations against WCAG 2.1 AA and AAA accessibility standards. See contrast ratio and pass/fail status. Free tool.
Contrast Ratio
14.63:1
WCAG Compliance
AA Normal: ≥4.5:1 | AA Large: ≥3:1 | AAA Normal: ≥7:1 | AAA Large: ≥4.5:1
Live Preview
Heading Example (24px)
Large text example (18px bold)
Normal text example (14px). This is the standard body text size used on most websites. It needs to meet the strictest contrast requirements for readability.
Small text example (12px). Even smaller text that should still be readable.
About Color Contrast Checker
The Web Content Accessibility Guidelines (WCAG) 2.1 define minimum contrast ratios to ensure text is readable for people with visual impairments. Level AA requires 4.5:1 for normal text and 3:1 for large text. Level AAA requires 7:1 and 4.5:1 respectively.
This tool calculates the contrast ratio between any two colors using the WCAG relative luminance formula and shows pass/fail results for both AA and AAA standards.
The WCAG contrast ratio is calculated from the relative luminance of two colors. Relative luminance accounts for how the human eye perceives brightness differently across the color spectrum - green appears brighter than blue at the same hex value. The formula applies gamma correction to sRGB values before computing the ratio, which ranges from 1:1 (no contrast) to 21:1 (black on white).
Approximately 300 million people worldwide have color vision deficiency. The most common form, deuteranomaly (red-green), affects 6% of males. Relying solely on color to convey information (like red for errors, green for success) fails for these users. Sufficient contrast ratio is the first step toward accessible design, but also consider using icons, patterns, or text labels alongside color.
Use this checker alongside the Color Converter to find accessible alternatives when a brand color fails contrast requirements. Small adjustments to lightness or saturation can often achieve the required 4.5:1 ratio while staying visually close to the original brand color. Test your final colors on both light and dark backgrounds.
How the Color Contrast Checker Works
- 01Enter or pick a foreground (text) color and a background color
- 02The tool calculates the contrast ratio between the two colors
- 03See whether the combination passes WCAG AA and AAA standards
- 04Adjust colors until you achieve the required contrast ratio
WCAG Color Contrast Requirements
WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text (AA) and 7:1 for enhanced readability (AAA). Large text (18px+ bold or 24px+ regular) needs only 3:1 for AA. Poor contrast makes text hard to read for users with low vision or color blindness, affecting roughly 8% of men and 0.5% of women. Testing contrast is one of the easiest accessibility improvements you can make.
When to Use the Color Contrast Checker
Use this tool during the design phase of any website or application to ensure text is readable against its background. It is required for WCAG compliance, which is legally mandated in many jurisdictions. Use it whenever you change brand colors, design dark mode themes, or receive accessibility audit findings about insufficient contrast.
Common Use Cases
- Verifying WCAG AA/AAA compliance during website design and redesign Color Converter - HEX, RGB, HSL & CMYK
- Testing brand color combinations for text readability across light and dark themes
- Responding to accessibility audit findings about insufficient contrast ratios
- Designing accessible email templates and marketing materials
Expert Tips
- Test your entire color palette, not just primary text - also check buttons, links, placeholders, and disabled states.
- For dark mode, avoid pure white text (#FFF) on pure black (#000) - it creates harsh contrast that causes eye strain. Use #E8E8E8 on #1A1A1A instead.
- When a brand color fails contrast requirements, adjust lightness by 5-10% in HSL to find the closest accessible alternative.
Frequently Asked Questions
- WCAG AA requires 4.5:1 for normal text (under 18px bold or 24px regular) and 3:1 for large text. WCAG AAA requires 7:1 for normal text and 4.5:1 for large text. Most accessibility laws reference the AA standard. UI components and graphical objects need at least 3:1 contrast.
- Yes. Dark mode must meet the same contrast requirements. Light text on a dark background needs at least 4.5:1 contrast ratio. Pure white (#FFFFFF) on dark backgrounds can cause eye strain - consider using a slightly off-white (#E0E0E0 to #F0F0F0) for body text in dark mode.
- Contrast ratio alone does not address color blindness. Two colors can have sufficient contrast but be indistinguishable for someone with deuteranopia (red-green blindness). Never rely solely on color to convey meaning - add icons, text labels, or patterns. This tool checks luminance contrast, which benefits all users including those with color vision deficiency.
- Adjust the lightness of either color while keeping the hue similar. For a brand color that's too light, darken it slightly. You can also adjust the background instead. Use the Color Converter tool to modify HSL lightness values until the contrast ratio passes. Small changes (5-10% lightness) are often enough.
What contrast ratio do I need?→
Does this apply to dark mode?→
What about color blindness?→
How do I fix a color that fails contrast?→
Related tools
12 suggested- 01Color Converter - HEX, RGB, HSL & CMYKConvert colors between HEX, RGB, HSL, and CMYK instantly. Live preview, one-click copy. Free tool for designers and developers.
- 02Color Picker - HEX, RGB & HSL ValuesPick colors from a visual spectrum and get HEX, RGB, and HSL values. Save history, view harmonies. Free online color picker.
- 03Color Palette Generator - Harmonious SchemesGenerate harmonious color palettes based on color theory. Copy HEX codes instantly. Free design tool for beautiful color combinations.
- 04CSS Grid Generator - Drag & Drop BuilderBuild CSS grid layouts visually with drag-to-resize columns and rows. Live preview with ready-to-copy CSS. Free online tool.
- 05CSS Flexbox Generator - Visual BuilderBuild CSS flexbox layouts visually with live preview and ready-to-copy code export. Free online flexbox playground.
- 06CSS Gradient Generator - Visual Editor FreeCreate beautiful linear and radial CSS gradients with a visual editor. Copy ready-to-use CSS code. Free online gradient builder.
- 07CSS Box Shadow Generator - Visual EditorCreate and preview CSS box shadows with intuitive sliders. Multiple layers, inset shadows, live preview. Copy CSS with one click.
- 08Glassmorphism Generator - Frosted Glass CSSGenerate CSS for frosted glass effects with live preview and presets. Adjust blur, transparency, and border. Copy CSS instantly.
- 09Neumorphism Generator - Soft UI CSS FreeGenerate CSS for soft UI neumorphic elements with live preview. Adjust size, radius, and colors. Copy CSS with one click. Free.
- 10Favicon Generator - Create Icons from TextCreate favicons from text with custom colors and shapes. Download as PNG in multiple sizes (16x16 to 512x512). Free online tool.
- 11Code to Image - Beautiful Code ScreenshotsTurn code snippets into beautiful, shareable images with syntax highlighting. Custom themes, backgrounds, and window styles. Free.
- 12Tint & Shade Generator - Color VariationsGenerate tints and shades from any base color. Full palette from light to dark. Click to copy hex values. Free design tool.
From the blog
Further reading- How to Create a Professional Color Palette for Your WebsiteLearn how to build a cohesive color palette for web design using free tools. Covers color theory, accessibility, CSS custom properties, and dark mode support.9 min read
- Understanding Color Theory: A Practical Guide for Web DesignersMaster color theory fundamentals and apply them to web design. Learn about the color wheel, color harmony, psychological effects of color, accessibility requirements, and practical palette building.10 min read
- Code to Image: How to Turn Code Snippets Into Beautiful ScreenshotsLearn how to convert code snippets into shareable screenshots for social media, blog posts, and documentation. Free browser tool, syntax themes, accessibility tips, and platform sizing guide included.7 min read