DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeColorContrast Checker

About Contrast Checker

Contrast Checker preview - Color tool

Check WCAG AA/AAA contrast ratio between two colors. Part of the DevTools Surf developer suite. Browse more tools in the Color collection.

Use Cases

  • Verifying brand colors meet WCAG accessibility requirements
  • Testing text readability on colored backgrounds for UI designs
  • Auditing existing websites for accessibility compliance
  • Choosing accessible link colors that stand out from body text

Tips

  • Aim for 4.5:1 ratio minimum to meet WCAG AA standards
  • Test both large text and normal text contrast requirements
  • Check your color pairs against both AA and AAA compliance levels

Fun Facts

  • WCAG 2.0 was published on December 11, 2008, establishing the 4.5:1 contrast ratio requirement that is now law in many countries.
  • The contrast ratio formula uses relative luminance, which weights green at 71.52%, red at 21.26%, and blue at only 7.22% to match human vision.
  • An estimated 1.3 billion people worldwide live with some form of visual impairment, making contrast compliance a significant accessibility concern.

FAQ

What's a passing WCAG contrast ratio?
AA: 4.5:1 for body text, 3:1 for large text and UI. AAA: 7:1 for body, 4.5:1 for large. Modern web standards require at least AA.
Why does the text on some pages look unreadable?
Below 3:1 ratio. The tool flags anything under that as accessibility failure. Common culprit: gray body text on white background (#888 = 3.5:1, borderline).
Does it account for text size?
Yes — toggle between body text and large text. Large means 18pt+ or 14pt bold. The threshold drops because big text is easier to read at lower contrast.
What about APCA?
APCA is a newer perceptual contrast algorithm. WCAG 3.0 will use it. Current WCAG 2.1 uses the relative luminance formula; this tool uses WCAG 2.1.

Related Color Tools

Color ConverterColor Palette GeneratorGradient GeneratorColor Contrast MatrixHex → TailwindGradient → CodeColor Name FinderColor Scheme Generator
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback