TFT

Color Contrast Checker

Check if your color combinations meet WCAG accessibility standards for text readability.

Colors
Text Size

WCAG has lower requirements for large text

Contrast Ratio
21.00:1
AAA
1:14.5:1 (AA)7:1 (AAA)21:1
WCAG Compliance
AA Normal

Ratio ≥ 4.5:1

Passes for normal text

AA Large

Ratio ≥ 3:1

Passes for large text

AAA Normal

Ratio ≥ 7:1

Passes for normal text

AAA Large

Ratio ≥ 4.5:1

Passes for large text

Live Preview

Sample Heading

This is sample text to preview how your color combination will look. The quick brown fox jumps over the lazy dog.

Small text with reduced opacity

Aa

Large Text (24px)

Aa

Normal Text (16px)

Color Values

Foreground

#000000

Background

#ffffff
CSS Output
color: #000000; background-color: #ffffff;

Why Contrast Matters

Low contrast text is hard to read for everyone, and impossible for some users with visual impairments. WCAG (Web Content Accessibility Guidelines) sets minimum contrast ratios to ensure text is readable.

This checker calculates the contrast ratio between your foreground and background colors, then tells you if they pass WCAG AA and AAA standards for normal and large text.

WCAG Requirements

Level AA (Minimum)
Normal text:4.5:1
Large text (18pt+):3:1

Required for most websites.

Level AAA (Enhanced)
Normal text:7:1
Large text (18pt+):4.5:1

Best practice for public content.

Tips for Better Contrast

1

Dark text on light backgrounds

Safest choice for readability. Near-black (#1a1a1a) on near-white (#fafafa) passes all requirements with room to spare.

2

Avoid pure black on pure white

#000 on #fff has maximum contrast but causes eye strain. Use #1a1a1a or #333 for reduced glare while still passing AAA.

3

Test in grayscale

If your design works in black and white, it'll work for colorblind users. Remove color and check if text is still readable.

4

Don't rely on color alone

Links should have underlines or other indicators. Error states need icons or text, not just red coloring.

Common Questions

What counts as "large text"?

18pt (24px) or larger, or 14pt (18.5px) bold. Headings usually qualify, body text doesn't. UI components like buttons have their own considerations.

Do disabled elements need contrast?

WCAG 2.1 doesn't require contrast for disabled elements, but WCAG 2.2 adds requirements. Best practice is to ensure they're still readable.

What about logos and incidental text?

Logos, decorative text, and inactive UI components are exempt. But if the text conveys information, it should be readable.

Other Free Tools

CSS Color Converter

Convert colors between HEX, RGB, HSL, HSV, OKLCH, and more. Get CSS-ready color values instantly. Free online CSS color converter for designers and developers.

CSS Color Palette Generator

Generate harmonious color palettes from images or color theory rules. Export CSS variables and Tailwind config. Free online color palette generator for web design.

Tint & Shade Generator

Generate tints (lighter) and shades (darker) of any color across multiple steps. Build color scales for design systems. Free online tint shade tool.

CSS Gradient Generator

Create linear, radial, and conic gradients with live preview. Generate CSS gradient code for backgrounds and UI. Free online gradient maker.

CSS Mesh Gradient Generator

Create stunning multi-point mesh gradients with smooth color transitions. Generate CSS and SVG mesh gradients. Free online mesh gradient tool.

Dark Mode CSS Generator

Generate prefers-color-scheme dark mode CSS from your color palette. Create accessible dark themes instantly. Free online dark mode CSS generator.

Google Fonts Pairing Tool

Discover and preview harmonious Google Fonts combinations. Find perfect heading and body pairings. Free online font pairing tool.

Letter Spacing & Line Height Visualizer

Adjust and preview letter-spacing and line-height values for perfect typography rhythm. Free online type visualizer.

CSS Filter Generator

Apply blur, brightness, contrast, hue-rotate, and more filters visually. Generate CSS filter code instantly. Free online CSS filter generator.

CSS Button Generator

Design beautiful buttons with hover effects, gradients, and shadows. Generate production-ready CSS button styles. Free online CSS button maker.

CSS Border Radius Generator

Create asymmetric border-radius values with live preview. Generate organic, smooth corner shapes for modern UI design. Free online border radius tool.

CSS Box Shadow Generator

Create multi-layer box shadows with blur, spread, and inset options. Generate beautiful shadows for buttons, cards, and UI elements. Free online CSS shadow tool.

Glassmorphism Generator

Create glassmorphism effects with backdrop-filter, blur, and transparency. Generate modern frosted glass CSS. Free online glassmorphism generator.

Neumorphism Generator

Create soft UI neumorphic effects with subtle shadows and highlights. Generate modern soft design CSS. Free online neumorphism generator.

CSS Pattern Generator

Generate repeating patterns — stripes, dots, checkerboard, waves — using CSS and SVG. Free online CSS pattern generator for backgrounds.

CSS Background Noise Generator

Generate subtle noise and grain textures using CSS and SVG filters. Add depth and texture to backgrounds with this free online CSS noise generator.

CSS Text Shadow Generator

Create multi-layer text shadows with blur, spread, and color. Generate beautiful text effects. Free online CSS text shadow generator.

CSS Shape Generator

Create triangles, arrows, speech bubbles, and more using pure CSS. Generate shape code instantly. Free online CSS shape maker.

CSS Clip Path Maker

Draw custom clip-path shapes — polygons, circles, ellipses — with visual editor. Generate CSS clip-path code instantly. Free online clip path generator.

CSS Transition Previewer

Preview and compare CSS transition easing functions. Test built-in and custom cubic-bezier curves. Free online transition previewer.

Cubic Bezier Editor

Visually create custom cubic-bezier easing functions. Generate smooth, natural animations. Free online cubic-bezier editor for CSS transitions.

CSS Animation Generator

Create CSS keyframe animations with live preview. Generate smooth, performant animations for web projects with customizable easing, duration, and iteration. Free online CSS animation builder.

CSS Loader Generator

Create pure CSS loading spinners, dots, and bars. Customize size, color, and animation speed. Free online CSS loader generator.

CSS Grid Generator

Create CSS Grid layouts visually. Generate grid-template-areas, gap, and responsive breakpoints. Free online CSS Grid layout builder.

Flexbox Playground

Experiment with Flexbox properties interactively. Generate flex container and item CSS with live preview. Free online Flexbox learning tool.

CSS Spacing Scale Generator

Generate consistent spacing and size scales for design tokens. Create 4px, 8px, 16px base scales. Free online spacing scale generator.

Fluid Space Calculator

Generate clamp()-based responsive spacing that scales with viewport. Create fluid design systems. Free online fluid space calculator.

Fluid Typography Calculator

Create responsive font sizes using CSS clamp() for smooth scaling between breakpoints. Free online fluid typography generator.

PX to REM Converter

Convert pixels to REM and EM units with configurable root font size. Generate accessible, scalable CSS. Free online px to rem converter.

Viewport Unit Converter

Convert between vw, vh, vmin, vmax, and px units. Generate responsive viewport-based CSS. Free online viewport unit converter.