Recently I've been wary of accessibility (a11y) of colour in my work, and I've known about the contrast ratio checker in devtools, but it's recently been upgraded and is super charged:

picker

Proudly sponsored by
CodeSponsor.io- get paid by adding one line of code to your README

To enable it (as of August 2017), you need the following steps:

  1. Use Chrome Canary
  2. Enable experiments: chrome://flags/#enable-devtools-experiments (copy and paste this internal link into Canary)
  3. From devtools, open settings (F1)
  4. Open the experiments panel
  5. Hit shift seven times (no, I'm not kidding)
  6. Check the "Color contrast ratio line in color picker"

To get the extra detail (that's shown in the screenshot above), you need to click on the contrast value and it will toggle the a11y colour information.

Huge props to Alice Boxhall and Max Walker for their superb work on the contrast picker 💪.

If you're interested in gathering contrast information quickly, I'd highly recommend using aXe devtools extension (for Firefox too) too, I've personally found this to be very useful.

Want more?

Posts, web development learnings & insights, exclusive workshop and training discounts and more, direct to your inbox.

I won't send you any spam, and you can unsubscribe at any time. Powered by ConvertKit