Скала
Моя спроба - особливість вбивці полягає в тому, що він не потребує підключення до Інтернету! (Я сподіваюся, що це не так вже й довго: D) Також я викликав Chtulhu під час підготовки бази кольорів (тому що я розбирав підмножину HTML з regex; регулярний вираз та посилання на джерело є у коментарях)
Правка: покращена точність
Приклад запуску: http://ideone.com/e3n0dG
object Main {
def main(args: Array[String]) {
val color = extractBrightness(readLine().split("[, ]+").map(_.toInt))
val nearestColor = colors.minBy(t => distance(extractBrightness(parseColor(t._1)), color, weight))._2
println(s"Your color is $nearestColor")
}
def parseColor(s: String) = {
s.sliding(2, 2).map(Integer.parseInt(_, 16)).toVector
}
def distance(c1: Seq[Double], c2: Seq[Double], weight: Seq[Double]) = {
c1.zip(c2).map(t => ((x: Double) => x * x)(t._1 - t._2)).zip(weight).map(t => t._1 * t._2).sum
}
val weight = Vector(0.01, 1.0, 0.8)
def extractBrightness(c: Seq[Int]) = {
val Seq(r, g, b) = c
val brightness = c.sum.toDouble / 3
val rOffset = r - brightness
val bOffset = b - brightness
Seq(brightness, rOffset, bOffset)
}
// colors are extracted by using this regex: <li>[\s\S]*?<a href="/......">([\w ]+)</a>[\s\S]*?<a href="/......">#(......)</a>[\s\S]*?</li>
// from this page: http://www.colorhexa.com/color-names
val colors = Vector(
"5d8aa8" -> "Air Force blue",
"f0f8ff" -> "Alice blue",
"e32636" -> "Alizarin crimson",
"efdecd" -> "Almond",
"e52b50" -> "Amaranth",
"ffbf00" -> "Amber",
"ff033e" -> "American rose",
"9966cc" -> "Amethyst",
"a4c639" -> "Android Green",
"cd9575" -> "Antique brass",
"915c83" -> "Antique fuchsia",
"faebd7" -> "Antique white",
"008000" -> "Ao",
"8db600" -> "Apple green",
"fbceb1" -> "Apricot",
"00ffff" -> "Aqua",
"7fffd4" -> "Aquamarine",
"4b5320" -> "Army green",
"e9d66b" -> "Arylide yellow",
"b2beb5" -> "Ash grey",
"87a96b" -> "Asparagus",
"ff9966" -> "Atomic tangerine",
"a52a2a" -> "Auburn",
"fdee00" -> "Aureolin",
"6e7f80" -> "AuroMetalSaurus",
"ff2052" -> "Awesome",
"007fff" -> "Azure",
"89cff0" -> "Baby blue",
"a1caf1" -> "Baby blue eyes",
"f4c2c2" -> "Baby pink",
"21abcd" -> "Ball Blue",
"fae7b5" -> "Banana Mania",
"ffe135" -> "Banana yellow",
"848482" -> "Battleship grey",
"98777b" -> "Bazaar",
"bcd4e6" -> "Beau blue",
"9f8170" -> "Beaver",
"f5f5dc" -> "Beige",
"ffe4c4" -> "Bisque",
"3d2b1f" -> "Bistre",
"fe6f5e" -> "Bittersweet",
"000000" -> "Black",
"ffebcd" -> "Blanched Almond",
"318ce7" -> "Bleu de France",
"ace5ee" -> "Blizzard Blue",
"faf0be" -> "Blond",
"0000ff" -> "Blue",
"a2a2d0" -> "Blue Bell",
"6699cc" -> "Blue Gray",
"0d98ba" -> "Blue green",
"8a2be2" -> "Blue purple",
"8a2be2" -> "Blue violet",
"de5d83" -> "Blush",
"79443b" -> "Bole",
"0095b6" -> "Bondi blue",
"e3dac9" -> "Bone",
"cc0000" -> "Boston University Red",
"006a4e" -> "Bottle green",
"873260" -> "Boysenberry",
"0070ff" -> "Brandeis blue",
"b5a642" -> "Brass",
"cb4154" -> "Brick red",
"1dacd6" -> "Bright cerulean",
"66ff00" -> "Bright green",
"bf94e4" -> "Bright lavender",
"c32148" -> "Bright maroon",
"ff007f" -> "Bright pink",
"08e8de" -> "Bright turquoise",
"d19fe8" -> "Bright ube",
"f4bbff" -> "Brilliant lavender",
"ff55a3" -> "Brilliant rose",
"fb607f" -> "Brink pink",
"004225" -> "British racing green",
"cd7f32" -> "Bronze",
"a52a2a" -> "Brown",
"ffc1cc" -> "Bubble gum",
"e7feff" -> "Bubbles",
"f0dc82" -> "Buff",
"480607" -> "Bulgarian rose",
"800020" -> "Burgundy",
"deb887" -> "Burlywood",
"cc5500" -> "Burnt orange",
"e97451" -> "Burnt sienna",
"8a3324" -> "Burnt umber",
"bd33a4" -> "Byzantine",
"702963" -> "Byzantium",
"007aa5" -> "CG Blue",
"e03c31" -> "CG Red",
"536872" -> "Cadet",
"5f9ea0" -> "Cadet blue",
"91a3b0" -> "Cadet grey",
"006b3c" -> "Cadmium green",
"ed872d" -> "Cadmium orange",
"e30022" -> "Cadmium red",
"fff600" -> "Cadmium yellow",
"a67b5b" -> "Café au lait",
"4b3621" -> "Café noir",
"1e4d2b" -> "Cal Poly Pomona green",
"a3c1ad" -> "Cambridge Blue",
"c19a6b" -> "Camel",
"78866b" -> "Camouflage green",
"ffff99" -> "Canary",
"ffef00" -> "Canary yellow",
"ff0800" -> "Candy apple red",
"e4717a" -> "Candy pink",
"00bfff" -> "Capri",
"592720" -> "Caput mortuum",
"c41e3a" -> "Cardinal",
"00cc99" -> "Caribbean green",
"ff0040" -> "Carmine",
"eb4c42" -> "Carmine pink",
"ff0038" -> "Carmine red",
"ffa6c9" -> "Carnation pink",
"b31b1b" -> "Carnelian",
"99badd" -> "Carolina blue",
"ed9121" -> "Carrot orange",
"ace1af" -> "Celadon",
"b2ffff" -> "Celeste",
"4997d0" -> "Celestial blue",
"de3163" -> "Cerise",
"ec3b83" -> "Cerise pink",
"007ba7" -> "Cerulean",
"2a52be" -> "Cerulean blue",
"a0785a" -> "Chamoisee",
"fad6a5" -> "Champagne",
"36454f" -> "Charcoal",
"7fff00" -> "Chartreuse",
"de3163" -> "Cherry",
"ffb7c5" -> "Cherry blossom pink",
"cd5c5c" -> "Chestnut",
"d2691e" -> "Chocolate",
"ffa700" -> "Chrome yellow",
"98817b" -> "Cinereous",
"e34234" -> "Cinnabar",
"d2691e" -> "Cinnamon",
"e4d00a" -> "Citrine",
"fbcce7" -> "Classic rose",
"0047ab" -> "Cobalt",
"d2691e" -> "Cocoa brown",
"6f4e37" -> "Coffee",
"9bddff" -> "Columbia blue",
"002e63" -> "Cool black",
"8c92ac" -> "Cool grey",
"b87333" -> "Copper",
"996666" -> "Copper rose",
"ff3800" -> "Coquelicot",
"ff7f50" -> "Coral",
"f88379" -> "Coral pink",
"ff4040" -> "Coral red",
"893f45" -> "Cordovan",
"fbec5d" -> "Corn",
"b31b1b" -> "Cornell Red",
"9aceeb" -> "Cornflower",
"6495ed" -> "Cornflower blue",
"fff8dc" -> "Cornsilk",
"fff8e7" -> "Cosmic latte",
"ffbcd9" -> "Cotton candy",
"fffdd0" -> "Cream",
"dc143c" -> "Crimson",
"990000" -> "Crimson Red",
"be0032" -> "Crimson glory",
"00ffff" -> "Cyan",
"ffff31" -> "Daffodil",
"f0e130" -> "Dandelion",
"00008b" -> "Dark blue",
"654321" -> "Dark brown",
"5d3954" -> "Dark byzantium",
"a40000" -> "Dark candy apple red",
"08457e" -> "Dark cerulean",
"986960" -> "Dark chestnut",
"cd5b45" -> "Dark coral",
"008b8b" -> "Dark cyan",
"536878" -> "Dark electric blue",
"b8860b" -> "Dark goldenrod",
"a9a9a9" -> "Dark gray",
"013220" -> "Dark green",
"1a2421" -> "Dark jungle green",
"bdb76b" -> "Dark khaki",
"483c32" -> "Dark lava",
"734f96" -> "Dark lavender",
"8b008b" -> "Dark magenta",
"003366" -> "Dark midnight blue",
"556b2f" -> "Dark olive green",
"ff8c00" -> "Dark orange",
"9932cc" -> "Dark orchid",
"779ecb" -> "Dark pastel blue",
"03c03c" -> "Dark pastel green",
"966fd6" -> "Dark pastel purple",
"c23b22" -> "Dark pastel red",
"e75480" -> "Dark pink",
"003399" -> "Dark powder blue",
"872657" -> "Dark raspberry",
"8b0000" -> "Dark red",
"e9967a" -> "Dark salmon",
"560319" -> "Dark scarlet",
"8fbc8f" -> "Dark sea green",
"3c1414" -> "Dark sienna",
"483d8b" -> "Dark slate blue",
"2f4f4f" -> "Dark slate gray",
"177245" -> "Dark spring green",
"918151" -> "Dark tan",
"ffa812" -> "Dark tangerine",
"483c32" -> "Dark taupe",
"cc4e5c" -> "Dark terra cotta",
"00ced1" -> "Dark turquoise",
"9400d3" -> "Dark violet",
"00693e" -> "Dartmouth green",
"555555" -> "Davy grey",
"d70a53" -> "Debian red",
"a9203e" -> "Deep carmine",
"ef3038" -> "Deep carmine pink",
"e9692c" -> "Deep carrot orange",
"da3287" -> "Deep cerise",
"fad6a5" -> "Deep champagne",
"b94e48" -> "Deep chestnut",
"704241" -> "Deep coffee",
"c154c1" -> "Deep fuchsia",
"004b49" -> "Deep jungle green",
"9955bb" -> "Deep lilac",
"cc00cc" -> "Deep magenta",
"ffcba4" -> "Deep peach",
"ff1493" -> "Deep pink",
"ff9933" -> "Deep saffron",
"00bfff" -> "Deep sky blue",
"1560bd" -> "Denim",
"c19a6b" -> "Desert",
"edc9af" -> "Desert sand",
"696969" -> "Dim gray",
"1e90ff" -> "Dodger blue",
"d71868" -> "Dogwood rose",
"85bb65" -> "Dollar bill",
"967117" -> "Drab",
"00009c" -> "Duke blue",
"e1a95f" -> "Earth yellow",
"c2b280" -> "Ecru",
"614051" -> "Eggplant",
"f0ead6" -> "Eggshell",
"1034a6" -> "Egyptian blue",
"7df9ff" -> "Electric blue",
"ff003f" -> "Electric crimson",
"00ffff" -> "Electric cyan",
"00ff00" -> "Electric green",
"6f00ff" -> "Electric indigo",
"f4bbff" -> "Electric lavender",
"ccff00" -> "Electric lime",
"bf00ff" -> "Electric purple",
"3f00ff" -> "Electric ultramarine",
"8f00ff" -> "Electric violet",
"ffff00" -> "Electric yellow",
"50c878" -> "Emerald",
"96c8a2" -> "Eton blue",
"c19a6b" -> "Fallow",
"801818" -> "Falu red",
"ff00ff" -> "Famous",
"b53389" -> "Fandango",
"f400a1" -> "Fashion fuchsia",
"e5aa70" -> "Fawn",
"4d5d53" -> "Feldgrau",
"71bc78" -> "Fern",
"4f7942" -> "Fern green",
"ff2800" -> "Ferrari Red",
"6c541e" -> "Field drab",
"ce2029" -> "Fire engine red",
"b22222" -> "Firebrick",
"e25822" -> "Flame",
"fc8eac" -> "Flamingo pink",
"f7e98e" -> "Flavescent",
"eedc82" -> "Flax",
"fffaf0" -> "Floral white",
"ffbf00" -> "Fluorescent orange",
"ff1493" -> "Fluorescent pink",
"ccff00" -> "Fluorescent yellow",
"ff004f" -> "Folly",
"228b22" -> "Forest green",
"a67b5b" -> "French beige",
"0072bb" -> "French blue",
"86608e" -> "French lilac",
"f64a8a" -> "French rose",
"ff00ff" -> "Fuchsia",
"ff77ff" -> "Fuchsia pink",
"e48400" -> "Fulvous",
"cc6666" -> "Fuzzy Wuzzy",
"dcdcdc" -> "Gainsboro",
"e49b0f" -> "Gamboge",
"f8f8ff" -> "Ghost white",
"b06500" -> "Ginger",
"6082b6" -> "Glaucous",
"e6e8fa" -> "Glitter",
"ffd700" -> "Gold",
"996515" -> "Golden brown",
"fcc200" -> "Golden poppy",
"ffdf00" -> "Golden yellow",
"daa520" -> "Goldenrod",
"a8e4a0" -> "Granny Smith Apple",
"808080" -> "Gray",
"465945" -> "Gray asparagus",
"00ff00" -> "Green",
"1164b4" -> "Green Blue",
"adff2f" -> "Green yellow",
"a99a86" -> "Grullo",
"00ff7f" -> "Guppie green",
"663854" -> "Halayà úbe",
"446ccf" -> "Han blue",
"5218fa" -> "Han purple",
"e9d66b" -> "Hansa yellow",
"3fff00" -> "Harlequin",
"c90016" -> "Harvard crimson",
"da9100" -> "Harvest Gold",
"808000" -> "Heart Gold",
"df73ff" -> "Heliotrope",
"f400a1" -> "Hollywood cerise",
"f0fff0" -> "Honeydew",
"49796b" -> "Hooker green",
"ff1dce" -> "Hot magenta",
"ff69b4" -> "Hot pink",
"355e3b" -> "Hunter green",
"fcf75e" -> "Icterine",
"b2ec5d" -> "Inchworm",
"138808" -> "India green",
"cd5c5c" -> "Indian red",
"e3a857" -> "Indian yellow",
"4b0082" -> "Indigo",
"002fa7" -> "International Klein Blue",
"ff4f00" -> "International orange",
"5a4fcf" -> "Iris",
"f4f0ec" -> "Isabelline",
"009000" -> "Islamic green",
"fffff0" -> "Ivory",
"00a86b" -> "Jade",
"f8de7e" -> "Jasmine",
"d73b3e" -> "Jasper",
"a50b5e" -> "Jazzberry jam",
"fada5e" -> "Jonquil",
"bdda57" -> "June bud",
"29ab87" -> "Jungle green",
"e8000d" -> "KU Crimson",
"4cbb17" -> "Kelly green",
"c3b091" -> "Khaki",
"087830" -> "La Salle Green",
"d6cadd" -> "Languid lavender",
"26619c" -> "Lapis lazuli",
"fefe22" -> "Laser Lemon",
"a9ba9d" -> "Laurel green",
"cf1020" -> "Lava",
"e6e6fa" -> "Lavender",
"ccccff" -> "Lavender blue",
"fff0f5" -> "Lavender blush",
"c4c3d0" -> "Lavender gray",
"9457eb" -> "Lavender indigo",
"ee82ee" -> "Lavender magenta",
"e6e6fa" -> "Lavender mist",
"fbaed2" -> "Lavender pink",
"967bb6" -> "Lavender purple",
"fba0e3" -> "Lavender rose",
"7cfc00" -> "Lawn green",
"fff700" -> "Lemon",
"fff44f" -> "Lemon Yellow",
"fffacd" -> "Lemon chiffon",
"bfff00" -> "Lemon lime",
"f56991" -> "Light Crimson",
"e68fac" -> "Light Thulian pink",
"fdd5b1" -> "Light apricot",
"add8e6" -> "Light blue",
"b5651d" -> "Light brown",
"e66771" -> "Light carmine pink",
"f08080" -> "Light coral",
"93ccea" -> "Light cornflower blue",
"e0ffff" -> "Light cyan",
"f984ef" -> "Light fuchsia pink",
"fafad2" -> "Light goldenrod yellow",
"d3d3d3" -> "Light gray",
"90ee90" -> "Light green",
"f0e68c" -> "Light khaki",
"b19cd9" -> "Light pastel purple",
"ffb6c1" -> "Light pink",
"ffa07a" -> "Light salmon",
"ff9999" -> "Light salmon pink",
"20b2aa" -> "Light sea green",
"87cefa" -> "Light sky blue",
"778899" -> "Light slate gray",
"b38b6d" -> "Light taupe",
"ffffed" -> "Light yellow",
"c8a2c8" -> "Lilac",
"bfff00" -> "Lime",
"32cd32" -> "Lime green",
"195905" -> "Lincoln green",
"faf0e6" -> "Linen",
"c19a6b" -> "Lion",
"534b4f" -> "Liver",
"e62020" -> "Lust",
"18453b" -> "MSU Green",
"ffbd88" -> "Macaroni and Cheese",
"ff00ff" -> "Magenta",
"aaf0d1" -> "Magic mint",
"f8f4ff" -> "Magnolia",
"c04000" -> "Mahogany",
"fbec5d" -> "Maize",
"6050dc" -> "Majorelle Blue",
"0bda51" -> "Malachite",
"979aaa" -> "Manatee",
"ff8243" -> "Mango Tango",
"74c365" -> "Mantis",
"800000" -> "Maroon",
"e0b0ff" -> "Mauve",
"915f6d" -> "Mauve taupe",
"ef98aa" -> "Mauvelous",
"73c2fb" -> "Maya blue",
"e5b73b" -> "Meat brown",
"0067a5" -> "Medium Persian blue",
"66ddaa" -> "Medium aquamarine",
"0000cd" -> "Medium blue",
"e2062c" -> "Medium candy apple red",
"af4035" -> "Medium carmine",
"f3e5ab" -> "Medium champagne",
"035096" -> "Medium electric blue",
"1c352d" -> "Medium jungle green",
"dda0dd" -> "Medium lavender magenta",
"ba55d3" -> "Medium orchid",
"9370db" -> "Medium purple",
"bb3385" -> "Medium red violet",
"3cb371" -> "Medium sea green",
"7b68ee" -> "Medium slate blue",
"c9dc87" -> "Medium spring bud",
"00fa9a" -> "Medium spring green",
"674c47" -> "Medium taupe",
"0054b4" -> "Medium teal blue",
"48d1cc" -> "Medium turquoise",
"c71585" -> "Medium violet red",
"fdbcb4" -> "Melon",
"191970" -> "Midnight blue",
"004953" -> "Midnight green",
"ffc40c" -> "Mikado yellow",
"3eb489" -> "Mint",
"f5fffa" -> "Mint cream",
"98ff98" -> "Mint green",
"ffe4e1" -> "Misty rose",
"faebd7" -> "Moccasin",
"967117" -> "Mode beige",
"73a9c2" -> "Moonstone blue",
"ae0c00" -> "Mordant red 19",
"addfad" -> "Moss green",
"30ba8f" -> "Mountain Meadow",
"997a8d" -> "Mountbatten pink",
"c54b8c" -> "Mulberry",
"f2f3f4" -> "Munsell",
"ffdb58" -> "Mustard",
"21421e" -> "Myrtle",
"f6adc6" -> "Nadeshiko pink",
"2a8000" -> "Napier green",
"fada5e" -> "Naples yellow",
"ffdead" -> "Navajo white",
"000080" -> "Navy blue",
"ffa343" -> "Neon Carrot",
"fe59c2" -> "Neon fuchsia",
"39ff14" -> "Neon green",
"059033" -> "North Texas Green",
"0077be" -> "Ocean Boat Blue",
"cc7722" -> "Ochre",
"008000" -> "Office green",
"cfb53b" -> "Old gold",
"fdf5e6" -> "Old lace",
"796878" -> "Old lavender",
"673147" -> "Old mauve",
"c08081" -> "Old rose",
"808000" -> "Olive",
"6b8e23" -> "Olive Drab",
"bab86c" -> "Olive Green",
"9ab973" -> "Olivine",
"0f0f0f" -> "Onyx",
"b784a7" -> "Opera mauve",
"ffa500" -> "Orange",
"f8d568" -> "Orange Yellow",
"ff9f00" -> "Orange peel",
"ff4500" -> "Orange red",
"da70d6" -> "Orchid",
"654321" -> "Otter brown",
"414a4c" -> "Outer Space",
"ff6e4a" -> "Outrageous Orange",
"002147" -> "Oxford Blue",
"1ca9c9" -> "Pacific Blue",
"006600" -> "Pakistan green",
"273be2" -> "Palatinate blue",
"682860" -> "Palatinate purple",
"bcd4e6" -> "Pale aqua",
"afeeee" -> "Pale blue",
"987654" -> "Pale brown",
"af4035" -> "Pale carmine",
"9bc4e2" -> "Pale cerulean",
"ddadaf" -> "Pale chestnut",
"da8a67" -> "Pale copper",
"abcdef" -> "Pale cornflower blue",
"e6be8a" -> "Pale gold",
"eee8aa" -> "Pale goldenrod",
"98fb98" -> "Pale green",
"dcd0ff" -> "Pale lavender",
"f984e5" -> "Pale magenta",
"fadadd" -> "Pale pink",
"dda0dd" -> "Pale plum",
"db7093" -> "Pale red violet",
"96ded1" -> "Pale robin egg blue",
"c9c0bb" -> "Pale silver",
"ecebbd" -> "Pale spring bud",
"bc987e" -> "Pale taupe",
"db7093" -> "Pale violet red",
"78184a" -> "Pansy purple",
"ffefd5" -> "Papaya whip",
"50c878" -> "Paris Green",
"aec6cf" -> "Pastel blue",
"836953" -> "Pastel brown",
"cfcfc4" -> "Pastel gray",
"77dd77" -> "Pastel green",
"f49ac2" -> "Pastel magenta",
"ffb347" -> "Pastel orange",
"ffd1dc" -> "Pastel pink",
"b39eb5" -> "Pastel purple",
"ff6961" -> "Pastel red",
"cb99c9" -> "Pastel violet",
"fdfd96" -> "Pastel yellow",
"800080" -> "Patriarch",
"536878" -> "Payne grey",
"ffe5b4" -> "Peach",
"ffdab9" -> "Peach puff",
"fadfad" -> "Peach yellow",
"d1e231" -> "Pear",
"eae0c8" -> "Pearl",
"88d8c0" -> "Pearl Aqua",
"e6e200" -> "Peridot",
"ccccff" -> "Periwinkle",
"1c39bb" -> "Persian blue",
"32127a" -> "Persian indigo",
"d99058" -> "Persian orange",
"f77fbe" -> "Persian pink",
"701c1c" -> "Persian plum",
"cc3333" -> "Persian red",
"fe28a2" -> "Persian rose",
"df00ff" -> "Phlox",
"000f89" -> "Phthalo blue",
"123524" -> "Phthalo green",
"fddde6" -> "Piggy pink",
"01796f" -> "Pine green",
"ffc0cb" -> "Pink",
"fc74fd" -> "Pink Flamingo",
"f78fa7" -> "Pink Sherbet",
"e7accf" -> "Pink pearl",
"93c572" -> "Pistachio",
"e5e4e2" -> "Platinum",
"dda0dd" -> "Plum",
"ff5a36" -> "Portland Orange",
"b0e0e6" -> "Powder blue",
"ff8f00" -> "Princeton orange",
"003153" -> "Prussian blue",
"df00ff" -> "Psychedelic purple",
"cc8899" -> "Puce",
"ff7518" -> "Pumpkin",
"800080" -> "Purple",
"69359c" -> "Purple Heart",
"9678b6" -> "Purple mountain majesty",
"fe4eda" -> "Purple pizzazz",
"50404d" -> "Purple taupe",
"5d8aa8" -> "Rackley",
"ff355e" -> "Radical Red",
"e30b5d" -> "Raspberry",
"915f6d" -> "Raspberry glace",
"e25098" -> "Raspberry pink",
"b3446c" -> "Raspberry rose",
"d68a59" -> "Raw Sienna",
"ff33cc" -> "Razzle dazzle rose",
"e3256b" -> "Razzmatazz",
"ff0000" -> "Red",
"ff5349" -> "Red Orange",
"a52a2a" -> "Red brown",
"c71585" -> "Red violet",
"004040" -> "Rich black",
"d70040" -> "Rich carmine",
"0892d0" -> "Rich electric blue",
"b666d2" -> "Rich lilac",
"b03060" -> "Rich maroon",
"414833" -> "Rifle green",
"ff007f" -> "Rose",
"f9429e" -> "Rose bonbon",
"674846" -> "Rose ebony",
"b76e79" -> "Rose gold",
"e32636" -> "Rose madder",
"ff66cc" -> "Rose pink",
"aa98a9" -> "Rose quartz",
"905d5d" -> "Rose taupe",
"ab4e52" -> "Rose vale",
"65000b" -> "Rosewood",
"d40000" -> "Rosso corsa",
"bc8f8f" -> "Rosy brown",
"0038a8" -> "Royal azure",
"4169e1" -> "Royal blue",
"ca2c92" -> "Royal fuchsia",
"7851a9" -> "Royal purple",
"e0115f" -> "Ruby",
"ff0028" -> "Ruddy",
"bb6528" -> "Ruddy brown",
"e18e96" -> "Ruddy pink",
"a81c07" -> "Rufous",
"80461b" -> "Russet",
"b7410e" -> "Rust",
"00563f" -> "Sacramento State green",
"8b4513" -> "Saddle brown",
"ff6700" -> "Safety orange",
"f4c430" -> "Saffron",
"23297a" -> "Saint Patrick Blue",
"ff8c69" -> "Salmon",
"ff91a4" -> "Salmon pink",
"c2b280" -> "Sand",
"967117" -> "Sand dune",
"ecd540" -> "Sandstorm",
"f4a460" -> "Sandy brown",
"967117" -> "Sandy taupe",
"507d2a" -> "Sap green",
"0f52ba" -> "Sapphire",
"cba135" -> "Satin sheen gold",
"ff2400" -> "Scarlet",
"ffd800" -> "School bus yellow",
"76ff7a" -> "Screamin Green",
"006994" -> "Sea blue",
"2e8b57" -> "Sea green",
"321414" -> "Seal brown",
"fff5ee" -> "Seashell",
"ffba00" -> "Selective yellow",
"704214" -> "Sepia",
"8a795d" -> "Shadow",
"45cea2" -> "Shamrock",
"009e60" -> "Shamrock green",
"fc0fc0" -> "Shocking pink",
"882d17" -> "Sienna",
"c0c0c0" -> "Silver",
"cb410b" -> "Sinopia",
"007474" -> "Skobeloff",
"87ceeb" -> "Sky blue",
"cf71af" -> "Sky magenta",
"6a5acd" -> "Slate blue",
"708090" -> "Slate gray",
"003399" -> "Smalt",
"933d41" -> "Smokey topaz",
"100c08" -> "Smoky black",
"fffafa" -> "Snow",
"0fc0fc" -> "Spiro Disco Ball",
"a7fc00" -> "Spring bud",
"00ff7f" -> "Spring green",
"4682b4" -> "Steel blue",
"fada5e" -> "Stil de grain yellow",
"990000" -> "Stizza",
"008080" -> "Stormcloud",
"e4d96f" -> "Straw",
"ffcc33" -> "Sunglow",
"fad6a5" -> "Sunset",
"fd5e53" -> "Sunset Orange",
"d2b48c" -> "Tan",
"f94d00" -> "Tangelo",
"f28500" -> "Tangerine",
"ffcc00" -> "Tangerine yellow",
"483c32" -> "Taupe",
"8b8589" -> "Taupe gray",
"cd5700" -> "Tawny",
"d0f0c0" -> "Tea green",
"f4c2c2" -> "Tea rose",
"008080" -> "Teal",
"367588" -> "Teal blue",
"006d5b" -> "Teal green",
"e2725b" -> "Terra cotta",
"d8bfd8" -> "Thistle",
"de6fa1" -> "Thulian pink",
"fc89ac" -> "Tickle Me Pink",
"0abab5" -> "Tiffany Blue",
"e08d3c" -> "Tiger eye",
"dbd7d2" -> "Timberwolf",
"eee600" -> "Titanium yellow",
"ff6347" -> "Tomato",
"746cc0" -> "Toolbox",
"ffc87c" -> "Topaz",
"fd0e35" -> "Tractor red",
"808080" -> "Trolley Grey",
"00755e" -> "Tropical rain forest",
"0073cf" -> "True Blue",
"417dc1" -> "Tufts Blue",
"deaa88" -> "Tumbleweed",
"b57281" -> "Turkish rose",
"30d5c8" -> "Turquoise",
"00ffef" -> "Turquoise blue",
"a0d6b4" -> "Turquoise green",
"66424d" -> "Tuscan red",
"8a496b" -> "Twilight lavender",
"66023c" -> "Tyrian purple",
"0033aa" -> "UA blue",
"d9004c" -> "UA red",
"536895" -> "UCLA Blue",
"ffb300" -> "UCLA Gold",
"3cd070" -> "UFO Green",
"014421" -> "UP Forest green",
"7b1113" -> "UP Maroon",
"990000" -> "USC Cardinal",
"ffcc00" -> "USC Gold",
"8878c3" -> "Ube",
"ff6fff" -> "Ultra pink",
"120a8f" -> "Ultramarine",
"4166f5" -> "Ultramarine blue",
"635147" -> "Umber",
"5b92e5" -> "United Nations blue",
"b78727" -> "University of California Gold",
"ffff66" -> "Unmellow Yellow",
"ae2029" -> "Upsdell red",
"e1ad21" -> "Urobilin",
"d3003f" -> "Utah Crimson",
"f3e5ab" -> "Vanilla",
"c5b358" -> "Vegas gold",
"c80815" -> "Venetian red",
"43b3ae" -> "Verdigris",
"e34234" -> "Vermilion",
"a020f0" -> "Veronica",
"ee82ee" -> "Violet",
"324ab2" -> "Violet Blue",
"f75394" -> "Violet Red",
"40826d" -> "Viridian",
"922724" -> "Vivid auburn",
"9f1d35" -> "Vivid burgundy",
"da1d81" -> "Vivid cerise",
"ffa089" -> "Vivid tangerine",
"9f00ff" -> "Vivid violet",
"004242" -> "Warm black",
"00ffff" -> "Waterspout",
"645452" -> "Wenge",
"f5deb3" -> "Wheat",
"ffffff" -> "White",
"f5f5f5" -> "White smoke",
"ff43a4" -> "Wild Strawberry",
"fc6c85" -> "Wild Watermelon",
"a2add0" -> "Wild blue yonder",
"722f37" -> "Wine",
"c9a0dc" -> "Wisteria",
"738678" -> "Xanadu",
"0f4d92" -> "Yale Blue",
"ffff00" -> "Yellow",
"ffae42" -> "Yellow Orange",
"9acd32" -> "Yellow green",
"0014a8" -> "Zaffre",
"2c1608" -> "Zinnwaldite brown")
}