Skip to content

Instantly share code, notes, and snippets.

@cravindra
Forked from ollieglass/kelly_colors.py
Last active September 30, 2018 10:28
Show Gist options
  • Select an option

  • Save cravindra/514241114dee118d29e97b91c391b625 to your computer and use it in GitHub Desktop.

Select an option

Save cravindra/514241114dee118d29e97b91c391b625 to your computer and use it in GitHub Desktop.
Kenneth Kelly's 22 colors of maximum contrast
// theory - https://eleanormaclure.files.wordpress.com/2011/03/colour-coding.pdf (page 5)
// kelly's colors - https://i.kinja-img.com/gawker-media/image/upload/1015680494325093012.JPG
// hex values - http://hackerspace.kinja.com/iscc-nbs-number-hex-r-g-b-263-f2f3f4-242-243-244-267-22-1665795040
const kellyColors = ['#F2F3F4', '#222222', '#F3C300', '#875692', '#F38400', '#A1CAF1', '#BE0032', '#C2B280', '#848482', '#008856', '#E68FAC', '#0067A5', '#F99379', '#604E97', '#F6A600', '#B3446C', '#DCD300', '#882D17', '#8DB600', '#654522', '#E25822', '#2B3D26']
// https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors/
const LABEL_COLORS = ['#e6194b', '#3cb44b', '#ffe119', '#4363d8', '#f58231', '#911eb4', '#46f0f0', '#f032e6', '#bcf60c', '#fabebe', '#008080', '#e6beff', '#9a6324', '#fffac8', '#800000', '#aaffc3', '#808000', '#ffd8b1', '#000075', '#808080', '#ffffff', '#000000']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment