Accessible Color Checker

Evaluate foreground and background color contrast against WCAG 2.1 AA and AAA standards.

No uploadsNo sign-upInstant results
WCAG 2.1 AA & AAAColor Blindness Sim100% Local • Zero Uploads
Export WCAG Report (JSON)
Offline engine ready100% private in-browser workspace • Zero cloud uploads
100% Private • Zero Server File Uploads

Why Use Utiliome's Free Accessible Color Checker?

Built from the ground up for strict privacy, instant execution, and zero friction. No subscriptions, paywalls, or account registrations required.

W3C WCAG 2.1 Compliance

Instant verification against WCAG 2.1 Level AA and Level AAA thresholds across regular text, large headings, and interactive graphical UI components.

Relative Luminance Calculation

Computes exact IEC 61966-2-1 sRGB relative luminance and mathematical contrast ratios ranging from 1:1 up to 21:1.

Automated Shade Correction

Calculates the closest compliant tonal adjustment while preserving your original brand hue and saturation coordinates.

Client-Side Eyedropper Privacy

Sample interface colors directly from local image files or live DOM pixels using the HTML5 EyeDropper API without external network requests.

Utiliome vs Traditional Cloud Alternatives

Compare our local-first WebAssembly engine against legacy cloud tools.

Feature Utiliome (Local Browser) Legacy Cloud Converters
Contrast Standards Supported Simultaneous WCAG 2.1 AA/AAA (4.5:1 & 7:1) and WCAG 3.0 APCA Lc scoring Basic WCAG 2.0 ratio only with no APCA perceptual luminance check
Auto-Fix Accessible Shade Finder Calculates nearest passing AA & AAA hex values via HSL/OKLCH lightness nudging Manual trial-and-error slider dragging until badge turns green
Alpha Compositing & Color formats Handles HEX, RGB, RGBA, HSL & OKLCH with real-time background alpha blending Accepts 6-digit HEX codes only and rejects semi-transparent layers
Privacy & Design System Security 100% client-side computation — unreleased brand palettes never leave browser Logs tested brand color pairs and telemetry on remote servers
How it works

How to Use Accessible Color Checker in 3 Easy Steps

No software installation required. Everything runs directly inside your web browser.

1

Input Colors or Sample Pixels

Type or paste foreground and background HEX, RGB, or HSL color strings, or activate the eyedropper tool to sample color pixels directly from an imported image.

2

Evaluate WCAG Contrast Ratios

Inspect the calculated contrast ratio alongside granular pass and fail scorecards for Normal Text AA, Normal Text AAA, Large Text AA, Large Text AAA, and UI Components.

3

Adjust and Export Accessible Tokens

Apply automated luminance adjustment suggestions to achieve target conformance levels, reverse foreground and background roles if needed, and copy standardized CSS color declarations.

WCAG Contrast Evaluation Syntax and Token Integration

Quick Answer: WCAG contrast evaluation measures luminance differences between text and its background. A passing score requires a contrast ratio of at least 4.5:1 for normal body text under Level AA or 7.0:1 for Level AAA. Large text requires 3.0:1 for AA and 4.5:1 for AAA, while active UI components require 3.0:1.

Web Content Accessibility Guidelines (WCAG) 2.1 define quantitative thresholds to guarantee that textual information and structural user interface boundaries remain legible for individuals with moderate low vision or color vision deficiencies. Conformance hinges on calculating the contrast ratio between two solid colors: the foreground presentation and the background substrate.

WCAG 2.1 Threshold Criteria

  • Normal Text AA (Minimum Contrast): Requires a minimum ratio of 4.5:1 for standard body copy below 18 point (24px) or bold text below 14 point (approximately 18.66px).
  • Normal Text AAA (Enhanced Contrast): Requires a minimum ratio of 7.0:1 for standard body typography.
  • Large Text AA: Requires at least 3.0:1 for typography at or above 18 point (24px) regular weight or 14 point (18.66px) bold weight.
  • Large Text AAA: Requires at least 4.5:1 for large typography.
  • Graphical Objects and User Interface Components (AA): Requires at least 3.0:1 against adjacent background colors for form control borders, interactive button outlines, focus rings, and meaningful chart graphics.

Production Design Token Example

When declaring color tokens in a modern design system, map accessible color pairings to semantic CSS custom properties to ensure theme changes preserve legal conformance:

:root {
  /* Surface Tokens */
  --color-surface-canvas: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-surface-inverted: #0f172a;

  /* Text Tokens - WCAG AAA Compliant on Canvas (Ratio > 7.0:1) */
  --color-text-primary: #0f172a; /* 16.0:1 on #ffffff */
  --color-text-secondary: #475569; /* 7.3:1 on #ffffff */

  /* Text Tokens - WCAG AA Compliant on Canvas (Ratio >= 4.5:1) */
  --color-text-muted: #64748b; /* 4.6:1 on #ffffff */

  /* Interactive UI Component Tokens (Ratio >= 3.0:1) */
  --color-border-input: #94a3b8; /* 3.1:1 on #ffffff */
  --color-focus-ring: #2563eb; /* 4.6:1 on #ffffff */
}

.btn-accessible {
  background-color: var(--color-surface-inverted);
  color: #ffffff; /* 16.0:1 ratio - passes AAA */
  border: 1px solid var(--color-surface-inverted);
  outline-offset: 2px;
}

.btn-accessible:focus-visible {
  outline: 2px solid var(--color-focus-ring);
}

By anchoring typography and border colors to audited tokens, front-end code bases avoid accidental contrast regression when components are rearranged or nested across light and dark theme contexts.

W3C Relative Luminance Mathematics and sRGB Gamma Expansion

Quick Answer: Relative luminance calculation begins by normalizing 8-bit sRGB color channels to decimal values between 0.0 and 1.0. Non-linear channels undergo IEC 61966-2-1 gamma expansion before applying ITU-R BT.709 spectral weights: L = 0.2126 * R + 0.7152 * G + 0.0722 * B. The contrast ratio is then computed as (L1 + 0.05) / (L2 + 0.05).

The W3C contrast ratio formula evaluates perceptual brightness differences based on human spectral sensitivity to light. Perceived brightness does not scale linearly with 8-bit channel values (0 to 255); digital displays apply non-linear gamma curves that must be linearized prior to photopic analysis.

Step 1: sRGB Channel Linearization

Each 8-bit color channel (R8, G8, B8) is divided by 255 to obtain a normalized float C between 0.0 and 1.0. Next, the IEC 61966-2-1 gamma expansion function removes display gamma compression:

If C <= 0.04045:
    C_linear = C / 12.92
Else:
    C_linear = ((C + 0.055) / 1.055) ^ 2.4

This piecewise formula accounts for linear behavior near near-black values (C <= 0.04045) and applies an exponential power curve with a standard 2.4 exponent for brighter tones.

Step 2: Photopic Luminance Weighting

Human retinal cones exhibit peak sensitivity in the green spectrum, followed by red, with minimal sensitivity in blue wavelengths. The linear channels are summed using ITU-R Recommendation BT.709 coefficients to derive relative luminance (L):

L = (0.2126 * R_linear) + (0.7152 * G_linear) + (0.0722 * B_linear)

Relative luminance values range from 0.0 for pure black (#000000) to 1.0 for pure white (#ffffff).

Step 3: Contrast Ratio Calculation

Given two colors with relative luminances L1 (the lighter color) and L2 (the darker color), the contrast ratio CR is calculated as:

CR = (L1 + 0.05) / (L2 + 0.05)

The constant 0.05 represents ambient flare, compensating for light reflected off the display glass under typical ambient room illumination. Because L1 >= L2, the resulting ratio always falls between 1:1 (identical luminance) and 21:1 (absolute black versus absolute white).

Design System Implementation and Browser Eyedropper Architecture

Quick Answer: Modern design systems embed contrast audits directly into design tokens and component styling pipelines. Using the native browser EyeDropper API and HTML5 canvas sampling, developers inspect live UI elements and screenshots entirely within client memory. No image payloads or color values travel over external networks, ensuring strict enterprise data security.

Auditing accessibility during component development requires fast verification workflows that avoid manual hexadecimal transcription. Modern browsers provide client-side sampling primitives that allow zero-latency extraction directly from rendered viewports or pasted mockups.

Native EyeDropper API Integration

Chromium-based browsers support the native EyeDropper interface, enabling pixel extraction from any rendered coordinate on screen without capturing canvas snapshots:

async function sampleColorFromScreen() {
  if (!('EyeDropper' in window)) {
    throw new Error('EyeDropper API is unsupported in this browser environment.');
  }
  
  const eyeDropper = new window.EyeDropper();
  try {
    const result = await eyeDropper.open();
    // Returns an object containing the sampled hex string: { sRGBHex: '#4f46e5' }
    return result.sRGBHex;
  } catch (error) {
    // User aborted sampling via the Escape key
    return null;
  }
}

Canvas Image Data Extraction for Image Drops

When testing color contrast from mockups or screenshots dropped into the workspace, an offscreen HTMLCanvasElement decodes the bitmap and samples color data without uploading files to remote servers:

function extractPixelColor(imageElement, x, y) {
  const canvas = document.createElement('canvas');
  canvas.width = imageElement.naturalWidth;
  canvas.height = imageElement.naturalHeight;
  
  const ctx = canvas.getContext('2d', { willReadFrequently: true });
  ctx.drawImage(imageElement, 0, 0);
  
  const pixel = ctx.getImageData(x, y, 1, 1).data;
  const [r, g, b] = pixel; // 8-bit unsigned integer channels [0..255]
  
  return `#${((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)}`;
}

Enterprise Privacy Guarantees

Because all image manipulation and matrix transformations happen inside the browser runtime, proprietary design system mockups, unreleased product screenshots, and internal user records never leave client workstation memory. This architecture complies with enterprise zero-trust security postures and strict air-gapped intranet policies.

Color Contrast Checker vs Palette Generators: Which Tool Do You Need?

Quick Answer: While contrast checkers validate legibility compliance between paired foreground and background tones against regulatory accessibility standards, palette generators create harmonic swatches or complete tonal scales. Contrast checking ensures legal compliance and readability, whereas palette tools determine overall aesthetic harmony and comprehensive design token hierarchies across multi-component user interfaces.

Designing accessible web applications requires coordinating aesthetic color selection with strict legibility verification. While sibling tools generate color relationships, each serves a distinct role in the design system pipeline.

Sibling Tool Comparison

Functional Dimension Accessible Color Checker Color Palette Generator Material Design Palette Generator
Core Purpose Audits legibility between two specific color layers Generates harmonious 5-swatch color combinations Builds 50–900 stepped tonal scales for design systems
Compliance Standard W3C WCAG 2.1 (AA & AAA) plus graphical UI criteria Visual color theory (Analogous, Triadic, Complementary) Google Material Design tonal elevation specifications
Mathematical Engine IEC 61966-2-1 relative luminance & (L1+0.05)/(L2+0.05) HSL/HCL angle distribution and chromatic harmony Tonal luminance curves mapped across 10 elevation weights
Input Structure Foreground and background color pair Seed color or random harmonious lock points Single primary key color
Primary Output Contrast ratio (1:1 to 21:1) & shade correction Cohesive hex palette with CSS variable export Full 50–900 shade map with contrast-safe text pairings

When to Use Each Tool

  1. Use Color Palette Generator when initiating a new visual identity or looking for cohesive five-color brand palettes based on classic color harmonies such as monochromatic, complementary, or split-complementary arrangements.
  2. Use Material Design Palette Generator when architecting a complete component token library that requires predictable tonal steps (50, 100, 200, ..., 900) for hover states, active states, and surface elevations.
  3. Use Accessible Color Checker when pairing body text, button labels, link anchors, or form borders with background surfaces to ensure regulatory compliance with Americans with Disabilities Act (ADA) standards and European standard EN 301 549.
FAQ

Accessible Color Checker FAQ and Technical Guide

Everything you need to know about using Utiliome's free online accessible color checker.

What is the difference between WCAG AA and AAA contrast requirements?

Level AA is the standard legal baseline for web accessibility, requiring a minimum contrast ratio of 4.5:1 for standard body text and 3.0:1 for large text or graphical UI elements. Level AAA represents enhanced compliance, requiring 7.0:1 for normal text and 4.5:1 for large text. Most commercial and governmental websites target Level AA conformance.

What qualifies as large text under WCAG 2.1 guidelines?

Under WCAG 2.1, large text is defined as typography rendered at a minimum size of 18 point (typically 24 CSS pixels) for standard weight fonts, or 14 point (approximately 18.66 CSS pixels) for bold typography with a font-weight of 700 or greater.

Why does the WCAG formula add 0.05 to relative luminance values?

The 0.05 constant represents an ambient light flare factor. Under typical room lighting conditions, computer displays reflect environmental light off the screen glass, preventing absolute black from registering as zero luminance. The 0.05 offset accounts for this physical limitation, ensuring calculated contrast ratios mirror real-world visual perception.

Does this tool evaluate semi-transparent foreground or background colors?

The tool computes contrast by blending semi-transparent RGBA or HSLA foreground colors over the underlying solid background color using standard alpha compositing formulas. Once the resulting opaque RGB color is derived, relative luminance and WCAG ratios are computed accurately.

How does the automated shade suggestion fixer determine the recommended color?

The shade fixer holds the original color's hue and saturation coordinates constant in HSL space while iteratively shifting luminance up or down until the mathematical contrast ratio crosses the selected 4.5:1 or 7.0:1 threshold. This provides an accessible color with minimal disruption to your brand palette.

Are my color values or uploaded screenshots transmitted to external servers?

No. All contrast calculations, canvas pixel extractions, and color space transformations execute 100% locally within your browser using JavaScript and client-side canvas APIs. No color tokens, image data, or telemetry payloads are transmitted across external networks.