Contrast checker

#63c

What do the numbers mean?

Each colour code has three or six digits, split into red, green and blue components. Use the colour list to help find a code.


Colour list

Only named colours are currently visible.

These colours are sorted by hue, then how colourful they are, then darkest to lightest.

reds

name hex code hue check

yellows

name hex code hue check

greens

name hex code hue check

cyans

name hex code hue check

blues

name hex code hue check

magentas

name hex code hue check

greys

name hex code hue check

About

I regularly check colours for accessibility but when I started making this, there were very few other ways to check for several colours at the same time, so this became a learning project to make an accessible contrast checker. This was made using "vanilla" Javascript on a canvas element and without AI 🧠.

Other contrast checkers

The following tools are all free and help you check colour contrast on the web.

Credits

The contrast checker "borrows" code from several places and these are highlighted as comments in the Javascript file.

Colour names come from a number of sources, and I've made up a few. Particular thanks to:

Latest updates

This is an updated version of the contrast checker. The main changes in this version are: