Calcism logo
calcism.com Precision Online Tools
Developer & Design 100% Client-Side

Color Converter & WCAG Contrast Checker

Check WCAG 2.1 AA/AAA accessibility contrast ratios and convert colors between HEX, RGB, and HSL.

rgb(15, 23, 42)·hsl(222°, 47%, 11%)
rgb(248, 250, 249)·hsl(150°, 17%, 98%)
Live Contrast Preview
The quick brown fox jumps over the lazy dog.

Readable body copy ensures your website is accessible to everyone, including users with low vision or color vision deficiency.

17.03:1
Contrast Ratio
WCAG AA Normal Text
Min 4.5:1
PASS
WCAG AA Large Text / UI
Min 3.0:1
PASS
WCAG AAA Normal Text
Min 7.0:1
PASS
WCAG AAA Large Text
Min 4.5:1
PASS

How to Use This Tool

  • Pick or paste a text (foreground) color and a background color in HEX format.
  • See the exact WCAG 2.1 contrast ratio along with AA/AAA pass badges for normal text, large text, and UI components.
  • Copy synchronized HEX, RGB, and HSL values with one click or swap colors instantly.

Formula & Method

Contrast Ratio = (L1 + 0.05) / (L2 + 0.05) where L is relative luminance

All calculations run directly inside your browser using standard IEEE-754 floating-point arithmetic and Web Crypto APIs where applicable. No input values are sent to any external server.

Frequently Asked Questions

What contrast ratio is required for WCAG AA?

WCAG 2.1 Level AA requires at least 4.5:1 for normal body text and 3:1 for large text (18pt / 24px regular or 14pt / 18.66px bold) and UI components.

What is required for WCAG AAA?

Level AAA requires 7:1 for normal text and 4.5:1 for large text.

Related Tools