Example
Input (foreground / background)
Foreground: #475569 Background: #ffffff
Output
Contrast ratio: 7.15 : 1 WCAG AA (normal): ✓ pass (4.5+) WCAG AA (large): ✓ pass (3+) WCAG AAA (normal): ✓ pass (7+) WCAG AAA (large): ✓ pass (4.5+)
Note
sRGB relative-luminance contrast (WCAG 2.1). 'Large' means ≥18pt or ≥14pt bold.
Usage / FAQ
When to use
- Audit text colors in a design system for accessibility
- Catch readability issues caused by low contrast early
- Confirm WCAG AA / AAA compliance (legal requirements)
- Check contrast pairs in dark mode
- Verify hover-state contrast for buttons and links
FAQ
- Q.AA vs AAA?
- A.AA is the typical minimum for the web (4.5:1 normal, 3:1 large). AAA is the strictest (7:1, 4.5:1) — common for government, finance, healthcare. Most sites target AA.
- Q.Why does large text have a lower bar?
- A.Large characters have more visible area, easing perception. ≥18pt (~24px) or ≥14pt bold (~18.7px) qualifies as 'large'.
- Q.What about APCA / WCAG 3?
- A.WCAG 3 will introduce APCA, a contrast algorithm that better matches human perception. It's still draft — this tool uses WCAG 2.1.
Fun facts
WCAG's color-contrast thresholds — AA requires 4.5:1 for normal text and 3:1 for large text (18pt+ or 14pt bold); AAA bumps those to 7:1 and 4.5:1. These ratios trace back to clinical studies of low vision by British color scientist Lovie-Kitchin in the 1980s, later codified into policy.
W3C — WCAG 2.1 ContrastThe WCAG contrast formula doesn't use raw RGB — it uses 'relative luminance' (Y), which undoes sRGB's gamma curve and applies coefficients (R=0.2126, G=0.7152, B=0.0722). The fact that the human eye is most sensitive to green is baked right into the formula.
W3C — Relative luminanceThe WCAG contrast formula doesn't fully solve color blindness (~8% of men and ~0.5% of women globally) — reds and greens can have similar luminance, so they blur together for affected users. WCAG 2.2 (2023) tightened some criteria, but you still need dedicated color-blindness verification.
Wikipedia — Color blindness
Related guides
- WCAG Color Contrast — AA, AAA, and What the 4.5:1 Ratio Means
How WCAG contrast ratios are calculated, the difference between AA and AAA, what 'large text' means, common UI failures, and APCA (the next-gen formula).
- How Computers Represent Color (RGB, HSL, OKLCH)
What sRGB, P3, RGB, HSL, OKLCH actually mean. Why HSL feels intuitive but breaks visual consistency, why OKLCH is the new default in design systems, and how to read gamut and luminance like a pro.
Related tools
- Color Converter
Convert colors between HEX, RGB, and HSL with a live preview swatch. Auto-detects any of the three input formats.
- Image to Base64 (Data URI)
Convert an image file to a Base64 data URI for inline embedding in HTML/CSS/Markdown. Up to 5 MB.
- Image Resize & Compress
Resize, crop, and compress images entirely in your browser. Pick width × height, choose crop or fit mode, adjust JPEG quality. Outputs as {original}_{w}x{h}.{ext}.
- Image Crop
Crop images right in your browser — drag to select, lock aspect ratios (1:1, 16:9…), export PNG/JPEG. No upload.
- Emoji Picker
Pick and copy emojis with one click. Search by name (en/ko), browse by category, and keep your recents and favorites in the browser.
- QR Code Generator
Generate a QR code from any text or URL. Adjustable error correction (L/M/Q/H), SVG output, downloadable.
- Color Palette Generator
Generate a palette from a single base color — shades, tints, complement, analogous, triad, tetrad. HSL-based. 0 dependency.
- CSS Gradient Generator
Build linear, radial, and conic CSS gradients with color stops + angle/position. Live preview + copy-ready CSS.
- PDF Merge
Merge multiple PDF files into a single document. Drag to reorder pages, all client-side — files never leave your browser.
- PDF Split
Extract a page range from a PDF — e.g. 1-3,5,7-9. All client-side, files never leave your browser.
- PDF Rotate
Rotate all or selected PDF pages by 90°, 180°, or 270°. Useful for scanned documents in wrong orientation. All client-side.
- PDF Watermark
Add a text watermark (CONFIDENTIAL, DRAFT, etc.) to every PDF page. Control opacity, rotation, size, color. All client-side.
- PDF Compress
Re-encode a PDF with object stream compression and metadata stripping. Modest size reduction (text-heavy: 5-20%). Image-heavy PDFs need server-side tools. All client-side.
- Image to PDF
Combine JPG, PNG, and other images into a single PDF — in your browser. Reorder pages, choose A4/Letter or original size. Nothing is uploaded.
- Favicon Generator
Make a favicon from an image, emoji, or text — multi-size favicon.ico, apple-touch-icon, PWA icons + ready HTML/manifest snippets, in your browser.