Color Converter (HEX, RGB, HSL)โ†’Specialized Version
๐ŸŽจ

Color Contrast Checker

Check color contrast

RGB
HSL

All formats

WCAG contrast

#FFFFFF

Normal text at 16px

Large text at 24px bold

3.68:1
  • AA ยท normal text (4.5:1)Fail
  • AA ยท large text (3:1)Pass
  • AAA ยท normal text (7:1)Fail
  • AAA ยท large text (4.5:1)Fail
  • UI components (3:1)Pass

Lightness variations

Color Contrast Checker

Verify that your text and background color combinations meet WCAG (Web Content Accessibility Guidelines) accessibility standards. Ensure your designs are readable for all users, including those with visual impairments.

WCAG Contrast Requirements

LevelNormal TextLarge TextUI Components
AA4.5:13:13:1
AAA7:14.5:1Not defined
Large text is defined as 18pt+ or 14pt+ bold.

How to Use

1. Enter your foreground (text) color 2. Enter your background color 3. View the contrast ratio 4. Check pass/fail for each WCAG level

Understanding Contrast Ratios

RatioRatingReadability
21:1MaximumBlack on white
7:1+ExcellentAAA compliant
4.5:1+GoodAA compliant
3:1+MinimumLarge text only
<3:1FailAccessibility issue

Common Contrast Issues

IssueProblemFix
Light gray on whiteLow contrastDarken the gray
Yellow on whiteVery low contrastUse dark text
Blue on blackCan be lowCheck specific shades

Why Accessibility Matters

  • Legal compliance: Many countries require accessible websites
  • User experience: ~15% of users have some visual impairment
  • SEO: Accessibility impacts search rankings
  • Reach: Don't exclude potential users
Test your color combinations to ensure WCAG compliance.

A Full Ramp From This Colour

Design systems settle on a 50โ€“900 scale because it covers backgrounds, borders, text and states without anyone reaching outside the palette. Mixing toward white and black rather than adjusting HSL lightness keeps more of the hue's character:

StepColourContrast on whiteSafe for
50#F5F9FF1.06:1backgrounds and fills
100#EBF3FE1.12:1backgrounds and fills
200#CEE0FD1.34:1backgrounds and fills
300#B1CDFB1.62:1backgrounds and fills
400#76A8F92.40:1backgrounds and fills
500#3B82F63.68:1large text, borders
600#326FD14.85:1body text on white
700#295BAC6.59:1body text on white
800#2048878.98:1body text on white
900#18346212.31:1body text on white
The contrast column is the one that decides usage. Steps below 3:1 cannot carry text at any size and belong in fills and dividers; steps at 4.5:1 and above are safe for body copy.

Adjusting It

Base colour in HSL is hsl(217, 91%, 60%). Two useful moves:

``css /* +10% lightness, same hue */ --lighter: #6da2f8; /* โˆ’10% lightness */ --darker: #0b64f4; ``

Raising lightness also drops perceived saturation, so a lightened colour reads greyer than its numbers suggest. Adding 5โ€“10% saturation alongside every 20% of lightness keeps the ramp looking like one hue rather than a fade to grey.

Frequently Asked Questions

What is WCAG when working with Color Contrast Checker?

WCAG (Web Content Accessibility Guidelines) are international standards for web accessibility, including color contrast requirements.

What contrast ratio do I need?

4.5:1 minimum for normal text (WCAG AA), 7:1 for enhanced accessibility (WCAG AAA).

Why does contrast matter?

Sufficient contrast ensures text is readable for users with visual impairments, color blindness, or in poor lighting.

Related Tools

Explore other tools you might find useful:

More Color Converter (HEX, RGB, HSL) tools

You might also need