How to use Contrast Checker
- Type a hex code or use the color picker for the text color and the background color.
- Read the contrast ratio and the WCAG 2.2 results for normal text, large text and UI components.
- If a level fails, use the one-click fix to adjust the text or the background just enough to pass.
- Copy the link to share the exact color pair with your team or in a design review.
About Contrast Checker
Color contrast is the difference in luminance between text and its background, written as a ratio from 1:1 (no contrast) to 21:1 (black on white). WCAG, the accessibility standard most products follow, sets minimums so text stays readable for people with low vision, color blindness or a screen in bright sunlight.
This contrast checker works as a contrast ratio calculator and a fixer at the same time: instead of guessing new colors, it moves only the lightness of the color you choose, keeping your brand hue, until the pair reaches AA (4.5:1) or AAA (7:1).
What it does
- Contrast ratio plus pass/fail for AA and AAA, normal and large text, and UI components
- One-click fix that adjusts the text or the background just enough to pass
- Live preview with headings, body text, buttons and icons
- Shareable URL for every color pair
FAQ
What contrast ratio does WCAG require?
WCAG 2.2 AA requires 4.5:1 for normal text and 3:1 for large text (24px, or 18.66px bold) and for UI components. AAA requires 7:1 for normal text and 4.5:1 for large text.
How does the one-click fix work?
It keeps the hue and saturation of the color you choose to change and moves only its lightness, the smallest amount needed to reach the next failing threshold.
What is the difference between WCAG AA and AAA?
AA is the level most laws and audits ask for: 4.5:1 for normal text and 3:1 for large text. AAA is stricter, 7:1 and 4.5:1, and is usually applied to body text in products that need the highest readability.
Does contrast apply to icons and buttons?
Yes. WCAG 1.4.11 asks for at least 3:1 between UI components (button borders, form fields, icons that carry meaning) and the colors next to them.
Is this contrast checker free?
Yes. It is free, needs no sign-up and runs entirely in your browser.
📖 How to fix low color contrast (WCAG 2.2)
More free tools
- Palette Generator - Pick a hue, choose a color harmony, and get a full accessible palette with live AA/AAA contrast checking.
- Image → Palette - Drop in an image, pull out its dominant colors, and see which pairs are safe to use together.
- Color Blindness Simulator - See a palette through protanopia, deuteranopia, tritanopia and achromatopsia - and catch colors that collapse.
- Type Scale Generator - Pick a base size and a ratio, get a full type scale with live preview, fluid clamp() and tokens to copy.
- Gradient & Mesh Generator - Linear, radial, conic or blobby mesh gradients - drag the points, shuffle the colors, copy the CSS.
- Component States Explorer - Buttons, inputs and cards in every state - hover, focus, pressed, disabled, error - side by side with contrast checks.
- Design Token Converter - Paste W3C tokens, Tokens Studio or Figma Variables JSON and get CSS, SCSS, Tailwind v4 or SwiftUI - aliases included.
- Motion & Easing Playground - Drag cubic-bezier handles, tune a real spring, watch them race, and export motion tokens as CSS linear(), Framer Motion or SwiftUI.
- Auto-Trim - Drop in PNGs and get them back without the empty transparent edges - in bulk, in your browser, as one ZIP.
- Text Expansion Stress Test - See how a UI breaks in German, Spanish or pseudo-localized text - and which CSS fixes make it survive translation.
- Mini A11y Audit - Paste HTML and find missing alt text and labels, unnamed buttons, heading jumps, tiny tap targets and low contrast.
- Multi-size Preview - One message laid out across social and display-ad sizes, with platform safe zones and a draggable focal point. Export every PNG.
- Mobile Preview - Open any website inside iPhone, Pixel, Galaxy and iPad frames at their real viewport sizes. Rotate it or compare four devices at once.
- Hue Hunt - Match five colors by eye with hue, saturation and lightness. Scored by perceptual distance, with a daily challenge to share.
- Pass or Fail - Twenty quick rounds: does this text pass WCAG AA contrast? Trust your eye, then see the real ratios.
- Optical Eye - Fix seven layout flaws by eye: center a play icon, even out padding, size a circle against a square.
- State Panic - Components fall with something happening to them. Pick the right UI state before they hit the floor.
- Easing Golf - Mini golf with animation curves: shape a cubic-bezier so the puck hits every flag on time. Par is three.
- Contrast Survival - The background keeps shifting. Hold the text lightness so it passes WCAG AA, then AAA, as long as you can.
- Token Rush - Swap hard-coded values for the right design tokens, fast. Then flip the theme and see what breaks.
- Kern Me - Space six words by eye. Each has one letter pair too tight or too loose; the answer is the font designer’s own kerning.
- Tab Order - Tap a screen’s buttons, links and fields in the order the Tab key should visit them. Five screens, one WCAG rule.
- Snap to Grid - Five components with spacing nudged off the scale. Snap every padding and gap back to its 4 and 8 px step before the clock runs out.
- Weight Watcher - A sample hides its font weight, size or line height. Slide yours until the two match, six rounds, with the real value after each.
- Radius Match - A rounded box inside a rounded box. Slide the inner radius until the gap is even. The rule: outer radius minus padding.
- Ramp Repair - Nine shades of one color, light to dark, and one is broken. Spot it before your lives run out.
- Name That Component - A tooltip or a popover? A tab or a segmented control? Name ten UI components from a drawing.
- Fat Finger - Buttons, links and icons drawn at their real tap size. Flag the ones under the 24, 44 or 48 px minimum.