All Tools

Color Contrast Analyzer

Check WCAG 2.1 contrast ratios for any color pair. Get pass/fail badges for AA and AAA levels, a live text preview, and automatic suggestions if your colors fail AA compliance.

The quick brown fox

jumps over the lazy dog. 0123456789 !@#$%

Small body text — this is how 12px text looks on this background.

13.98
contrast ratio
Pass
AA NormalNormal text ≥18px or bold ≥14px
≥4.5:1
Pass
AA LargeLarge text ≥18px regular or ≥14px bold
≥3:1
Pass
AAA NormalNormal text (enhanced)
≥7:1
Pass
AAA LargeLarge text (enhanced)
≥4.5:1
Buy me a coffee

WCAG 2.1 contrast ratio requirements

The Web Content Accessibility Guidelines (WCAG) 2.1 define minimum contrast ratios to ensure text is readable by people with low vision or color deficiencies.

  • AA Normal text — contrast ratio ≥ 4.5:1 for text smaller than 18px regular / 14px bold.
  • AA Large text — contrast ratio ≥ 3:1 for large text (18px+ regular or 14px+ bold).
  • AAA Normal text — contrast ratio ≥ 7:1 (enhanced, for maximum accessibility).
  • AAA Large text — contrast ratio ≥ 4.5:1 for large text (enhanced).

How contrast ratio is calculated

The contrast ratio uses relative luminance values (L1 and L2) computed from the sRGB color values. The formula is (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter color's luminance and L2 is the darker one's.

Related Tools

Color Blindness Simulator

Upload any image to see how it appears with Protanopia, Deuteranopia, Tritanopia, and Achromatopsia.

Online Color Picker — HEX, RGB & HSL

Pick any color visually with a canvas-based HSV picker. Export as HEX, RGB, or HSL.

Color Wheel Online — Interactive HSL Color Picker

Interactive HSL color wheel. Click any point to pick its hue and saturation.

Image Color Picker — Sample Colors from Photos

Upload any image and click to sample colors directly from pixels.

HEX to RGB Color Converter

Convert HEX color codes to RGB, HSL, HSV, and CMYK values instantly.

RGB to HEX Color Converter

Set R, G, B values with sliders or inputs and get the HEX, HSL output.

Color Contrast Checker — WCAG AA & AAA Compliance

Check WCAG 2.1 color contrast ratio for AA and AAA compliance. Live text preview.

Color Mixer & Gradient Generator

Blend two colors together with a ratio slider. Get a full gradient palette.

CSS Color Names — All 148 Named Colors

Browse all 148 CSS named colors with their HEX and RGB values.

Material Design Color Chart & Palette

Material Design color palette — 19 hue families × 10 shades each.

Minecraft Color Codes & Formatting

All Minecraft §-prefixed color and formatting codes with previews.

Roblox Color Codes & BrickColor IDs

Complete Roblox BrickColor palette with color IDs and RGB values.

Color Palette Generator

Generate harmonious color palettes from a base color using complementary, triadic, and analogous schemes.

Color Format Converter

Convert colors between HEX, RGB, HSL, HSV, CMYK, and CSS named color formats instantly.

Color Shades Generator

Generate a 10-step shade palette (50–900) from any base color using HSL lightness scaling — just like Tailwind CSS.

Color Gradient Palette Generator

Generate smooth RGB gradients between two colors with 3–20 steps. Copy HEX swatches, CSS linear-gradient, or a Tailwind array.