Skip to content

# Colour-Contrast & Terminal Readability Checker

Grade two colours, a 16-colour ANSI palette, or the whole xterm-256 cube against a background. The verdict is WCAG 2, with APCA Lc beside it as a secondary reading.

This is generated in browser and is not sent to pah.moi servers.

Building the palette itself? The Terminal Theme & ANSI Palette Designer is the other end of the same job.

About this tool1 paragraph

Check the WCAG 2 contrast ratio between any two colours, grade a whole 16-colour ANSI palette, or sweep the entire xterm-256 cube against a terminal background. Colours can be hex, `rgb()`, `hsl()`, a CSS colour name, or an xterm-256 index. Verdicts are the same relative-luminance maths this site gates its own themes on, with APCA Lc alongside as a secondary reading.

Use it locally This tool has a native command line twin. Build `contrast-cli` from the site's source with:

    cargo build --release --bin contrast-cli

Source and licence terms