Skip to content

Instantly share code, notes, and snippets.

@Grayson
Created December 13, 2015 19:42
Show Gist options
  • Save Grayson/22a94b324330a94e715f to your computer and use it in GitHub Desktop.
Save Grayson/22a94b324330a94e715f to your computer and use it in GitHub Desktop.
Color values from OSX's "Crayon" color picker pane
Name CSS Hex R G B
Licorice #000000 0x000000 0 0 0
Lead #191919 0x191919 25 25 25
Tungsten #333333 0x333333 51 51 51
Iron #4C4C4C 0x4C4C4C 76 76 76
Steel #666666 0x666666 102 102 102
Tin #7F7F7F 0x7F7F7F 127 127 127
Nickel #808080 0x808080 128 128 128
Aluminum #999999 0x999999 153 153 153
Magnesium #B3B3B3 0xB3B3B3 179 179 179
Silver #CCCCCC 0xCCCCCC 204 204 204
Mercury #E6E6E6 0xE6E6E6 230 230 230
Snow #FFFFFF 0xFFFFFF 255 255 255
Cayenne #800000 0x800000 128 0 0
Mocha #804000 0x804000 128 64 0
Asparagus #808000 0x808000 128 128 0
Fern #408000 0x408000 64 128 0
Clover #008000 0x008000 0 128 0
Moss #008040 0x008040 0 128 64
Teal #008080 0x008080 0 128 128
Ocean #004080 0x004080 0 64 128
Midnight #000080 0x000080 0 0 128
Eggplant #400080 0x400080 64 0 128
Plum #800080 0x800080 128 0 128
Maroon #800040 0x800040 128 0 64
Maraschino #FF0000 0xFF0000 255 0 0
Tangerine #FF8000 0xFF8000 255 128 0
Lemon #FFFF00 0xFFFF00 255 255 0
Lime #80FF00 0x80FF00 128 255 0
Spring #00FF00 0x00FF00 0 255 0
Sea Foam #00FF80 0x00FF80 0 255 128
Turquoise #00FFFF 0x00FFFF 0 255 255
Aqua #0080FF 0x0080FF 0 128 255
Blueberry #0000FF 0x0000FF 0 0 255
Grape #8000FF 0x8000FF 128 0 255
Magenta #FF00FF 0xFF00FF 255 0 255
Strawberry #FF0080 0xFF0080 255 0 128
Salmon #FF6666 0xFF6666 255 102 102
Cantaloupe #FFCC66 0xFFCC66 255 204 102
Banana #FFFF66 0xFFFF66 255 255 102
Honeydew #CCFF66 0xCCFF66 204 255 102
Flora #66FF66 0x66FF66 102 255 102
Spindrift #66FFCC 0x66FFCC 102 255 204
Ice #66FFFF 0x66FFFF 102 255 255
Sky #66CCFF 0x66CCFF 102 204 255
Orchid #6666FF 0x6666FF 102 102 255
Lavendar #CC66FF 0xCC66FF 204 102 255
Carnation #FF66FF 0xFF66FF 255 102 255
Bubblegum #FF6FCF 0xFF6FCF 255 111 207
@Grayson
Copy link
Author

Grayson commented Dec 13, 2015

Simple example shell script for reading these values into a data type:

awk 'NR > 1' crayons.tsv | awk -F"\t" '{print "NSColor *" $1 "Color = [NSColor colorWithCalibratedRed:" $4 "/255.0 green:" $5 "/255.0 blue:" $6 "/255.0 alpha:1.0];"}'

Sample output of the above:

NSColor *LicoriceColor = [NSColor colorWithCalibratedRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:1.0];
NSColor *LeadColor = [NSColor colorWithCalibratedRed:25/255.0 green:25/255.0 blue:25/255.0 alpha:1.0];
NSColor *TungstenColor = [NSColor colorWithCalibratedRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0];
NSColor *IronColor = [NSColor colorWithCalibratedRed:76/255.0 green:76/255.0 blue:76/255.0 alpha:1.0];
...

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