Skip to content

Instantly share code, notes, and snippets.

@ollieglass
Last active November 22, 2024 17:27
Show Gist options
  • Select an option

  • Save ollieglass/f6ddd781eeae1d24e391265432297538 to your computer and use it in GitHub Desktop.

Select an option

Save ollieglass/f6ddd781eeae1d24e391265432297538 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
kelly_colors = ['F2F3F4', '222222', 'F3C300', '875692', 'F38400', 'A1CAF1', 'BE0032', 'C2B280', '848482', '008856', 'E68FAC', '0067A5', 'F99379', '604E97', 'F6A600', 'B3446C', 'DCD300', '882D17', '8DB600', '654522', 'E25822', '2B3D26']
@pinouchon

Copy link
Copy Markdown

Thanks!

ghost commented Jan 17, 2017

Copy link
Copy Markdown

Thank you, great share, especially the references! ⭐

@kenjohnson195105

Copy link
Copy Markdown

Here are the Kelly colours in r, using color.id to convert the RGB codes into colour names

The first two colours look equivalent to "black" and "white."

kelly.colours <- c("gray95", "gray13", "gold2", "plum4", "darkorange1", "lightskyblue2", "firebrick", "burlywood3", "gray51", "springgreen4", "lightpink2", "deepskyblue4", "lightsalmon2", "mediumpurple4", "orange", "maroon", "yellow3", "brown4", "yellow4", "sienna4", "chocolate", "gray19")

@xmcp123

xmcp123 commented May 5, 2018

Copy link
Copy Markdown

Just in case anyone else wants these with the # mark

kelly_colors = ['#F2F3F4', '#222222', '#F3C300', '#875692', '#F38400', '#A1CAF1', '#BE0032', '#C2B280', '#848482', '#008856', '#E68FAC', '#0067A5', '#F99379', '#604E97', '#F6A600', '#B3446C', '#DCD300', '#882D17', '#8DB600', '#654522', '#E25822', '#2B3D26']

@CongAn

CongAn commented May 3, 2022

Copy link
Copy Markdown

这个《List of 20 Simple, Distinct Colors》文章带有一个漂亮的颜色查看工具。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment