Skip to content

Instantly share code, notes, and snippets.

@koolamusic
Forked from aileftech/hex-colors.txt
Created June 20, 2023 11:35
Show Gist options
  • Save koolamusic/aaa949ffef3ab7524440edc347e15e7b to your computer and use it in GitHub Desktop.
Save koolamusic/aaa949ffef3ab7524440edc347e15e7b to your computer and use it in GitHub Desktop.
A Bash one-liner to produce a list of HEX color codes that read like (supposedly) valid English words
$ grep -P "^[ABCDEFabcdefOoIi]{6,6}$" /usr/share/dict/words | tr 'OoIi' '0011' | tr '[:lower:]' '[:upper:]' | awk '{print "#" $0}'
#ACAD1A
#B0BB1E
#DEBB1E
#AB1DED
#ACAC1A
#ACCEDE
#AC1D1C
#BAB1ED
#BA0BAB
#BEADED
#BEDDED
#BEEFED
#B0BBED
#B0D1CE
#B00BED
#CABBED
#CABB1E
#CADD1E
#C1CADA
#C0DDED
#C0FFEE
#C01FED
#DABBED
#DECADE
#DEC1DE
#DEC0DE
#DEEDED
#DEFACE
#DEF1ED
#DE1CED
#D0FFED
#D00DAD
#EDD1ED
#EFFACE
#FACADE
#F1BBED
#F0BBED
#0FF1CE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment