Colour Contrast Tool
Help
This tool computes the relative luminance ratio of two colours using the algorithm from Web Content Accessibility Guidelines (WCAG).
There are two ways to specify colours:
- Type or paste a CSS hex colour specification (such as ‘#3c9’ or ‘#32C89E’) in the input field.
- Click on the colour picker widget after the input field (or focus and press Enter) and select a colour. The appearance and function of this widget is browser dependent; for instance, Chromium-based browsers provide an eye-dropper that lets you pick a colour from any pixel on the screen.
The advanced mode provides these additional features:
- text mode and graphics mode;
- support for more colour specifications (RGB, HSL, keywords);
- inputs for setting or changing individual RGB or HSL components, making it easier to find colours that satisfy the contrast requirements;
- opacity setting;
- detailed controls for font settings and type of graphics;
- computes the lightness contrast according to the APCA algorithm.