COLOR TOOLS

Color Comparison Tool

Compare two to six colors side by side. Every color gets HEX, RGB, and HSL values, and every pair gets a measured contrast ratio with WCAG AA and AAA results. Everything runs locally in your browser.

STEP 1

Choose colors to compare

Showing an example comparison. Adjust the colors and compare again.

STEP 2

Comparison results

What the comparison shows

Each color is converted to HEX, RGB, and HSL. RGB lists the red, green, and blue channels from 0 to 255. HSL restates the color as hue in degrees, saturation as a percentage, and lightness as a percentage. Conversions round to whole numbers, so an HSL value converted back to RGB can differ by a unit or two per channel.

Every pair also gets a difference summary: how far apart the red, green, and blue channels are, the shortest distance between the hues around the color wheel, and the saturation and lightness differences. The summary names the most similar and most different pairs by measured contrast ratio, not by visual judgment.

Reading the WCAG results

Contrast uses WCAG relative luminance. Each sRGB channel is linearized, weighted 0.2126 red, 0.7152 green, and 0.0722 blue, and compared with (lighter + 0.05) / (darker + 0.05). Black and white produce 21:1; identical colors produce 1:1. Ratios are rounded only for display, and the pass/fail checks use the unrounded value.

AA normal text needs 4.5:1, AAA normal text needs 7:1, AA large text needs 3:1, and AAA large text needs 4.5:1. Large text means at least 18pt (24px) regular or 14pt (about 18.66px) bold. Every result is written as Pass or Fail so the meaning does not depend on color alone.

A passing ratio describes only the color pair. It does not certify that a page meets WCAG: text size, font weight, spacing, gradients, transparency, background images, focus indicators, and actual usage all matter. Use the comparison to screen candidates, then check the real interface.

Comparing and adjusting colors

Edit a HEX field or use its color picker; the two stay in sync. Add color appends another row up to six colors, and Remove keeps at least two. Load example colors replaces the list with three examples and runs the comparison. Reset restores the examples without running a comparison.

Changing any color clears stale results so the page never shows a comparison for values you have already edited. Copy one HEX, RGB, or HSL value from a color card, or copy the whole report with Copy all results. The report includes each color’s formats and every pair’s ratio and AA/AAA outcomes.

Color comparison FAQ

Why is there a maximum of six colors?

Six colors produce fifteen pairs, which stays readable on a phone and keeps the result list manageable. Comparing more colors at once would add many pairs without making the important differences easier to find.

Does the tool send or save my colors?

No. Validation, conversions, differences, and contrast calculations run in this page. The tool does not send, store, or persist your input or results. The hosting provider and the disclosed advertising script may still process ordinary technical request information, as described in the privacy policy.

What does “most similar” mean?

It is the pair with the lowest measured contrast ratio, which usually means the colors have the closest luminance. Two colors can still look different in hue while having a low contrast ratio, so read the difference summary alongside the ratio.

Need a base color or a palette first? Open the random color generator. To generate harmonies and check one base color against many suggestions, use the color contrast picker.

Last updated: