Skip to content

Instantly share code, notes, and snippets.

View adamchaboryk's full-sized avatar

Adam Chaboryk adamchaboryk

View GitHub Profile
@adamchaboryk
adamchaboryk / google-sheets-contrast-checking-with-colour-preview.js
Last active October 6, 2026 21:21 — forked from wjmazza/google-sheets-colour-preview.js
Google Sheets script: WCAG 2 contrast checker with colour preview via hexcodes.
/*
To use this script in a Google Sheets spreadsheet:
1. Open Google Sheets, go to Extensions > App Scripts.
2. Erase everything in the text editor;
3. Change the title to "Check WCAG 2 Contrast";
4. Paste this code in;
5. Click File » Save.
Google Sheets Colour Preview script: