Checking Color Contrast

The Check view is the core of Vesper Colors. It shows your foreground and background colors side by side, calculates the contrast ratio between them, and tells you whether they pass or fail each WCAG 2.2 threshold.

Entering a color

Tap or click either the foreground or background swatch to open the color picker for that color. You can:

Tap Done to apply the color. Tap Cancel to discard your changes and return to the previous color. On iOS, if you made changes and tap Cancel, a confirmation prompt will ask you to confirm before discarding.

Swapping colors

Tap the swap button (the double-arrow icon between the two swatches) to swap the foreground and background colors. The contrast ratio stays the same - swapping colors does not change the ratio - but it reverses which color is used as text and which is used as the background in all previews.

Reading the contrast ratio

The large number in the middle of the Check view is the contrast ratio, displayed in the format X.XX:1. A higher ratio means more contrast. The minimum ratios required by WCAG 2.2 are:

See WCAG 2.2 Thresholds for the full breakdown.

The four WCAG badges

Vesper Colors shows four badges, one for each WCAG 2.2 contrast check:

Each badge shows PASS in green or FAIL in red. A pair can pass some checks and fail others - for example, a moderate contrast pair might pass AA Large but fail AA Normal.

Text preview

Below the color swatches, a text preview card renders sample text in your chosen colors. It shows two examples:

This gives you an immediate visual sense of readability before looking at the numbers.

Starter pairings

Ten pre-built color pairs are available at the bottom of the Check view: Midnight, Ocean, Forest, Ember, Orchid, Slate, Gold, Rose, Storm, and Sage. Tap any chip to load that pair instantly. The active pairing is highlighted with a violet border.

These pairings are a good starting point for exploring how contrast works across different color combinations. All ten are accessible at AA Normal level.