Skip to content

Instantly share code, notes, and snippets.

@jferris
Created January 27, 2023 16:00
Show Gist options
  • Save jferris/219ad9a0e16583f436d7f57b61533ba5 to your computer and use it in GitHub Desktop.
Save jferris/219ad9a0e16583f436d7f57b61533ba5 to your computer and use it in GitHub Desktop.
Generate a random color name
#!/bin/sh
set -e
colors() {
cat <<EOS
acid
aero
alabaster
alizarin
alloy
almond
amaranth
amber
amethyst
apple
apricot
aqua
aquamarine
artichoke
arylide
ash
asparagus
astronaut
auburn
aureolin
avocado
banana
barn
beau
beaver
beige
bisque
bistre
bitter
bittersweet
black
blanched
blond
blue
bluebell
blush
bole
bone
bottle
brandy
brick
brilliant
brink
bronze
brown
buff
burgundy
burlywood
byzantine
byzantium
cadet
cadmium
cambridge
camel
cameo
canary
candy
capri
cardinal
caribbean
carmine
carnation
carnelian
carolina
carrot
castleton
catawba
cedar
celadon
celeste
celtic
cerise
cerulean
champagne
charcoal
charleston
charm
cherry
chestnut
chili
chocolate
chrome
cinereous
cinnabar
cinnamon
citrine
citron
claret
cobalt
cocoa
coffee
cool
copper
coquelicot
coral
cordovan
corn
cornell
cornflower
cornsilk
coyote
cotton
cream
crimson
crystal
cultured
cyan
cyclamen
dartmouth
denim
desert
dim
dodger
dogwood
drab
duke
dutch
earth
ebony
ecru
eerie
eggplant
eggshell
egyptian
eigengrau
electric
emerald
eminence
erin
eton
fallow
falu
fandango
fawn
feldgrau
fern
field
fiery
firebrick
fireengine
flame
flax
flirt
floral
fluorescent
frostbite
fuchsia
gainsboro
gamboge
glaucous
glossy
gold
goldenrod
gotham
granite
green
grullo
gunmetal
hansa
harlequin
harvest
heat
heliotrope
hollywood
honeydew
honolulu
hunter
iceberg
icterine
imperial
inchworm
independence
indigo
infrared
iris
irresistible
isabelline
ivory
jade
jasmine
jazzberry
jet
jonquil
june
jungle
kelly
keppel
kobe
kobi
kobicha
kombu
ksu
lapis
laser
laurel
lava
lavender
lawn
lemon
liberty
lilac
lime
lincoln
linen
lion
liseran
liver
liver
livid
macaroni
magenta
magnolia
mahogany
maize
majorelle
malachite
manatee
mango
mantis
marigold
mauve
maya
mellow
melon
metallic
midnight
mikado
mimi
mindaro
ming
mint
misty
morning
moss
mountain
msu
mulberry
mustard
myrtle
mystic
nadeshiko
naples
navy
neon
nickel
nyanza
ocean
ochre
olive
onyx
opal
orange
orchid
oxblood
oxford
parchment
pastel
peach
pear
periwinkle
persimmon
pewter
phlox
piggy
pine
pink
pistachio
platinum
plum
popstar
powder
prune
puce
pumpkin
purple
quicksilver
radical
raisin
rajah
raspberry
red
redwood
rhythm
robin
rocket
rose
rosewood
ruber
ruby
rufous
russet
rust
saddle
saffron
sage
salmon
sand
sapphire
satin
scarlet
sea
seal
seashell
sepia
shadow
shamrock
shiny
sienna
silver
sinopia
sky
slate
smoky
snow
spring
steel
straw
strawberry
sugar
sunglow
sunray
sunset
tan
tangerine
taupe
tea
teal
telemagenta
terracotta
thistle
timberwolf
titanium
tomato
tourmaline
tropical
turquoise
turtle
twilight
ultramarine
umber
vanilla
verdigris
vermilion
violet
viridian
volt
wheat
white
wine
winter
wintergreen
wisteria
wood
xanthic
xanthous
yellow
zaffre
zomp
EOS
}
colors | grep -E "^$1" | shuf | head -n1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment