diff --git a/packages/color-palette/src/constant/index.ts b/packages/color-palette/src/constant/index.ts new file mode 100644 index 000000000..cefbcdb2b --- /dev/null +++ b/packages/color-palette/src/constant/index.ts @@ -0,0 +1,2 @@ +export * from './name'; +export * from './palette'; diff --git a/packages/color-palette/src/constant/name.ts b/packages/color-palette/src/constant/name.ts new file mode 100644 index 000000000..36648c336 --- /dev/null +++ b/packages/color-palette/src/constant/name.ts @@ -0,0 +1,1579 @@ +export const colorNames: [hex: string, name: string][] = [ + ['#000000', 'Black'], + ['#000080', 'Navy Blue'], + ['#0000c8', 'Dark Blue'], + ['#0000ff', 'Blue'], + ['#000741', 'Stratos'], + ['#001b1c', 'Swamp'], + ['#002387', 'Resolution Blue'], + ['#002900', 'Deep Fir'], + ['#002e20', 'Burnham'], + ['#002fa7', 'International Klein Blue'], + ['#003153', 'Prussian Blue'], + ['#003366', 'Midnight Blue'], + ['#003399', 'Smalt'], + ['#003532', 'Deep Teal'], + ['#003e40', 'Cyprus'], + ['#004620', 'Kaitoke Green'], + ['#0047ab', 'Cobalt'], + ['#004816', 'Crusoe'], + ['#004950', 'Sherpa Blue'], + ['#0056a7', 'Endeavour'], + ['#00581a', 'Camarone'], + ['#0066cc', 'Science Blue'], + ['#0066ff', 'Blue Ribbon'], + ['#00755e', 'Tropical Rain Forest'], + ['#0076a3', 'Allports'], + ['#007ba7', 'Deep Cerulean'], + ['#007ec7', 'Lochmara'], + ['#007fff', 'Azure Radiance'], + ['#008080', 'Teal'], + ['#0095b6', 'Bondi Blue'], + ['#009dc4', 'Pacific Blue'], + ['#00a693', 'Persian Green'], + ['#00a86b', 'Jade'], + ['#00cc99', 'Caribbean Green'], + ['#00cccc', "Robin's Egg Blue"], + ['#00ff00', 'Green'], + ['#00ff7f', 'Spring Green'], + ['#00ffff', 'Cyan Aqua'], + ['#010d1a', 'Blue Charcoal'], + ['#011635', 'Midnight'], + ['#011d13', 'Holly'], + ['#012731', 'Daintree'], + ['#01361c', 'Cardin Green'], + ['#01371a', 'County Green'], + ['#013e62', 'Astronaut Blue'], + ['#013f6a', 'Regal Blue'], + ['#014b43', 'Aqua Deep'], + ['#015e85', 'Orient'], + ['#016162', 'Blue Stone'], + ['#016d39', 'Fun Green'], + ['#01796f', 'Pine Green'], + ['#017987', 'Blue Lagoon'], + ['#01826b', 'Deep Sea'], + ['#01a368', 'Green Haze'], + ['#022d15', 'English Holly'], + ['#02402c', 'Sherwood Green'], + ['#02478e', 'Congress Blue'], + ['#024e46', 'Evening Sea'], + ['#026395', 'Bahama Blue'], + ['#02866f', 'Observatory'], + ['#02a4d3', 'Cerulean'], + ['#03163c', 'Tangaroa'], + ['#032b52', 'Green Vogue'], + ['#036a6e', 'Mosque'], + ['#041004', 'Midnight Moss'], + ['#041322', 'Black Pearl'], + ['#042e4c', 'Blue Whale'], + ['#044022', 'Zuccini'], + ['#044259', 'Teal Blue'], + ['#051040', 'Deep Cove'], + ['#051657', 'Gulf Blue'], + ['#055989', 'Venice Blue'], + ['#056f57', 'Watercourse'], + ['#062a78', 'Catalina Blue'], + ['#063537', 'Tiber'], + ['#069b81', 'Gossamer'], + ['#06a189', 'Niagara'], + ['#073a50', 'Tarawera'], + ['#080110', 'Jaguar'], + ['#081910', 'Black Bean'], + ['#082567', 'Deep Sapphire'], + ['#088370', 'Elf Green'], + ['#08e8de', 'Bright Turquoise'], + ['#092256', 'Downriver'], + ['#09230f', 'Palm Green'], + ['#09255d', 'Madison'], + ['#093624', 'Bottle Green'], + ['#095859', 'Deep Sea Green'], + ['#097f4b', 'Salem'], + ['#0a001c', 'Black Russian'], + ['#0a480d', 'Dark Fern'], + ['#0a6906', 'Japanese Laurel'], + ['#0a6f75', 'Atoll'], + ['#0b0b0b', 'Cod Gray'], + ['#0b0f08', 'Marshland'], + ['#0b1107', 'Gordons Green'], + ['#0b1304', 'Black Forest'], + ['#0b6207', 'San Felix'], + ['#0bda51', 'Malachite'], + ['#0c0b1d', 'Ebony'], + ['#0c0d0f', 'Woodsmoke'], + ['#0c1911', 'Racing Green'], + ['#0c7a79', 'Surfie Green'], + ['#0c8990', 'Blue Chill'], + ['#0d0332', 'Black Rock'], + ['#0d1117', 'Bunker'], + ['#0d1c19', 'Aztec'], + ['#0d2e1c', 'Bush'], + ['#0e0e18', 'Cinder'], + ['#0e2a30', 'Firefly'], + ['#0f2d9e', 'Torea Bay'], + ['#10121d', 'Vulcan'], + ['#101405', 'Green Waterloo'], + ['#105852', 'Eden'], + ['#110c6c', 'Arapawa'], + ['#120a8f', 'Ultramarine'], + ['#123447', 'Elephant'], + ['#126b40', 'Jewel'], + ['#130000', 'Diesel'], + ['#130a06', 'Asphalt'], + ['#13264d', 'Blue Zodiac'], + ['#134f19', 'Parsley'], + ['#140600', 'Nero'], + ['#1450aa', 'Tory Blue'], + ['#151f4c', 'Bunting'], + ['#1560bd', 'Denim'], + ['#15736b', 'Genoa'], + ['#161928', 'Mirage'], + ['#161d10', 'Hunter Green'], + ['#162a40', 'Big Stone'], + ['#163222', 'Celtic'], + ['#16322c', 'Timber Green'], + ['#163531', 'Gable Green'], + ['#171f04', 'Pine Tree'], + ['#175579', 'Chathams Blue'], + ['#182d09', 'Deep Forest Green'], + ['#18587a', 'Blumine'], + ['#19330e', 'Palm Leaf'], + ['#193751', 'Nile Blue'], + ['#1959a8', 'Fun Blue'], + ['#1a1a68', 'Lucky Point'], + ['#1ab385', 'Mountain Meadow'], + ['#1b0245', 'Tolopea'], + ['#1b1035', 'Haiti'], + ['#1b127b', 'Deep Koamaru'], + ['#1b1404', 'Acadia'], + ['#1b2f11', 'Seaweed'], + ['#1b3162', 'Biscay'], + ['#1b659d', 'Matisse'], + ['#1c1208', 'Crowshead'], + ['#1c1e13', 'Rangoon Green'], + ['#1c39bb', 'Persian Blue'], + ['#1c402e', 'Everglade'], + ['#1c7c7d', 'Elm'], + ['#1d6142', 'Green Pea'], + ['#1e0f04', 'Creole'], + ['#1e1609', 'Karaka'], + ['#1e1708', 'El Paso'], + ['#1e385b', 'Cello'], + ['#1e433c', 'Te Papa Green'], + ['#1e90ff', 'Dodger Blue'], + ['#1e9ab0', 'Eastern Blue'], + ['#1f120f', 'Night Rider'], + ['#1fc2c2', 'Java'], + ['#20208d', 'Jacksons Purple'], + ['#202e54', 'Cloud Burst'], + ['#204852', 'Blue Dianne'], + ['#211a0e', 'Eternity'], + ['#220878', 'Deep Blue'], + ['#228b22', 'Forest Green'], + ['#233418', 'Mallard'], + ['#240a40', 'Violet'], + ['#240c02', 'Kilamanjaro'], + ['#242a1d', 'Log Cabin'], + ['#242e16', 'Black Olive'], + ['#24500f', 'Green House'], + ['#251607', 'Graphite'], + ['#251706', 'Cannon Black'], + ['#251f4f', 'Port Gore'], + ['#25272c', 'Shark'], + ['#25311c', 'Green Kelp'], + ['#2596d1', 'Curious Blue'], + ['#260368', 'Paua'], + ['#26056a', 'Paris M'], + ['#261105', 'Wood Bark'], + ['#261414', 'Gondola'], + ['#262335', 'Steel Gray'], + ['#26283b', 'Ebony Clay'], + ['#273a81', 'Bay Of Many'], + ['#27504b', 'Plantation'], + ['#278a5b', 'Eucalyptus'], + ['#281e15', 'Oil'], + ['#283a77', 'Astronaut'], + ['#286acd', 'Mariner'], + ['#290c5e', 'Violent Violet'], + ['#292130', 'Bastille'], + ['#292319', 'Zeus'], + ['#292937', 'Charade'], + ['#297b9a', 'Jelly Bean'], + ['#29ab87', 'Jungle Green'], + ['#2a0359', 'Cherry Pie'], + ['#2a140e', 'Coffee Bean'], + ['#2a2630', 'Baltic Sea'], + ['#2a380b', 'Turtle Green'], + ['#2a52be', 'Cerulean Blue'], + ['#2b0202', 'Sepia Black'], + ['#2b194f', 'Valhalla'], + ['#2b3228', 'Heavy Metal'], + ['#2c0e8c', 'Blue Gem'], + ['#2c1632', 'Revolver'], + ['#2c2133', 'Bleached Cedar'], + ['#2c8c84', 'Lochinvar'], + ['#2d2510', 'Mikado'], + ['#2d383a', 'Outer Space'], + ['#2d569b', 'St Tropaz'], + ['#2e0329', 'Jacaranda'], + ['#2e1905', 'Jacko Bean'], + ['#2e3222', 'Rangitoto'], + ['#2e3f62', 'Rhino'], + ['#2e8b57', 'Sea Green'], + ['#2ebfd4', 'Scooter'], + ['#2f270e', 'Onion'], + ['#2f3cb3', 'Governor Bay'], + ['#2f519e', 'Sapphire'], + ['#2f5a57', 'Spectra'], + ['#2f6168', 'Casal'], + ['#300529', 'Melanzane'], + ['#301f1e', 'Cocoa Brown'], + ['#302a0f', 'Woodrush'], + ['#304b6a', 'San Juan'], + ['#30d5c8', 'Turquoise'], + ['#311c17', 'Eclipse'], + ['#314459', 'Pickled Bluewood'], + ['#315ba1', 'Azure'], + ['#31728d', 'Calypso'], + ['#317d82', 'Paradiso'], + ['#32127a', 'Persian Indigo'], + ['#32293a', 'Blackcurrant'], + ['#323232', 'Mine Shaft'], + ['#325d52', 'Stromboli'], + ['#327c14', 'Bilbao'], + ['#327da0', 'Astral'], + ['#33036b', 'Christalle'], + ['#33292f', 'Thunder'], + ['#33cc99', 'Shamrock'], + ['#341515', 'Tamarind'], + ['#350036', 'Mardi Gras'], + ['#350e42', 'Valentino'], + ['#350e57', 'Jagger'], + ['#353542', 'Tuna'], + ['#354e8c', 'Chambray'], + ['#363050', 'Martinique'], + ['#363534', 'Tuatara'], + ['#363c0d', 'Waiouru'], + ['#36747d', 'Ming'], + ['#368716', 'La Palma'], + ['#370202', 'Chocolate'], + ['#371d09', 'Clinker'], + ['#37290e', 'Brown Tumbleweed'], + ['#373021', 'Birch'], + ['#377475', 'Oracle'], + ['#380474', 'Blue Diamond'], + ['#381a51', 'Grape'], + ['#383533', 'Dune'], + ['#384555', 'Oxford Blue'], + ['#384910', 'Clover'], + ['#394851', 'Limed Spruce'], + ['#396413', 'Dell'], + ['#3a0020', 'Toledo'], + ['#3a2010', 'Sambuca'], + ['#3a2a6a', 'Jacarta'], + ['#3a686c', 'William'], + ['#3a6a47', 'Killarney'], + ['#3ab09e', 'Keppel'], + ['#3b000b', 'Temptress'], + ['#3b0910', 'Aubergine'], + ['#3b1f1f', 'Jon'], + ['#3b2820', 'Treehouse'], + ['#3b7a57', 'Amazon'], + ['#3b91b4', 'Boston Blue'], + ['#3c0878', 'Windsor'], + ['#3c1206', 'Rebel'], + ['#3c1f76', 'Meteorite'], + ['#3c2005', 'Dark Ebony'], + ['#3c3910', 'Camouflage'], + ['#3c4151', 'Bright Gray'], + ['#3c4443', 'Cape Cod'], + ['#3c493a', 'Lunar Green'], + ['#3d0c02', 'Bean '], + ['#3d2b1f', 'Bistre'], + ['#3d7d52', 'Goblin'], + ['#3e0480', 'Kingfisher Daisy'], + ['#3e1c14', 'Cedar'], + ['#3e2b23', 'English Walnut'], + ['#3e2c1c', 'Black Marlin'], + ['#3e3a44', 'Ship Gray'], + ['#3eabbf', 'Pelorous'], + ['#3f2109', 'Bronze'], + ['#3f2500', 'Cola'], + ['#3f3002', 'Madras'], + ['#3f307f', 'Minsk'], + ['#3f4c3a', 'Cabbage Pont'], + ['#3f583b', 'Tom Thumb'], + ['#3f5d53', 'Mineral Green'], + ['#3fc1aa', 'Puerto Rico'], + ['#3fff00', 'Harlequin'], + ['#401801', 'Brown Pod'], + ['#40291d', 'Cork'], + ['#403b38', 'Masala'], + ['#403d19', 'Thatch Green'], + ['#405169', 'Fiord'], + ['#40826d', 'Viridian'], + ['#40a860', 'Chateau Green'], + ['#410056', 'Ripe Plum'], + ['#411f10', 'Paco'], + ['#412010', 'Deep Oak'], + ['#413c37', 'Merlin'], + ['#414257', 'Gun Powder'], + ['#414c7d', 'East Bay'], + ['#4169e1', 'Royal Blue'], + ['#41aa78', 'Ocean Green'], + ['#420303', 'Burnt Maroon'], + ['#423921', 'Lisbon Brown'], + ['#427977', 'Faded Jade'], + ['#431560', 'Scarlet Gum'], + ['#433120', 'Iroko'], + ['#433e37', 'Armadillo'], + ['#434c59', 'River Bed'], + ['#436a0d', 'Green Leaf'], + ['#44012d', 'Barossa'], + ['#441d00', 'Morocco Brown'], + ['#444954', 'Mako'], + ['#454936', 'Kelp'], + ['#456cac', 'San Marino'], + ['#45b1e8', 'Picton Blue'], + ['#460b41', 'Loulou'], + ['#462425', 'Crater Brown'], + ['#465945', 'Gray Asparagus'], + ['#4682b4', 'Steel Blue'], + ['#480404', 'Rustic Red'], + ['#480607', 'Bulgarian Rose'], + ['#480656', 'Clairvoyant'], + ['#481c1c', 'Cocoa Bean'], + ['#483131', 'Woody Brown'], + ['#483c32', 'Taupe'], + ['#49170c', 'Van Cleef'], + ['#492615', 'Brown Derby'], + ['#49371b', 'Metallic Bronze'], + ['#495400', 'Verdun Green'], + ['#496679', 'Blue Bayoux'], + ['#497183', 'Bismark'], + ['#4a2a04', 'Bracken'], + ['#4a3004', 'Deep Bronze'], + ['#4a3c30', 'Mondo'], + ['#4a4244', 'Tundora'], + ['#4a444b', 'Gravel'], + ['#4a4e5a', 'Trout'], + ['#4b0082', 'Pigment Indigo'], + ['#4b5d52', 'Nandor'], + ['#4c3024', 'Saddle'], + ['#4c4f56', 'Abbey'], + ['#4d0135', 'Blackberry'], + ['#4d0a18', 'Cab Sav'], + ['#4d1e01', 'Indian Tan'], + ['#4d282d', 'Cowboy'], + ['#4d282e', 'Livid Brown'], + ['#4d3833', 'Rock'], + ['#4d3d14', 'Punga'], + ['#4d400f', 'Bronzetone'], + ['#4d5328', 'Woodland'], + ['#4e0606', 'Mahogany'], + ['#4e2a5a', 'Bossanova'], + ['#4e3b41', 'Matterhorn'], + ['#4e420c', 'Bronze Olive'], + ['#4e4562', 'Mulled Wine'], + ['#4e6649', 'Axolotl'], + ['#4e7f9e', 'Wedgewood'], + ['#4eabd1', 'Shakespeare'], + ['#4f1c70', 'Honey Flower'], + ['#4f2398', 'Daisy Bush'], + ['#4f69c6', 'Indigo'], + ['#4f7942', 'Fern Green'], + ['#4f9d5d', 'Fruit Salad'], + ['#4fa83d', 'Apple'], + ['#504351', 'Mortar'], + ['#507096', 'Kashmir Blue'], + ['#507672', 'Cutty Sark'], + ['#50c878', 'Emerald'], + ['#514649', 'Emperor'], + ['#516e3d', 'Chalet Green'], + ['#517c66', 'Como'], + ['#51808f', 'Smalt Blue'], + ['#52001f', 'Castro'], + ['#520c17', 'Maroon Oak'], + ['#523c94', 'Gigas'], + ['#533455', 'Voodoo'], + ['#534491', 'Victoria'], + ['#53824b', 'Hippie Green'], + ['#541012', 'Heath'], + ['#544333', 'Judge Gray'], + ['#54534d', 'Fuscous Gray'], + ['#549019', 'Vida Loca'], + ['#55280c', 'Cioccolato'], + ['#555b10', 'Saratoga'], + ['#556d56', 'Finlandia'], + ['#5590d9', 'Havelock Blue'], + ['#56b4be', 'Fountain Blue'], + ['#578363', 'Spring Leaves'], + ['#583401', 'Saddle Brown'], + ['#585562', 'Scarpa Flow'], + ['#587156', 'Cactus'], + ['#589aaf', 'Hippie Blue'], + ['#591d35', 'Wine Berry'], + ['#592804', 'Brown Bramble'], + ['#593737', 'Congo Brown'], + ['#594433', 'Millbrook'], + ['#5a6e9c', 'Waikawa Gray'], + ['#5a87a0', 'Horizon'], + ['#5b3013', 'Jambalaya'], + ['#5c0120', 'Bordeaux'], + ['#5c0536', 'Mulberry Wood'], + ['#5c2e01', 'Carnaby Tan'], + ['#5c5d75', 'Comet'], + ['#5d1e0f', 'Redwood'], + ['#5d4c51', 'Don Juan'], + ['#5d5c58', 'Chicago'], + ['#5d5e37', 'Verdigris'], + ['#5d7747', 'Dingley'], + ['#5da19f', 'Breaker Bay'], + ['#5e483e', 'Kabul'], + ['#5e5d3b', 'Hemlock'], + ['#5f3d26', 'Irish Coffee'], + ['#5f5f6e', 'Mid Gray'], + ['#5f6672', 'Shuttle Gray'], + ['#5fa777', 'Aqua Forest'], + ['#5fb3ac', 'Tradewind'], + ['#604913', 'Horses Neck'], + ['#605b73', 'Smoky'], + ['#606e68', 'Corduroy'], + ['#6093d1', 'Danube'], + ['#612718', 'Espresso'], + ['#614051', 'Eggplant'], + ['#615d30', 'Costa Del Sol'], + ['#61845f', 'Glade Green'], + ['#622f30', 'Buccaneer'], + ['#623f2d', 'Quincy'], + ['#624e9a', 'Butterfly Bush'], + ['#625119', 'West Coast'], + ['#626649', 'Finch'], + ['#639a8f', 'Patina'], + ['#63b76c', 'Fern'], + ['#6456b7', 'Blue Violet'], + ['#646077', 'Dolphin'], + ['#646463', 'Storm Dust'], + ['#646a54', 'Siam'], + ['#646e75', 'Nevada'], + ['#6495ed', 'Cornflower Blue'], + ['#64ccdb', 'Viking'], + ['#65000b', 'Rosewood'], + ['#651a14', 'Cherrywood'], + ['#652dc1', 'Purple Heart'], + ['#657220', 'Fern Frond'], + ['#65745d', 'Willow Grove'], + ['#65869f', 'Hoki'], + ['#660045', 'Pompadour'], + ['#660099', 'Purple'], + ['#66023c', 'Tyrian Purple'], + ['#661010', 'Dark Tan'], + ['#66b58f', 'Silver Tree'], + ['#66ff00', 'Bright Green'], + ['#66ff66', 'Screamin Green'], + ['#67032d', 'Black Rose'], + ['#675fa6', 'Scampi'], + ['#676662', 'Ironside Gray'], + ['#678975', 'Viridian Green'], + ['#67a712', 'Christi'], + ['#683600', 'Nutmeg Wood Finish'], + ['#685558', 'Zambezi'], + ['#685e6e', 'Salt Box'], + ['#692545', 'Tawny Port'], + ['#692d54', 'Finn'], + ['#695f62', 'Scorpion'], + ['#697e9a', 'Lynch'], + ['#6a442e', 'Spice'], + ['#6a5d1b', 'Himalaya'], + ['#6a6051', 'Soya Bean'], + ['#6b2a14', 'Hairy Heath'], + ['#6b3fa0', 'Royal Purple'], + ['#6b4e31', 'Shingle Fawn'], + ['#6b5755', 'Dorado'], + ['#6b8ba2', 'Bermuda Gray'], + ['#6b8e23', 'Olive Drab'], + ['#6c3082', 'Eminence'], + ['#6cdae7', 'Turquoise Blue'], + ['#6d0101', 'Lonestar'], + ['#6d5e54', 'Pine Cone'], + ['#6d6c6c', 'Dove Gray'], + ['#6d9292', 'Juniper'], + ['#6d92a1', 'Gothic'], + ['#6e0902', 'Red Oxide'], + ['#6e1d14', 'Moccaccino'], + ['#6e4826', 'Pickled Bean'], + ['#6e4b26', 'Dallas'], + ['#6e6d57', 'Kokoda'], + ['#6e7783', 'Pale Sky'], + ['#6f440c', 'Cafe Royale'], + ['#6f6a61', 'Flint'], + ['#6f8e63', 'Highland'], + ['#6f9d02', 'Limeade'], + ['#6fd0c5', 'Downy'], + ['#701c1c', 'Persian Plum'], + ['#704214', 'Sepia'], + ['#704a07', 'Antique Bronze'], + ['#704f50', 'Ferra'], + ['#706555', 'Coffee'], + ['#708090', 'Slate Gray'], + ['#711a00', 'Cedar Wood Finish'], + ['#71291d', 'Metallic Copper'], + ['#714693', 'Affair'], + ['#714ab2', 'Studio'], + ['#715d47', 'Tobacco Brown'], + ['#716338', 'Yellow Metal'], + ['#716b56', 'Peat'], + ['#716e10', 'Olivetone'], + ['#717486', 'Storm Gray'], + ['#718080', 'Sirocco'], + ['#71d9e2', 'Aquamarine Blue'], + ['#72010f', 'Venetian Red'], + ['#724a2f', 'Old Copper'], + ['#726d4e', 'Go Ben'], + ['#727b89', 'Raven'], + ['#731e8f', 'Seance'], + ['#734a12', 'Raw Umber'], + ['#736c9f', 'Kimberly'], + ['#736d58', 'Crocodile'], + ['#737829', 'Crete'], + ['#738678', 'Xanadu'], + ['#74640d', 'Spicy Mustard'], + ['#747d63', 'Limed Ash'], + ['#747d83', 'Rolling Stone'], + ['#748881', 'Blue Smoke'], + ['#749378', 'Laurel'], + ['#74c365', 'Mantis'], + ['#755a57', 'Russett'], + ['#7563a8', 'Deluge'], + ['#76395d', 'Cosmic'], + ['#7666c6', 'Blue Marguerite'], + ['#76bd17', 'Lima'], + ['#76d7ea', 'Sky Blue'], + ['#770f05', 'Dark Burgundy'], + ['#771f1f', 'Crown Of Thorns'], + ['#773f1a', 'Walnut'], + ['#776f61', 'Pablo'], + ['#778120', 'Pacifika'], + ['#779e86', 'Oxley'], + ['#77dd77', 'Pastel Green'], + ['#780109', 'Japanese Maple'], + ['#782d19', 'Mocha'], + ['#782f16', 'Peanut'], + ['#78866b', 'Camouflage Green'], + ['#788a25', 'Wasabi'], + ['#788bba', 'Ship Cove'], + ['#78a39c', 'Sea Nymph'], + ['#795d4c', 'Roman Coffee'], + ['#796878', 'Old Lavender'], + ['#796989', 'Rum'], + ['#796a78', 'Fedora'], + ['#796d62', 'Sandstone'], + ['#79deec', 'Spray'], + ['#7a013a', 'Siren'], + ['#7a58c1', 'Fuchsia Blue'], + ['#7a7a7a', 'Boulder'], + ['#7a89b8', 'Wild Blue Yonder'], + ['#7ac488', 'De York'], + ['#7b3801', 'Red Beech'], + ['#7b3f00', 'Cinnamon'], + ['#7b6608', 'Yukon Gold'], + ['#7b7874', 'Tapa'], + ['#7b7c94', 'Waterloo '], + ['#7b8265', 'Flax Smoke'], + ['#7b9f80', 'Amulet'], + ['#7ba05b', 'Asparagus'], + ['#7c1c05', 'Kenyan Copper'], + ['#7c7631', 'Pesto'], + ['#7c778a', 'Topaz'], + ['#7c7b7a', 'Concord'], + ['#7c7b82', 'Jumbo'], + ['#7c881a', 'Trendy Green'], + ['#7ca1a6', 'Gumbo'], + ['#7cb0a1', 'Acapulco'], + ['#7cb7bb', 'Neptune'], + ['#7d2c14', 'Pueblo'], + ['#7da98d', 'Bay Leaf'], + ['#7dc8f7', 'Malibu'], + ['#7dd8c6', 'Bermuda'], + ['#7e3a15', 'Copper Canyon'], + ['#7f1734', 'Claret'], + ['#7f3a02', 'Peru Tan'], + ['#7f626d', 'Falcon'], + ['#7f7589', 'Mobster'], + ['#7f76d3', 'Moody Blue'], + ['#7fff00', 'Chartreuse'], + ['#7fffd4', 'Aquamarine'], + ['#800000', 'Maroon'], + ['#800b47', 'Rose Bud Cherry'], + ['#801818', 'Falu Red'], + ['#80341f', 'Red Robin'], + ['#803790', 'Vivid Violet'], + ['#80461b', 'Russet'], + ['#807e79', 'Friar Gray'], + ['#808000', 'Olive'], + ['#808080', 'Gray'], + ['#80b3ae', 'Gulf Stream'], + ['#80b3c4', 'Glacier'], + ['#80ccea', 'Seagull'], + ['#81422c', 'Nutmeg'], + ['#816e71', 'Spicy Pink'], + ['#817377', 'Empress'], + ['#819885', 'Spanish Green'], + ['#826f65', 'Sand Dune'], + ['#828685', 'Gunsmoke'], + ['#828f72', 'Battleship Gray'], + ['#831923', 'Merlot'], + ['#837050', 'Shadow'], + ['#83aa5d', 'Chelsea Cucumber'], + ['#83d0c6', 'Monte Carlo'], + ['#843179', 'Plum'], + ['#84a0a0', 'Granny Smith'], + ['#8581d9', 'Chetwode Blue'], + ['#858470', 'Bandicoot'], + ['#859faf', 'Bali Hai'], + ['#85c4cc', 'Half Baked'], + ['#860111', 'Red Devil'], + ['#863c3c', 'Lotus'], + ['#86483c', 'Ironstone'], + ['#864d1e', 'Bull Shot'], + ['#86560a', 'Rusty Nail'], + ['#868974', 'Bitter'], + ['#86949f', 'Regent Gray'], + ['#871550', 'Disco'], + ['#87756e', 'Americano'], + ['#877c7b', 'Hurricane'], + ['#878d91', 'Oslo Gray'], + ['#87ab39', 'Sushi'], + ['#885342', 'Spicy Mix'], + ['#886221', 'Kumera'], + ['#888387', 'Suva Gray'], + ['#888d65', 'Avocado'], + ['#893456', 'Camelot'], + ['#893843', 'Solid Pink'], + ['#894367', 'Cannon Pink'], + ['#897d6d', 'Makara'], + ['#8a3324', 'Burnt Umber'], + ['#8a73d6', 'True V'], + ['#8a8360', 'Clay Creek'], + ['#8a8389', 'Monsoon'], + ['#8a8f8a', 'Stack'], + ['#8ab9f1', 'Jordy Blue'], + ['#8b00ff', 'Electric Violet'], + ['#8b0723', 'Monarch'], + ['#8b6b0b', 'Corn Harvest'], + ['#8b8470', 'Olive Haze'], + ['#8b847e', 'Schooner'], + ['#8b8680', 'Natural Gray'], + ['#8b9c90', 'Mantle'], + ['#8b9fee', 'Portage'], + ['#8ba690', 'Envy'], + ['#8ba9a5', 'Cascade'], + ['#8be6d8', 'Riptide'], + ['#8c055e', 'Cardinal Pink'], + ['#8c472f', 'Mule Fawn'], + ['#8c5738', 'Potters Clay'], + ['#8c6495', 'Trendy Pink'], + ['#8d0226', 'Paprika'], + ['#8d3d38', 'Sanguine Brown'], + ['#8d3f3f', 'Tosca'], + ['#8d7662', 'Cement'], + ['#8d8974', 'Granite Green'], + ['#8d90a1', 'Manatee'], + ['#8da8cc', 'Polo Blue'], + ['#8e0000', 'Red Berry'], + ['#8e4d1e', 'Rope'], + ['#8e6f70', 'Opium'], + ['#8e775e', 'Domino'], + ['#8e8190', 'Mamba'], + ['#8eabc1', 'Nepal'], + ['#8f021c', 'Pohutukawa'], + ['#8f3e33', 'El Salva'], + ['#8f4b0e', 'Korma'], + ['#8f8176', 'Squirrel'], + ['#8fd6b4', 'Vista Blue'], + ['#900020', 'Burgundy'], + ['#901e1e', 'Old Brick'], + ['#907874', 'Hemp'], + ['#907b71', 'Almond Frost'], + ['#908d39', 'Sycamore'], + ['#92000a', 'Sangria'], + ['#924321', 'Cumin'], + ['#926f5b', 'Beaver'], + ['#928573', 'Stonewall'], + ['#928590', 'Venus'], + ['#9370db', 'Medium Purple'], + ['#93ccea', 'Cornflower'], + ['#93dfb8', 'Algae Green'], + ['#944747', 'Copper Rust'], + ['#948771', 'Arrowtown'], + ['#950015', 'Scarlett'], + ['#956387', 'Strikemaster'], + ['#959396', 'Mountain Mist'], + ['#960018', 'Carmine'], + ['#964b00', 'Brown'], + ['#967059', 'Leather'], + ['#9678b6', "Purple Mountain's Majesty"], + ['#967bb6', 'Lavender Purple'], + ['#96a8a1', 'Pewter'], + ['#96bbab', 'Summer Green'], + ['#97605d', 'Au Chico'], + ['#9771b5', 'Wisteria'], + ['#97cd2d', 'Atlantis'], + ['#983d61', 'Vin Rouge'], + ['#9874d3', 'Lilac Bush'], + ['#98777b', 'Bazaar'], + ['#98811b', 'Hacienda'], + ['#988d77', 'Pale Oyster'], + ['#98ff98', 'Mint Green'], + ['#990066', 'Fresh Eggplant'], + ['#991199', 'Violet Eggplant'], + ['#991613', 'Tamarillo'], + ['#991b07', 'Totem Pole'], + ['#996666', 'Copper Rose'], + ['#9966cc', 'Amethyst'], + ['#997a8d', 'Mountbatten Pink'], + ['#9999cc', 'Blue Bell'], + ['#9a3820', 'Prairie Sand'], + ['#9a6e61', 'Toast'], + ['#9a9577', 'Gurkha'], + ['#9ab973', 'Olivine'], + ['#9ac2b8', 'Shadow Green'], + ['#9b4703', 'Oregon'], + ['#9b9e8f', 'Lemon Grass'], + ['#9c3336', 'Stiletto'], + ['#9d5616', 'Hawaiian Tan'], + ['#9dacb7', 'Gull Gray'], + ['#9dc209', 'Pistachio'], + ['#9de093', 'Granny Smith Apple'], + ['#9de5ff', 'Anakiwa'], + ['#9e5302', 'Chelsea Gem'], + ['#9e5b40', 'Sepia Skin'], + ['#9ea587', 'Sage'], + ['#9ea91f', 'Citron'], + ['#9eb1cd', 'Rock Blue'], + ['#9edee0', 'Morning Glory'], + ['#9f381d', 'Cognac'], + ['#9f821c', 'Reef Gold'], + ['#9f9f9c', 'Star Dust'], + ['#9fa0b1', 'Santas Gray'], + ['#9fd7d3', 'Sinbad'], + ['#9fdd8c', 'Feijoa'], + ['#a02712', 'Tabasco'], + ['#a1750d', 'Buttered Rum'], + ['#a1adb5', 'Hit Gray'], + ['#a1c50a', 'Citrus'], + ['#a1dad7', 'Aqua Island'], + ['#a1e9de', 'Water Leaf'], + ['#a2006d', 'Flirt'], + ['#a23b6c', 'Rouge'], + ['#a26645', 'Cape Palliser'], + ['#a2aab3', 'Gray Chateau'], + ['#a2aeab', 'Edward'], + ['#a3807b', 'Pharlap'], + ['#a397b4', 'Amethyst Smoke'], + ['#a3e3ed', 'Blizzard Blue'], + ['#a4a49d', 'Delta'], + ['#a4a6d3', 'Wistful'], + ['#a4af6e', 'Green Smoke'], + ['#a50b5e', 'Jazzberry Jam'], + ['#a59b91', 'Zorba'], + ['#a5cb0c', 'Bahia'], + ['#a62f20', 'Roof Terracotta'], + ['#a65529', 'Paarl'], + ['#a68b5b', 'Barley Corn'], + ['#a69279', 'Donkey Brown'], + ['#a6a29a', 'Dawn'], + ['#a72525', 'Mexican Red'], + ['#a7882c', 'Luxor Gold'], + ['#a85307', 'Rich Gold'], + ['#a86515', 'Reno Sand'], + ['#a86b6b', 'Coral Tree'], + ['#a8989b', 'Dusty Gray'], + ['#a899e6', 'Dull Lavender'], + ['#a8a589', 'Tallow'], + ['#a8ae9c', 'Bud'], + ['#a8af8e', 'Locust'], + ['#a8bd9f', 'Norway'], + ['#a8e3bd', 'Chinook'], + ['#a9a491', 'Gray Olive'], + ['#a9acb6', 'Aluminium'], + ['#a9b2c3', 'Cadet Blue'], + ['#a9b497', 'Schist'], + ['#a9bdbf', 'Tower Gray'], + ['#a9bef2', 'Perano'], + ['#a9c6c2', 'Opal'], + ['#aa375a', 'Night Shadz'], + ['#aa4203', 'Fire'], + ['#aa8b5b', 'Muesli'], + ['#aa8d6f', 'Sandal'], + ['#aaa5a9', 'Shady Lady'], + ['#aaa9cd', 'Logan'], + ['#aaabb7', 'Spun Pearl'], + ['#aad6e6', 'Regent St Blue'], + ['#aaf0d1', 'Magic Mint'], + ['#ab0563', 'Lipstick'], + ['#ab3472', 'Royal Heath'], + ['#ab917a', 'Sandrift'], + ['#aba0d9', 'Cold Purple'], + ['#aba196', 'Bronco'], + ['#ac8a56', 'Limed Oak'], + ['#ac91ce', 'East Side'], + ['#ac9e22', 'Lemon Ginger'], + ['#aca494', 'Napa'], + ['#aca586', 'Hillary'], + ['#aca59f', 'Cloudy'], + ['#acacac', 'Silver Chalice'], + ['#acb78e', 'Swamp Green'], + ['#accbb1', 'Spring Rain'], + ['#acdd4d', 'Conifer'], + ['#ace1af', 'Celadon'], + ['#ad781b', 'Mandalay'], + ['#adbed1', 'Casper'], + ['#addfad', 'Moss Green'], + ['#ade6c4', 'Padua'], + ['#adff2f', 'Green Yellow'], + ['#ae4560', 'Hippie Pink'], + ['#ae6020', 'Desert'], + ['#ae809e', 'Bouquet'], + ['#af4035', 'Medium Carmine'], + ['#af4d43', 'Apple Blossom'], + ['#af593e', 'Brown Rust'], + ['#af8751', 'Driftwood'], + ['#af8f2c', 'Alpine'], + ['#af9f1c', 'Lucky'], + ['#afa09e', 'Martini'], + ['#afb1b8', 'Bombay'], + ['#afbdd9', 'Pigeon Post'], + ['#b04c6a', 'Cadillac'], + ['#b05d54', 'Matrix'], + ['#b05e81', 'Tapestry'], + ['#b06608', 'Mai Tai'], + ['#b09a95', 'Del Rio'], + ['#b0e0e6', 'Powder Blue'], + ['#b0e313', 'Inch Worm'], + ['#b10000', 'Bright Red'], + ['#b14a0b', 'Vesuvius'], + ['#b1610b', 'Pumpkin Skin'], + ['#b16d52', 'Santa Fe'], + ['#b19461', 'Teak'], + ['#b1e2c1', 'Fringy Flower'], + ['#b1f4e7', 'Ice Cold'], + ['#b20931', 'Shiraz'], + ['#b2a1ea', 'Biloba Flower'], + ['#b32d29', 'Tall Poppy'], + ['#b35213', 'Fiery Orange'], + ['#b38007', 'Hot Toddy'], + ['#b3af95', 'Taupe Gray'], + ['#b3c110', 'La Rioja'], + ['#b43332', 'Well Read'], + ['#b44668', 'Blush'], + ['#b4cfd3', 'Jungle Mist'], + ['#b57281', 'Turkish Rose'], + ['#b57edc', 'Lavender'], + ['#b5a27f', 'Mongoose'], + ['#b5b35c', 'Olive Green'], + ['#b5d2ce', 'Jet Stream'], + ['#b5ecdf', 'Cruise'], + ['#b6316c', 'Hibiscus'], + ['#b69d98', 'Thatch'], + ['#b6b095', 'Heathered Gray'], + ['#b6baa4', 'Eagle'], + ['#b6d1ea', 'Spindle'], + ['#b6d3bf', 'Gum Leaf'], + ['#b7410e', 'Rust'], + ['#b78e5c', 'Muddy Waters'], + ['#b7a214', 'Sahara'], + ['#b7a458', 'Husk'], + ['#b7b1b1', 'Nobel'], + ['#b7c3d0', 'Heather'], + ['#b7f0be', 'Madang'], + ['#b81104', 'Milano Red'], + ['#b87333', 'Copper'], + ['#b8b56a', 'Gimblet'], + ['#b8c1b1', 'Green Spring'], + ['#b8c25d', 'Celery'], + ['#b8e0f9', 'Sail'], + ['#b94e48', 'Chestnut'], + ['#b95140', 'Crail'], + ['#b98d28', 'Marigold'], + ['#b9c46a', 'Wild Willow'], + ['#b9c8ac', 'Rainee'], + ['#ba0101', 'Guardsman Red'], + ['#ba450c', 'Rock Spray'], + ['#ba6f1e', 'Bourbon'], + ['#ba7f03', 'Pirate Gold'], + ['#bab1a2', 'Nomad'], + ['#bac7c9', 'Submarine'], + ['#baeef9', 'Charlotte'], + ['#bb3385', 'Medium Red Violet'], + ['#bb8983', 'Brandy Rose'], + ['#bbd009', 'Rio Grande'], + ['#bbd7c1', 'Surf'], + ['#bcc9c2', 'Powder Ash'], + ['#bd5e2e', 'Tuscany'], + ['#bd978e', 'Quicksand'], + ['#bdb1a8', 'Silk'], + ['#bdb2a1', 'Malta'], + ['#bdb3c7', 'Chatelle'], + ['#bdbbd7', 'Lavender Gray'], + ['#bdbdc6', 'French Gray'], + ['#bdc8b3', 'Clay Ash'], + ['#bdc9ce', 'Loblolly'], + ['#bdedfd', 'French Pass'], + ['#bea6c3', 'London Hue'], + ['#beb5b7', 'Pink Swan'], + ['#bede0d', 'Fuego'], + ['#bf5500', 'Rose Of Sharon'], + ['#bfb8b0', 'Tide'], + ['#bfbed8', 'Blue Haze'], + ['#bfc1c2', 'Silver Sand'], + ['#bfc921', 'Key Lime Pie'], + ['#bfdbe2', 'Ziggurat'], + ['#bfff00', 'Lime'], + ['#c02b18', 'Thunderbird'], + ['#c04737', 'Mojo'], + ['#c08081', 'Old Rose'], + ['#c0c0c0', 'Silver'], + ['#c0d3b9', 'Pale Leaf'], + ['#c0d8b6', 'Pixie Green'], + ['#c1440e', 'Tia Maria'], + ['#c154c1', 'Fuchsia Pink'], + ['#c1a004', 'Buddha Gold'], + ['#c1b7a4', 'Bison Hide'], + ['#c1bab0', 'Tea'], + ['#c1becd', 'Gray Suit'], + ['#c1d7b0', 'Sprout'], + ['#c1f07c', 'Sulu'], + ['#c26b03', 'Indochine'], + ['#c2955d', 'Twine'], + ['#c2bdb6', 'Cotton Seed'], + ['#c2cac4', 'Pumice'], + ['#c2e8e5', 'Jagged Ice'], + ['#c32148', 'Maroon Flush'], + ['#c3b091', 'Indian Khaki'], + ['#c3bfc1', 'Pale Slate'], + ['#c3c3bd', 'Gray Nickel'], + ['#c3cde6', 'Periwinkle Gray'], + ['#c3d1d1', 'Tiara'], + ['#c3ddf9', 'Tropical Blue'], + ['#c41e3a', 'Cardinal'], + ['#c45655', 'Fuzzy Wuzzy Brown'], + ['#c45719', 'Orange Roughy'], + ['#c4c4bc', 'Mist Gray'], + ['#c4d0b0', 'Coriander'], + ['#c4f4eb', 'Mint Tulip'], + ['#c54b8c', 'Mulberry'], + ['#c59922', 'Nugget'], + ['#c5994b', 'Tussock'], + ['#c5dbca', 'Sea Mist'], + ['#c5e17a', 'Yellow Green'], + ['#c62d42', 'Brick Red'], + ['#c6726b', 'Contessa'], + ['#c69191', 'Oriental Pink'], + ['#c6a84b', 'Roti'], + ['#c6c3b5', 'Ash'], + ['#c6c8bd', 'Kangaroo'], + ['#c6e610', 'Las Palmas'], + ['#c7031e', 'Monza'], + ['#c71585', 'Red Violet'], + ['#c7bca2', 'Coral Reef'], + ['#c7c1ff', 'Melrose'], + ['#c7c4bf', 'Cloud'], + ['#c7c9d5', 'Ghost'], + ['#c7cd90', 'Pine Glade'], + ['#c7dde5', 'Botticelli'], + ['#c88a65', 'Antique Brass'], + ['#c8a2c8', 'Lilac'], + ['#c8a528', 'Hokey Pokey'], + ['#c8aabf', 'Lily'], + ['#c8b568', 'Laser'], + ['#c8e3d7', 'Edgewater'], + ['#c96323', 'Piper'], + ['#c99415', 'Pizza'], + ['#c9a0dc', 'Light Wisteria'], + ['#c9b29b', 'Rodeo Dust'], + ['#c9b35b', 'Sundance'], + ['#c9b93b', 'Earls Green'], + ['#c9c0bb', 'Silver Rust'], + ['#c9d9d2', 'Conch'], + ['#c9ffa2', 'Reef'], + ['#c9ffe5', 'Aero Blue'], + ['#ca3435', 'Flush Mahogany'], + ['#cabb48', 'Turmeric'], + ['#cadcd4', 'Paris White'], + ['#cae00d', 'Bitter Lemon'], + ['#cae6da', 'Skeptic'], + ['#cb8fa9', 'Viola'], + ['#cbcab6', 'Foggy Gray'], + ['#cbd3b0', 'Green Mist'], + ['#cbdbd6', 'Nebula'], + ['#cc3333', 'Persian Red'], + ['#cc5500', 'Burnt Orange'], + ['#cc7722', 'Ochre'], + ['#cc8899', 'Puce'], + ['#cccaa8', 'Thistle Green'], + ['#ccccff', 'Periwinkle'], + ['#ccff00', 'Electric Lime'], + ['#cd5700', 'Tenn'], + ['#cd5c5c', 'Chestnut Rose'], + ['#cd8429', 'Brandy Punch'], + ['#cdf4ff', 'Onahau'], + ['#ceb98f', 'Sorrell Brown'], + ['#cebaba', 'Cold Turkey'], + ['#cec291', 'Yuma'], + ['#cec7a7', 'Chino'], + ['#cfa39d', 'Eunry'], + ['#cfb53b', 'Old Gold'], + ['#cfdccf', 'Tasman'], + ['#cfe5d2', 'Surf Crest'], + ['#cff9f3', 'Humming Bird'], + ['#cffaf4', 'Scandal'], + ['#d05f04', 'Red Stage'], + ['#d06da1', 'Hopbush'], + ['#d07d12', 'Meteor'], + ['#d0bef8', 'Perfume'], + ['#d0c0e5', 'Prelude'], + ['#d0f0c0', 'Tea Green'], + ['#d18f1b', 'Geebung'], + ['#d1bea8', 'Vanilla'], + ['#d1c6b4', 'Soft Amber'], + ['#d1d2ca', 'Celeste'], + ['#d1d2dd', 'Mischka'], + ['#d1e231', 'Pear'], + ['#d2691e', 'Hot Cinnamon'], + ['#d27d46', 'Raw Sienna'], + ['#d29eaa', 'Careys Pink'], + ['#d2b48c', 'Tan'], + ['#d2da97', 'Deco'], + ['#d2f6de', 'Blue Romance'], + ['#d2f8b0', 'Gossip'], + ['#d3cbba', 'Sisal'], + ['#d3cdc5', 'Swirl'], + ['#d47494', 'Charm'], + ['#d4b6af', 'Clam Shell'], + ['#d4bf8d', 'Straw'], + ['#d4c4a8', 'Akaroa'], + ['#d4cd16', 'Bird Flower'], + ['#d4d7d9', 'Iron'], + ['#d4dfe2', 'Geyser'], + ['#d4e2fc', 'Hawkes Blue'], + ['#d54600', 'Grenadier'], + ['#d591a4', 'Can Can'], + ['#d59a6f', 'Whiskey'], + ['#d5d195', 'Winter Hazel'], + ['#d5f6e3', 'Granny Apple'], + ['#d69188', 'My Pink'], + ['#d6c562', 'Tacha'], + ['#d6cef6', 'Moon Raker'], + ['#d6d6d1', 'Quill Gray'], + ['#d6ffdb', 'Snowy Mint'], + ['#d7837f', 'New York Pink'], + ['#d7c498', 'Pavlova'], + ['#d7d0ff', 'Fog'], + ['#d84437', 'Valencia'], + ['#d87c63', 'Japonica'], + ['#d8bfd8', 'Thistle'], + ['#d8c2d5', 'Maverick'], + ['#d8fcfa', 'Foam'], + ['#d94972', 'Cabaret'], + ['#d99376', 'Burning Sand'], + ['#d9b99b', 'Cameo'], + ['#d9d6cf', 'Timberwolf'], + ['#d9dcc1', 'Tana'], + ['#d9e4f5', 'Link Water'], + ['#d9f7ff', 'Mabel'], + ['#da3287', 'Cerise'], + ['#da5b38', 'Flame Pea'], + ['#da6304', 'Bamboo'], + ['#da6a41', 'Red Damask'], + ['#da70d6', 'Orchid'], + ['#da8a67', 'Copperfield'], + ['#daa520', 'Golden Grass'], + ['#daecd6', 'Zanah'], + ['#daf4f0', 'Iceberg'], + ['#dafaff', 'Oyster Bay'], + ['#db5079', 'Cranberry'], + ['#db9690', 'Petite Orchid'], + ['#db995e', 'Di Serria'], + ['#dbdbdb', 'Alto'], + ['#dbfff8', 'Frosted Mint'], + ['#dc143c', 'Crimson'], + ['#dc4333', 'Punch'], + ['#dcb20c', 'Galliano'], + ['#dcb4bc', 'Blossom'], + ['#dcd747', 'Wattle'], + ['#dcd9d2', 'Westar'], + ['#dcddcc', 'Moon Mist'], + ['#dcedb4', 'Caper'], + ['#dcf0ea', 'Swans Down'], + ['#ddd6d5', 'Swiss Coffee'], + ['#ddf9f1', 'White Ice'], + ['#de3163', 'Cerise Red'], + ['#de6360', 'Roman'], + ['#dea681', 'Tumbleweed'], + ['#deba13', 'Gold Tips'], + ['#dec196', 'Brandy'], + ['#decbc6', 'Wafer'], + ['#ded4a4', 'Sapling'], + ['#ded717', 'Barberry'], + ['#dee5c0', 'Beryl Green'], + ['#def5ff', 'Pattens Blue'], + ['#df73ff', 'Heliotrope'], + ['#dfbe6f', 'Apache'], + ['#dfcd6f', 'Chenin'], + ['#dfcfdb', 'Lola'], + ['#dfecda', 'Willow Brook'], + ['#dfff00', 'Chartreuse Yellow'], + ['#e0b0ff', 'Mauve'], + ['#e0b646', 'Anzac'], + ['#e0b974', 'Harvest Gold'], + ['#e0c095', 'Calico'], + ['#e0ffff', 'Baby Blue'], + ['#e16865', 'Sunglo'], + ['#e1bc64', 'Equator'], + ['#e1c0c8', 'Pink Flare'], + ['#e1e6d6', 'Periglacial Blue'], + ['#e1ead4', 'Kidnapper'], + ['#e1f6e8', 'Tara'], + ['#e25465', 'Mandy'], + ['#e2725b', 'Terracotta'], + ['#e28913', 'Golden Bell'], + ['#e292c0', 'Shocking'], + ['#e29418', 'Dixie'], + ['#e29cd2', 'Light Orchid'], + ['#e2d8ed', 'Snuff'], + ['#e2ebed', 'Mystic'], + ['#e2f3ec', 'Apple Green'], + ['#e30b5c', 'Razzmatazz'], + ['#e32636', 'Alizarin Crimson'], + ['#e34234', 'Cinnabar'], + ['#e3bebe', 'Cavern Pink'], + ['#e3f5e1', 'Peppermint'], + ['#e3f988', 'Mindaro'], + ['#e47698', 'Deep Blush'], + ['#e49b0f', 'Gamboge'], + ['#e4c2d5', 'Melanie'], + ['#e4cfde', 'Twilight'], + ['#e4d1c0', 'Bone'], + ['#e4d422', 'Sunflower'], + ['#e4d5b7', 'Grain Brown'], + ['#e4d69b', 'Zombie'], + ['#e4f6e7', 'Frostee'], + ['#e4ffd1', 'Snow Flurry'], + ['#e52b50', 'Amaranth'], + ['#e5841b', 'Zest'], + ['#e5ccc9', 'Dust Storm'], + ['#e5d7bd', 'Stark White'], + ['#e5d8af', 'Hampton'], + ['#e5e0e1', 'Bon Jour'], + ['#e5e5e5', 'Mercury'], + ['#e5f9f6', 'Polar'], + ['#e64e03', 'Trinidad'], + ['#e6be8a', 'Gold Sand'], + ['#e6bea5', 'Cashmere'], + ['#e6d7b9', 'Double Spanish White'], + ['#e6e4d4', 'Satin Linen'], + ['#e6f2ea', 'Harp'], + ['#e6f8f3', 'Off Green'], + ['#e6ffe9', 'Hint Of Green'], + ['#e6ffff', 'Tranquil'], + ['#e77200', 'Mango Tango'], + ['#e7730a', 'Christine'], + ['#e79f8c', 'Tonys Pink'], + ['#e79fc4', 'Kobi'], + ['#e7bcb4', 'Rose Fog'], + ['#e7bf05', 'Corn'], + ['#e7cd8c', 'Putty'], + ['#e7ece6', 'Gray Nurse'], + ['#e7f8ff', 'Lily White'], + ['#e7feff', 'Bubbles'], + ['#e89928', 'Fire Bush'], + ['#e8b9b3', 'Shilo'], + ['#e8e0d5', 'Pearl Bush'], + ['#e8ebe0', 'Green White'], + ['#e8f1d4', 'Chrome White'], + ['#e8f2eb', 'Gin'], + ['#e8f5f2', 'Aqua Squeeze'], + ['#e96e00', 'Clementine'], + ['#e97451', 'Burnt Sienna'], + ['#e97c07', 'Tahiti Gold'], + ['#e9cecd', 'Oyster Pink'], + ['#e9d75a', 'Confetti'], + ['#e9e3e3', 'Ebb'], + ['#e9f8ed', 'Ottoman'], + ['#e9fffd', 'Clear Day'], + ['#ea88a8', 'Carissma'], + ['#eaae69', 'Porsche'], + ['#eab33b', 'Tulip Tree'], + ['#eac674', 'Rob Roy'], + ['#eadab8', 'Raffia'], + ['#eae8d4', 'White Rock'], + ['#eaf6ee', 'Panache'], + ['#eaf6ff', 'Solitude'], + ['#eaf9f5', 'Aqua Spring'], + ['#eafffe', 'Dew'], + ['#eb9373', 'Apricot'], + ['#ebc2af', 'Zinnwaldite'], + ['#eca927', 'Fuel Yellow'], + ['#ecc54e', 'Ronchi'], + ['#ecc7ee', 'French Lilac'], + ['#eccdb9', 'Just Right'], + ['#ece090', 'Wild Rice'], + ['#ecebbd', 'Fall Green'], + ['#ecebce', 'Aths Special'], + ['#ecf245', 'Starship'], + ['#ed0a3f', 'Red Ribbon'], + ['#ed7a1c', 'Tango'], + ['#ed9121', 'Carrot Orange'], + ['#ed989e', 'Sea Pink'], + ['#edb381', 'Tacao'], + ['#edc9af', 'Desert Sand'], + ['#edcdab', 'Pancho'], + ['#eddcb1', 'Chamois'], + ['#edea99', 'Primrose'], + ['#edf5dd', 'Frost'], + ['#edf5f5', 'Aqua Haze'], + ['#edf6ff', 'Zumthor'], + ['#edf9f1', 'Narvik'], + ['#edfc84', 'Honeysuckle'], + ['#ee82ee', 'Lavender Magenta'], + ['#eec1be', 'Beauty Bush'], + ['#eed794', 'Chalky'], + ['#eed9c4', 'Almond'], + ['#eedc82', 'Flax'], + ['#eededa', 'Bizarre'], + ['#eee3ad', 'Double Colonial White'], + ['#eeeee8', 'Cararra'], + ['#eeef78', 'Manz'], + ['#eef0c8', 'Tahuna Sands'], + ['#eef0f3', 'Athens Gray'], + ['#eef3c3', 'Tusk'], + ['#eef4de', 'Loafer'], + ['#eef6f7', 'Catskill White'], + ['#eefdff', 'Twilight Blue'], + ['#eeff9a', 'Jonquil'], + ['#eeffe2', 'Rice Flower'], + ['#ef863f', 'Jaffa'], + ['#efefef', 'Gallery'], + ['#eff2f3', 'Porcelain'], + ['#f091a9', 'Mauvelous'], + ['#f0d52d', 'Golden Dream'], + ['#f0db7d', 'Golden Sand'], + ['#f0dc82', 'Buff'], + ['#f0e2ec', 'Prim'], + ['#f0e68c', 'Khaki'], + ['#f0eefd', 'Selago'], + ['#f0eeff', 'Titan White'], + ['#f0f8ff', 'Alice Blue'], + ['#f0fcea', 'Feta'], + ['#f18200', 'Gold Drop'], + ['#f19bab', 'Wewak'], + ['#f1e788', 'Sahara Sand'], + ['#f1e9d2', 'Parchment'], + ['#f1e9ff', 'Blue Chalk'], + ['#f1eec1', 'Mint Julep'], + ['#f1f1f1', 'Seashell'], + ['#f1f7f2', 'Saltpan'], + ['#f1ffad', 'Tidal'], + ['#f1ffc8', 'Chiffon'], + ['#f2552a', 'Flamingo'], + ['#f28500', 'Tangerine'], + ['#f2c3b2', 'Mandys Pink'], + ['#f2f2f2', 'Concrete'], + ['#f2fafa', 'Black Squeeze'], + ['#f34723', 'Pomegranate'], + ['#f3ad16', 'Buttercup'], + ['#f3d69d', 'New Orleans'], + ['#f3d9df', 'Vanilla Ice'], + ['#f3e7bb', 'Sidecar'], + ['#f3e9e5', 'Dawn Pink'], + ['#f3edcf', 'Wheatfield'], + ['#f3fb62', 'Canary'], + ['#f3fbd4', 'Orinoco'], + ['#f3ffd8', 'Carla'], + ['#f400a1', 'Hollywood Cerise'], + ['#f4a460', 'Sandy brown'], + ['#f4c430', 'Saffron'], + ['#f4d81c', 'Ripe Lemon'], + ['#f4ebd3', 'Janna'], + ['#f4f2ee', 'Pampas'], + ['#f4f4f4', 'Wild Sand'], + ['#f4f8ff', 'Zircon'], + ['#f57584', 'Froly'], + ['#f5c85c', 'Cream Can'], + ['#f5c999', 'Manhattan'], + ['#f5d5a0', 'Maize'], + ['#f5deb3', 'Wheat'], + ['#f5e7a2', 'Sandwisp'], + ['#f5e7e2', 'Pot Pourri'], + ['#f5e9d3', 'Albescent White'], + ['#f5edef', 'Soft Peach'], + ['#f5f3e5', 'Ecru White'], + ['#f5f5dc', 'Beige'], + ['#f5fb3d', 'Golden Fizz'], + ['#f5ffbe', 'Australian Mint'], + ['#f64a8a', 'French Rose'], + ['#f653a6', 'Brilliant Rose'], + ['#f6a4c9', 'Illusion'], + ['#f6f0e6', 'Merino'], + ['#f6f7f7', 'Black Haze'], + ['#f6ffdc', 'Spring Sun'], + ['#f7468a', 'Violet Red'], + ['#f77703', 'Chilean Fire'], + ['#f77fbe', 'Persian Pink'], + ['#f7b668', 'Rajah'], + ['#f7c8da', 'Azalea'], + ['#f7dbe6', 'We Peep'], + ['#f7f2e1', 'Quarter Spanish White'], + ['#f7f5fa', 'Whisper'], + ['#f7faf7', 'Snow Drift'], + ['#f8b853', 'Casablanca'], + ['#f8c3df', 'Chantilly'], + ['#f8d9e9', 'Cherub'], + ['#f8db9d', 'Marzipan'], + ['#f8dd5c', 'Energy Yellow'], + ['#f8e4bf', 'Givry'], + ['#f8f0e8', 'White Linen'], + ['#f8f4ff', 'Magnolia'], + ['#f8f6f1', 'Spring Wood'], + ['#f8f7dc', 'Coconut Cream'], + ['#f8f7fc', 'White Lilac'], + ['#f8f8f7', 'Desert Storm'], + ['#f8f99c', 'Texas'], + ['#f8facd', 'Corn Field'], + ['#f8fdd3', 'Mimosa'], + ['#f95a61', 'Carnation'], + ['#f9bf58', 'Saffron Mango'], + ['#f9e0ed', 'Carousel Pink'], + ['#f9e4bc', 'Dairy Cream'], + ['#f9e663', 'Portica'], + ['#f9eaf3', 'Amour'], + ['#f9f8e4', 'Rum Swizzle'], + ['#f9ff8b', 'Dolly'], + ['#f9fff6', 'Sugar Cane'], + ['#fa7814', 'Ecstasy'], + ['#fa9d5a', 'Tan Hide'], + ['#fad3a2', 'Corvette'], + ['#fadfad', 'Peach Yellow'], + ['#fae600', 'Turbo'], + ['#faeab9', 'Astra'], + ['#faeccc', 'Champagne'], + ['#faf0e6', 'Linen'], + ['#faf3f0', 'Fantasy'], + ['#faf7d6', 'Citrine White'], + ['#fafafa', 'Alabaster'], + ['#fafde4', 'Hint Of Yellow'], + ['#faffa4', 'Milan'], + ['#fb607f', 'Brink Pink'], + ['#fb8989', 'Geraldine'], + ['#fba0e3', 'Lavender Rose'], + ['#fba129', 'Sea Buckthorn'], + ['#fbac13', 'Sun'], + ['#fbaed2', 'Lavender Pink'], + ['#fbb2a3', 'Rose Bud'], + ['#fbbeda', 'Cupid'], + ['#fbcce7', 'Classic Rose'], + ['#fbceb1', 'Apricot Peach'], + ['#fbe7b2', 'Banana Mania'], + ['#fbe870', 'Marigold Yellow'], + ['#fbe96c', 'Festival'], + ['#fbea8c', 'Sweet Corn'], + ['#fbec5d', 'Candy Corn'], + ['#fbf9f9', 'Hint Of Red'], + ['#fbffba', 'Shalimar'], + ['#fc0fc0', 'Shocking Pink'], + ['#fc80a5', 'Tickle Me Pink'], + ['#fc9c1d', 'Tree Poppy'], + ['#fcc01e', 'Lightning Yellow'], + ['#fcd667', 'Goldenrod'], + ['#fcd917', 'Candlelight'], + ['#fcda98', 'Cherokee'], + ['#fcf4d0', 'Double Pearl Lusta'], + ['#fcf4dc', 'Pearl Lusta'], + ['#fcf8f7', 'Vista White'], + ['#fcfbf3', 'Bianca'], + ['#fcfeda', 'Moon Glow'], + ['#fcffe7', 'China Ivory'], + ['#fcfff9', 'Ceramic'], + ['#fd0e35', 'Torch Red'], + ['#fd5b78', 'Wild Watermelon'], + ['#fd7b33', 'Crusta'], + ['#fd7c07', 'Sorbus'], + ['#fd9fa2', 'Sweet Pink'], + ['#fdd5b1', 'Light Apricot'], + ['#fdd7e4', 'Pig Pink'], + ['#fde1dc', 'Cinderella'], + ['#fde295', 'Golden Glow'], + ['#fde910', 'Lemon'], + ['#fdf5e6', 'Old Lace'], + ['#fdf6d3', 'Half Colonial White'], + ['#fdf7ad', 'Drover'], + ['#fdfeb8', 'Pale Prim'], + ['#fdffd5', 'Cumulus'], + ['#fe28a2', 'Persian Rose'], + ['#fe4c40', 'Sunset Orange'], + ['#fe6f5e', 'Bittersweet'], + ['#fe9d04', 'California'], + ['#fea904', 'Yellow Sea'], + ['#febaad', 'Melon'], + ['#fed33c', 'Bright Sun'], + ['#fed85d', 'Dandelion'], + ['#fedb8d', 'Salomie'], + ['#fee5ac', 'Cape Honey'], + ['#feebf3', 'Remy'], + ['#feefce', 'Oasis'], + ['#fef0ec', 'Bridesmaid'], + ['#fef2c7', 'Beeswax'], + ['#fef3d8', 'Bleach White'], + ['#fef4cc', 'Pipi'], + ['#fef4db', 'Half Spanish White'], + ['#fef4f8', 'Wisp Pink'], + ['#fef5f1', 'Provincial Pink'], + ['#fef7de', 'Half Dutch White'], + ['#fef8e2', 'Solitaire'], + ['#fef8ff', 'White Pointer'], + ['#fef9e3', 'Off Yellow'], + ['#fefced', 'Orange White'], + ['#ff0000', 'Red'], + ['#ff007f', 'Rose'], + ['#ff00cc', 'Purple Pizzazz'], + ['#ff00ff', 'Magenta Fuchsia'], + ['#ff2400', 'Scarlet'], + ['#ff3399', 'Wild Strawberry'], + ['#ff33cc', 'Razzle Dazzle Rose'], + ['#ff355e', 'Radical Red'], + ['#ff3f34', 'Red Orange'], + ['#ff4040', 'Coral Red'], + ['#ff4d00', 'Vermilion'], + ['#ff4f00', 'International Orange'], + ['#ff6037', 'Outrageous Orange'], + ['#ff6600', 'Blaze Orange'], + ['#ff66ff', 'Pink Flamingo'], + ['#ff681f', 'Orange'], + ['#ff69b4', 'Hot Pink'], + ['#ff6b53', 'Persimmon'], + ['#ff6fff', 'Blush Pink'], + ['#ff7034', 'Burning Orange'], + ['#ff7518', 'Pumpkin'], + ['#ff7d07', 'Flamenco'], + ['#ff7f00', 'Flush Orange'], + ['#ff7f50', 'Coral'], + ['#ff8c69', 'Salmon'], + ['#ff9000', 'Pizazz'], + ['#ff910f', 'West Side'], + ['#ff91a4', 'Pink Salmon'], + ['#ff9933', 'Neon Carrot'], + ['#ff9966', 'Atomic Tangerine'], + ['#ff9980', 'Vivid Tangerine'], + ['#ff9e2c', 'Sunshade'], + ['#ffa000', 'Orange Peel'], + ['#ffa194', 'Mona Lisa'], + ['#ffa500', 'Web Orange'], + ['#ffa6c9', 'Carnation Pink'], + ['#ffab81', 'Hit Pink'], + ['#ffae42', 'Yellow Orange'], + ['#ffb0ac', 'Cornflower Lilac'], + ['#ffb1b3', 'Sundown'], + ['#ffb31f', 'My Sin'], + ['#ffb555', 'Texas Rose'], + ['#ffb7d5', 'Cotton Candy'], + ['#ffb97b', 'Macaroni And Cheese'], + ['#ffba00', 'Selective Yellow'], + ['#ffbd5f', 'Koromiko'], + ['#ffbf00', 'Amber'], + ['#ffc0a8', 'Wax Flower'], + ['#ffc0cb', 'Pink'], + ['#ffc3c0', 'Your Pink'], + ['#ffc901', 'Supernova'], + ['#ffcba4', 'Flesh'], + ['#ffcc33', 'Sunglow'], + ['#ffcc5c', 'Golden Tainoi'], + ['#ffcc99', 'Peach Orange'], + ['#ffcd8c', 'Chardonnay'], + ['#ffd1dc', 'Pastel Pink'], + ['#ffd2b7', 'Romantic'], + ['#ffd38c', 'Grandis'], + ['#ffd700', 'Gold'], + ['#ffd800', 'School Bus Yellow'], + ['#ffd8d9', 'Cosmos'], + ['#ffdb58', 'Mustard'], + ['#ffdcd6', 'Peach Schnapps'], + ['#ffddaf', 'Caramel'], + ['#ffddcd', 'Tuft Bush'], + ['#ffddcf', 'Watusi'], + ['#ffddf4', 'Pink Lace'], + ['#ffdead', 'Navajo White'], + ['#ffdeb3', 'Frangipani'], + ['#ffe1df', 'Pippin'], + ['#ffe1f2', 'Pale Rose'], + ['#ffe2c5', 'Negroni'], + ['#ffe5a0', 'Cream Brulee'], + ['#ffe5b4', 'Peach'], + ['#ffe6c7', 'Tequila'], + ['#ffe772', 'Kournikova'], + ['#ffeac8', 'Sandy Beach'], + ['#ffead4', 'Karry'], + ['#ffec13', 'Broom'], + ['#ffedbc', 'Colonial White'], + ['#ffeed8', 'Derby'], + ['#ffefa1', 'Vis Vis'], + ['#ffefc1', 'Egg White'], + ['#ffefd5', 'Papaya Whip'], + ['#ffefec', 'Fair Pink'], + ['#fff0db', 'Peach Cream'], + ['#fff0f5', 'Lavender Blush'], + ['#fff14f', 'Gorse'], + ['#fff1b5', 'Buttermilk'], + ['#fff1d8', 'Pink Lady'], + ['#fff1ee', 'Forget Me Not'], + ['#fff1f9', 'Tutu'], + ['#fff39d', 'Picasso'], + ['#fff3f1', 'Chardon'], + ['#fff46e', 'Paris Daisy'], + ['#fff4ce', 'Barley White'], + ['#fff4dd', 'Egg Sour'], + ['#fff4e0', 'Sazerac'], + ['#fff4e8', 'Serenade'], + ['#fff4f3', 'Chablis'], + ['#fff5ee', 'Seashell Peach'], + ['#fff5f3', 'Sauvignon'], + ['#fff6d4', 'Milk Punch'], + ['#fff6df', 'Varden'], + ['#fff6f5', 'Rose White'], + ['#fff8d1', 'Baja White'], + ['#fff9e2', 'Gin Fizz'], + ['#fff9e6', 'Early Dawn'], + ['#fffacd', 'Lemon Chiffon'], + ['#fffaf4', 'Bridal Heath'], + ['#fffbdc', 'Scotch Mist'], + ['#fffbf9', 'Soapstone'], + ['#fffc99', 'Witch Haze'], + ['#fffcea', 'Buttery White'], + ['#fffcee', 'Island Spice'], + ['#fffdd0', 'Cream'], + ['#fffde6', 'Chilean Heath'], + ['#fffde8', 'Travertine'], + ['#fffdf3', 'Orchid White'], + ['#fffdf4', 'Quarter Pearl Lusta'], + ['#fffee1', 'Half And Half'], + ['#fffeec', 'Apricot White'], + ['#fffef0', 'Rice Cake'], + ['#fffef6', 'Black White'], + ['#fffefd', 'Romance'], + ['#ffff00', 'Yellow'], + ['#ffff66', 'Laser Lemon'], + ['#ffff99', 'Pale Canary'], + ['#ffffb4', 'Portafino'], + ['#fffff0', 'Ivory'], + ['#ffffff', 'White'] +]; + +/** + * Map Of hex color values to color names + * + * - key: hex value + * - value: color name + */ +export const colorNameMap = colorNames.reduce>((acc, [hex, name]) => { + acc[hex] = name; + return acc; +}, {}); diff --git a/packages/color-palette/src/constant/palette.ts b/packages/color-palette/src/constant/palette.ts new file mode 100644 index 000000000..9f6266415 --- /dev/null +++ b/packages/color-palette/src/constant/palette.ts @@ -0,0 +1,356 @@ +import type { ColorPaletteFamily } from '../types'; + +export const colorPalettes: ColorPaletteFamily[] = [ + { + name: 'Slate', + palettes: [ + { hex: '#f8fafc', number: 50 }, + { hex: '#f1f5f9', number: 100 }, + { hex: '#e2e8f0', number: 200 }, + { hex: '#cbd5e1', number: 300 }, + { hex: '#94a3b8', number: 400 }, + { hex: '#64748b', number: 500 }, + { hex: '#475569', number: 600 }, + { hex: '#334155', number: 700 }, + { hex: '#1e293b', number: 800 }, + { hex: '#0f172a', number: 900 }, + { hex: '#020617', number: 950 } + ] + }, + { + name: 'Gray', + palettes: [ + { hex: '#f9fafb', number: 50 }, + { hex: '#f3f4f6', number: 100 }, + { hex: '#e5e7eb', number: 200 }, + { hex: '#d1d5db', number: 300 }, + { hex: '#9ca3af', number: 400 }, + { hex: '#6b7280', number: 500 }, + { hex: '#4b5563', number: 600 }, + { hex: '#374151', number: 700 }, + { hex: '#1f2937', number: 800 }, + { hex: '#111827', number: 900 }, + { hex: '#030712', number: 950 } + ] + }, + { + name: 'Zinc', + palettes: [ + { hex: '#fafafa', number: 50 }, + { hex: '#f4f4f5', number: 100 }, + { hex: '#e4e4e7', number: 200 }, + { hex: '#d4d4d8', number: 300 }, + { hex: '#a1a1aa', number: 400 }, + { hex: '#71717a', number: 500 }, + { hex: '#52525b', number: 600 }, + { hex: '#3f3f46', number: 700 }, + { hex: '#27272a', number: 800 }, + { hex: '#18181b', number: 900 }, + { hex: '#09090b', number: 950 } + ] + }, + { + name: 'Neutral', + palettes: [ + { hex: '#fafafa', number: 50 }, + { hex: '#f5f5f5', number: 100 }, + { hex: '#e5e5e5', number: 200 }, + { hex: '#d4d4d4', number: 300 }, + { hex: '#a3a3a3', number: 400 }, + { hex: '#737373', number: 500 }, + { hex: '#525252', number: 600 }, + { hex: '#404040', number: 700 }, + { hex: '#262626', number: 800 }, + { hex: '#171717', number: 900 }, + { hex: '#0a0a0a', number: 950 } + ] + }, + { + name: 'Stone', + palettes: [ + { hex: '#fafaf9', number: 50 }, + { hex: '#f5f5f4', number: 100 }, + { hex: '#e7e5e4', number: 200 }, + { hex: '#d6d3d1', number: 300 }, + { hex: '#a8a29e', number: 400 }, + { hex: '#78716c', number: 500 }, + { hex: '#57534e', number: 600 }, + { hex: '#44403c', number: 700 }, + { hex: '#292524', number: 800 }, + { hex: '#1c1917', number: 900 }, + { hex: '#0c0a09', number: 950 } + ] + }, + { + name: 'Red', + palettes: [ + { hex: '#fef2f2', number: 50 }, + { hex: '#fee2e2', number: 100 }, + { hex: '#fecaca', number: 200 }, + { hex: '#fca5a5', number: 300 }, + { hex: '#f87171', number: 400 }, + { hex: '#ef4444', number: 500 }, + { hex: '#dc2626', number: 600 }, + { hex: '#b91c1c', number: 700 }, + { hex: '#991b1b', number: 800 }, + { hex: '#7f1d1d', number: 900 }, + { hex: '#450a0a', number: 950 } + ] + }, + { + name: 'Orange', + palettes: [ + { hex: '#fff7ed', number: 50 }, + { hex: '#ffedd5', number: 100 }, + { hex: '#fed7aa', number: 200 }, + { hex: '#fdba74', number: 300 }, + { hex: '#fb923c', number: 400 }, + { hex: '#f97316', number: 500 }, + { hex: '#ea580c', number: 600 }, + { hex: '#c2410c', number: 700 }, + { hex: '#9a3412', number: 800 }, + { hex: '#7c2d12', number: 900 }, + { hex: '#431407', number: 950 } + ] + }, + { + name: 'Amber', + palettes: [ + { hex: '#fffbeb', number: 50 }, + { hex: '#fef3c7', number: 100 }, + { hex: '#fde68a', number: 200 }, + { hex: '#fcd34d', number: 300 }, + { hex: '#fbbf24', number: 400 }, + { hex: '#f59e0b', number: 500 }, + { hex: '#d97706', number: 600 }, + { hex: '#b45309', number: 700 }, + { hex: '#92400e', number: 800 }, + { hex: '#78350f', number: 900 }, + { hex: '#451a03', number: 950 } + ] + }, + { + name: 'Yellow', + palettes: [ + { hex: '#fefce8', number: 50 }, + { hex: '#fef9c3', number: 100 }, + { hex: '#fef08a', number: 200 }, + { hex: '#fde047', number: 300 }, + { hex: '#facc15', number: 400 }, + { hex: '#eab308', number: 500 }, + { hex: '#ca8a04', number: 600 }, + { hex: '#a16207', number: 700 }, + { hex: '#854d0e', number: 800 }, + { hex: '#713f12', number: 900 }, + { hex: '#422006', number: 950 } + ] + }, + { + name: 'Lime', + palettes: [ + { hex: '#f7fee7', number: 50 }, + { hex: '#ecfccb', number: 100 }, + { hex: '#d9f99d', number: 200 }, + { hex: '#bef264', number: 300 }, + { hex: '#a3e635', number: 400 }, + { hex: '#84cc16', number: 500 }, + { hex: '#65a30d', number: 600 }, + { hex: '#4d7c0f', number: 700 }, + { hex: '#3f6212', number: 800 }, + { hex: '#365314', number: 900 }, + { hex: '#1a2e05', number: 950 } + ] + }, + { + name: 'Green', + palettes: [ + { hex: '#f0fdf4', number: 50 }, + { hex: '#dcfce7', number: 100 }, + { hex: '#bbf7d0', number: 200 }, + { hex: '#86efac', number: 300 }, + { hex: '#4ade80', number: 400 }, + { hex: '#22c55e', number: 500 }, + { hex: '#16a34a', number: 600 }, + { hex: '#15803d', number: 700 }, + { hex: '#166534', number: 800 }, + { hex: '#14532d', number: 900 }, + { hex: '#052e16', number: 950 } + ] + }, + { + name: 'Emerald', + palettes: [ + { hex: '#ecfdf5', number: 50 }, + { hex: '#d1fae5', number: 100 }, + { hex: '#a7f3d0', number: 200 }, + { hex: '#6ee7b7', number: 300 }, + { hex: '#34d399', number: 400 }, + { hex: '#10b981', number: 500 }, + { hex: '#059669', number: 600 }, + { hex: '#047857', number: 700 }, + { hex: '#065f46', number: 800 }, + { hex: '#064e3b', number: 900 }, + { hex: '#022c22', number: 950 } + ] + }, + { + name: 'Teal', + palettes: [ + { hex: '#f0fdfa', number: 50 }, + { hex: '#ccfbf1', number: 100 }, + { hex: '#99f6e4', number: 200 }, + { hex: '#5eead4', number: 300 }, + { hex: '#2dd4bf', number: 400 }, + { hex: '#14b8a6', number: 500 }, + { hex: '#0d9488', number: 600 }, + { hex: '#0f766e', number: 700 }, + { hex: '#115e59', number: 800 }, + { hex: '#134e4a', number: 900 }, + { hex: '#042f2e', number: 950 } + ] + }, + { + name: 'Cyan', + palettes: [ + { hex: '#ecfeff', number: 50 }, + { hex: '#cffafe', number: 100 }, + { hex: '#a5f3fc', number: 200 }, + { hex: '#67e8f9', number: 300 }, + { hex: '#22d3ee', number: 400 }, + { hex: '#06b6d4', number: 500 }, + { hex: '#0891b2', number: 600 }, + { hex: '#0e7490', number: 700 }, + { hex: '#155e75', number: 800 }, + { hex: '#164e63', number: 900 }, + { hex: '#083344', number: 950 } + ] + }, + { + name: 'Sky', + palettes: [ + { hex: '#f0f9ff', number: 50 }, + { hex: '#e0f2fe', number: 100 }, + { hex: '#bae6fd', number: 200 }, + { hex: '#7dd3fc', number: 300 }, + { hex: '#38bdf8', number: 400 }, + { hex: '#0ea5e9', number: 500 }, + { hex: '#0284c7', number: 600 }, + { hex: '#0369a1', number: 700 }, + { hex: '#075985', number: 800 }, + { hex: '#0c4a6e', number: 900 }, + { hex: '#082f49', number: 950 } + ] + }, + { + name: 'Blue', + palettes: [ + { hex: '#eff6ff', number: 50 }, + { hex: '#dbeafe', number: 100 }, + { hex: '#bfdbfe', number: 200 }, + { hex: '#93c5fd', number: 300 }, + { hex: '#60a5fa', number: 400 }, + { hex: '#3b82f6', number: 500 }, + { hex: '#2563eb', number: 600 }, + { hex: '#1d4ed8', number: 700 }, + { hex: '#1e40af', number: 800 }, + { hex: '#1e3a8a', number: 900 }, + { hex: '#172554', number: 950 } + ] + }, + { + name: 'Indigo', + palettes: [ + { hex: '#eef2ff', number: 50 }, + { hex: '#e0e7ff', number: 100 }, + { hex: '#c7d2fe', number: 200 }, + { hex: '#a5b4fc', number: 300 }, + { hex: '#818cf8', number: 400 }, + { hex: '#6366f1', number: 500 }, + { hex: '#4f46e5', number: 600 }, + { hex: '#4338ca', number: 700 }, + { hex: '#3730a3', number: 800 }, + { hex: '#312e81', number: 900 }, + { hex: '#1e1b4b', number: 950 } + ] + }, + { + name: 'Violet', + palettes: [ + { hex: '#f5f3ff', number: 50 }, + { hex: '#ede9fe', number: 100 }, + { hex: '#ddd6fe', number: 200 }, + { hex: '#c4b5fd', number: 300 }, + { hex: '#a78bfa', number: 400 }, + { hex: '#8b5cf6', number: 500 }, + { hex: '#7c3aed', number: 600 }, + { hex: '#6d28d9', number: 700 }, + { hex: '#5b21b6', number: 800 }, + { hex: '#4c1d95', number: 900 }, + { hex: '#2e1065', number: 950 } + ] + }, + { + name: 'Purple', + palettes: [ + { hex: '#faf5ff', number: 50 }, + { hex: '#f3e8ff', number: 100 }, + { hex: '#e9d5ff', number: 200 }, + { hex: '#d8b4fe', number: 300 }, + { hex: '#c084fc', number: 400 }, + { hex: '#a855f7', number: 500 }, + { hex: '#9333ea', number: 600 }, + { hex: '#7e22ce', number: 700 }, + { hex: '#6b21a8', number: 800 }, + { hex: '#581c87', number: 900 }, + { hex: '#3b0764', number: 950 } + ] + }, + { + name: 'Fuchsia', + palettes: [ + { hex: '#fdf4ff', number: 50 }, + { hex: '#fae8ff', number: 100 }, + { hex: '#f5d0fe', number: 200 }, + { hex: '#f0abfc', number: 300 }, + { hex: '#e879f9', number: 400 }, + { hex: '#d946ef', number: 500 }, + { hex: '#c026d3', number: 600 }, + { hex: '#a21caf', number: 700 }, + { hex: '#86198f', number: 800 }, + { hex: '#701a75', number: 900 }, + { hex: '#4a044e', number: 950 } + ] + }, + { + name: 'Pink', + palettes: [ + { hex: '#fdf2f8', number: 50 }, + { hex: '#fce7f3', number: 100 }, + { hex: '#fbcfe8', number: 200 }, + { hex: '#f9a8d4', number: 300 }, + { hex: '#f472b6', number: 400 }, + { hex: '#ec4899', number: 500 }, + { hex: '#db2777', number: 600 }, + { hex: '#be185d', number: 700 }, + { hex: '#9d174d', number: 800 }, + { hex: '#831843', number: 900 }, + { hex: '#500724', number: 950 } + ] + }, + { + name: 'Rose', + palettes: [ + { hex: '#fff1f2', number: 50 }, + { hex: '#ffe4e6', number: 100 }, + { hex: '#fecdd3', number: 200 }, + { hex: '#fda4af', number: 300 }, + { hex: '#fb7185', number: 400 }, + { hex: '#f43f5e', number: 500 }, + { hex: '#e11d48', number: 600 }, + { hex: '#be123c', number: 700 }, + { hex: '#9f1239', number: 800 }, + { hex: '#881337', number: 900 }, + { hex: '#4c0519', number: 950 } + ] + } +]; diff --git a/packages/color-palette/src/index.ts b/packages/color-palette/src/index.ts index 2c7543a89..56fde01d1 100644 --- a/packages/color-palette/src/index.ts +++ b/packages/color-palette/src/index.ts @@ -1,57 +1,6 @@ -import { getColorPaletteFamily } from './palette'; -import { getColorName } from './name'; -import type { ColorPalette, ColorPaletteFamily, ColorPaletteItem, ColorPaletteNumber } from './type'; -import defaultPalettes from './json/palette.json'; +import { colorPalettes } from './constant'; +import { getColorName, getHex, getHsl, getRgb } from './shared'; -// to do: there is a bug in the code below, when the color is '#1c5cff', the colorPaletteFamily is not similar to the provided color -/** - * Get color palette by provided color and color name - * - * @param color The provided color - * @param colorName Color name - */ -export function getColorPalette(color: string, colorName: string) { - const colorPaletteFamily = getColorPaletteFamily(color, colorName); - - const colorMap = new Map(); - - colorPaletteFamily.palettes.forEach(palette => { - colorMap.set(palette.number, palette); - }); - - const mainColor = colorMap.get(500) as ColorPaletteItem; - const matchColor = colorPaletteFamily.palettes.find(palette => palette.hexcode === color) as ColorPaletteItem; - - const colorPalette: ColorPalette = { - ...colorPaletteFamily, - colorMap, - main: mainColor, - match: matchColor - }; - - return colorPalette; -} - -/** - * Get color by color palette number - * - * @param color Color - * @param num Color palette number - * @returns Color hexcode - */ -export function getColorByColorPaletteNumber(color: string, num: ColorPaletteNumber) { - const colorPalette = getColorPalette(color, color); - - const colorItem = colorPalette.colorMap.get(num) as ColorPaletteItem; - - return colorItem.hexcode; -} - -export default getColorPalette; - -/** The builtin color palettes */ -const colorPalettes = defaultPalettes as ColorPaletteFamily[]; - -export { getColorName, colorPalettes }; - -export type { ColorPalette, ColorPaletteNumber, ColorPaletteItem, ColorPaletteFamily }; +export * from './palette'; +export { getColorName, getHex, getHsl, getRgb, colorPalettes }; +export * from './types'; diff --git a/packages/color-palette/src/json/color-name.json b/packages/color-palette/src/json/color-name.json deleted file mode 100644 index 82b27862e..000000000 --- a/packages/color-palette/src/json/color-name.json +++ /dev/null @@ -1,1568 +0,0 @@ -[ - ["000000", "Black"], - ["000080", "Navy Blue"], - ["0000C8", "Dark Blue"], - ["0000FF", "Blue"], - ["000741", "Stratos"], - ["001B1C", "Swamp"], - ["002387", "Resolution Blue"], - ["002900", "Deep Fir"], - ["002E20", "Burnham"], - ["002FA7", "International Klein Blue"], - ["003153", "Prussian Blue"], - ["003366", "Midnight Blue"], - ["003399", "Smalt"], - ["003532", "Deep Teal"], - ["003E40", "Cyprus"], - ["004620", "Kaitoke Green"], - ["0047AB", "Cobalt"], - ["004816", "Crusoe"], - ["004950", "Sherpa Blue"], - ["0056A7", "Endeavour"], - ["00581A", "Camarone"], - ["0066CC", "Science Blue"], - ["0066FF", "Blue Ribbon"], - ["00755E", "Tropical Rain Forest"], - ["0076A3", "Allports"], - ["007BA7", "Deep Cerulean"], - ["007EC7", "Lochmara"], - ["007FFF", "Azure Radiance"], - ["008080", "Teal"], - ["0095B6", "Bondi Blue"], - ["009DC4", "Pacific Blue"], - ["00A693", "Persian Green"], - ["00A86B", "Jade"], - ["00CC99", "Caribbean Green"], - ["00CCCC", "Robin's Egg Blue"], - ["00FF00", "Green"], - ["00FF7F", "Spring Green"], - ["00FFFF", "Cyan / Aqua"], - ["010D1A", "Blue Charcoal"], - ["011635", "Midnight"], - ["011D13", "Holly"], - ["012731", "Daintree"], - ["01361C", "Cardin Green"], - ["01371A", "County Green"], - ["013E62", "Astronaut Blue"], - ["013F6A", "Regal Blue"], - ["014B43", "Aqua Deep"], - ["015E85", "Orient"], - ["016162", "Blue Stone"], - ["016D39", "Fun Green"], - ["01796F", "Pine Green"], - ["017987", "Blue Lagoon"], - ["01826B", "Deep Sea"], - ["01A368", "Green Haze"], - ["022D15", "English Holly"], - ["02402C", "Sherwood Green"], - ["02478E", "Congress Blue"], - ["024E46", "Evening Sea"], - ["026395", "Bahama Blue"], - ["02866F", "Observatory"], - ["02A4D3", "Cerulean"], - ["03163C", "Tangaroa"], - ["032B52", "Green Vogue"], - ["036A6E", "Mosque"], - ["041004", "Midnight Moss"], - ["041322", "Black Pearl"], - ["042E4C", "Blue Whale"], - ["044022", "Zuccini"], - ["044259", "Teal Blue"], - ["051040", "Deep Cove"], - ["051657", "Gulf Blue"], - ["055989", "Venice Blue"], - ["056F57", "Watercourse"], - ["062A78", "Catalina Blue"], - ["063537", "Tiber"], - ["069B81", "Gossamer"], - ["06A189", "Niagara"], - ["073A50", "Tarawera"], - ["080110", "Jaguar"], - ["081910", "Black Bean"], - ["082567", "Deep Sapphire"], - ["088370", "Elf Green"], - ["08E8DE", "Bright Turquoise"], - ["092256", "Downriver"], - ["09230F", "Palm Green"], - ["09255D", "Madison"], - ["093624", "Bottle Green"], - ["095859", "Deep Sea Green"], - ["097F4B", "Salem"], - ["0A001C", "Black Russian"], - ["0A480D", "Dark Fern"], - ["0A6906", "Japanese Laurel"], - ["0A6F75", "Atoll"], - ["0B0B0B", "Cod Gray"], - ["0B0F08", "Marshland"], - ["0B1107", "Gordons Green"], - ["0B1304", "Black Forest"], - ["0B6207", "San Felix"], - ["0BDA51", "Malachite"], - ["0C0B1D", "Ebony"], - ["0C0D0F", "Woodsmoke"], - ["0C1911", "Racing Green"], - ["0C7A79", "Surfie Green"], - ["0C8990", "Blue Chill"], - ["0D0332", "Black Rock"], - ["0D1117", "Bunker"], - ["0D1C19", "Aztec"], - ["0D2E1C", "Bush"], - ["0E0E18", "Cinder"], - ["0E2A30", "Firefly"], - ["0F2D9E", "Torea Bay"], - ["10121D", "Vulcan"], - ["101405", "Green Waterloo"], - ["105852", "Eden"], - ["110C6C", "Arapawa"], - ["120A8F", "Ultramarine"], - ["123447", "Elephant"], - ["126B40", "Jewel"], - ["130000", "Diesel"], - ["130A06", "Asphalt"], - ["13264D", "Blue Zodiac"], - ["134F19", "Parsley"], - ["140600", "Nero"], - ["1450AA", "Tory Blue"], - ["151F4C", "Bunting"], - ["1560BD", "Denim"], - ["15736B", "Genoa"], - ["161928", "Mirage"], - ["161D10", "Hunter Green"], - ["162A40", "Big Stone"], - ["163222", "Celtic"], - ["16322C", "Timber Green"], - ["163531", "Gable Green"], - ["171F04", "Pine Tree"], - ["175579", "Chathams Blue"], - ["182D09", "Deep Forest Green"], - ["18587A", "Blumine"], - ["19330E", "Palm Leaf"], - ["193751", "Nile Blue"], - ["1959A8", "Fun Blue"], - ["1A1A68", "Lucky Point"], - ["1AB385", "Mountain Meadow"], - ["1B0245", "Tolopea"], - ["1B1035", "Haiti"], - ["1B127B", "Deep Koamaru"], - ["1B1404", "Acadia"], - ["1B2F11", "Seaweed"], - ["1B3162", "Biscay"], - ["1B659D", "Matisse"], - ["1C1208", "Crowshead"], - ["1C1E13", "Rangoon Green"], - ["1C39BB", "Persian Blue"], - ["1C402E", "Everglade"], - ["1C7C7D", "Elm"], - ["1D6142", "Green Pea"], - ["1E0F04", "Creole"], - ["1E1609", "Karaka"], - ["1E1708", "El Paso"], - ["1E385B", "Cello"], - ["1E433C", "Te Papa Green"], - ["1E90FF", "Dodger Blue"], - ["1E9AB0", "Eastern Blue"], - ["1F120F", "Night Rider"], - ["1FC2C2", "Java"], - ["20208D", "Jacksons Purple"], - ["202E54", "Cloud Burst"], - ["204852", "Blue Dianne"], - ["211A0E", "Eternity"], - ["220878", "Deep Blue"], - ["228B22", "Forest Green"], - ["233418", "Mallard"], - ["240A40", "Violet"], - ["240C02", "Kilamanjaro"], - ["242A1D", "Log Cabin"], - ["242E16", "Black Olive"], - ["24500F", "Green House"], - ["251607", "Graphite"], - ["251706", "Cannon Black"], - ["251F4F", "Port Gore"], - ["25272C", "Shark"], - ["25311C", "Green Kelp"], - ["2596D1", "Curious Blue"], - ["260368", "Paua"], - ["26056A", "Paris M"], - ["261105", "Wood Bark"], - ["261414", "Gondola"], - ["262335", "Steel Gray"], - ["26283B", "Ebony Clay"], - ["273A81", "Bay of Many"], - ["27504B", "Plantation"], - ["278A5B", "Eucalyptus"], - ["281E15", "Oil"], - ["283A77", "Astronaut"], - ["286ACD", "Mariner"], - ["290C5E", "Violent Violet"], - ["292130", "Bastille"], - ["292319", "Zeus"], - ["292937", "Charade"], - ["297B9A", "Jelly Bean"], - ["29AB87", "Jungle Green"], - ["2A0359", "Cherry Pie"], - ["2A140E", "Coffee Bean"], - ["2A2630", "Baltic Sea"], - ["2A380B", "Turtle Green"], - ["2A52BE", "Cerulean Blue"], - ["2B0202", "Sepia Black"], - ["2B194F", "Valhalla"], - ["2B3228", "Heavy Metal"], - ["2C0E8C", "Blue Gem"], - ["2C1632", "Revolver"], - ["2C2133", "Bleached Cedar"], - ["2C8C84", "Lochinvar"], - ["2D2510", "Mikado"], - ["2D383A", "Outer Space"], - ["2D569B", "St Tropaz"], - ["2E0329", "Jacaranda"], - ["2E1905", "Jacko Bean"], - ["2E3222", "Rangitoto"], - ["2E3F62", "Rhino"], - ["2E8B57", "Sea Green"], - ["2EBFD4", "Scooter"], - ["2F270E", "Onion"], - ["2F3CB3", "Governor Bay"], - ["2F519E", "Sapphire"], - ["2F5A57", "Spectra"], - ["2F6168", "Casal"], - ["300529", "Melanzane"], - ["301F1E", "Cocoa Brown"], - ["302A0F", "Woodrush"], - ["304B6A", "San Juan"], - ["30D5C8", "Turquoise"], - ["311C17", "Eclipse"], - ["314459", "Pickled Bluewood"], - ["315BA1", "Azure"], - ["31728D", "Calypso"], - ["317D82", "Paradiso"], - ["32127A", "Persian Indigo"], - ["32293A", "Blackcurrant"], - ["323232", "Mine Shaft"], - ["325D52", "Stromboli"], - ["327C14", "Bilbao"], - ["327DA0", "Astral"], - ["33036B", "Christalle"], - ["33292F", "Thunder"], - ["33CC99", "Shamrock"], - ["341515", "Tamarind"], - ["350036", "Mardi Gras"], - ["350E42", "Valentino"], - ["350E57", "Jagger"], - ["353542", "Tuna"], - ["354E8C", "Chambray"], - ["363050", "Martinique"], - ["363534", "Tuatara"], - ["363C0D", "Waiouru"], - ["36747D", "Ming"], - ["368716", "La Palma"], - ["370202", "Chocolate"], - ["371D09", "Clinker"], - ["37290E", "Brown Tumbleweed"], - ["373021", "Birch"], - ["377475", "Oracle"], - ["380474", "Blue Diamond"], - ["381A51", "Grape"], - ["383533", "Dune"], - ["384555", "Oxford Blue"], - ["384910", "Clover"], - ["394851", "Limed Spruce"], - ["396413", "Dell"], - ["3A0020", "Toledo"], - ["3A2010", "Sambuca"], - ["3A2A6A", "Jacarta"], - ["3A686C", "William"], - ["3A6A47", "Killarney"], - ["3AB09E", "Keppel"], - ["3B000B", "Temptress"], - ["3B0910", "Aubergine"], - ["3B1F1F", "Jon"], - ["3B2820", "Treehouse"], - ["3B7A57", "Amazon"], - ["3B91B4", "Boston Blue"], - ["3C0878", "Windsor"], - ["3C1206", "Rebel"], - ["3C1F76", "Meteorite"], - ["3C2005", "Dark Ebony"], - ["3C3910", "Camouflage"], - ["3C4151", "Bright Gray"], - ["3C4443", "Cape Cod"], - ["3C493A", "Lunar Green"], - ["3D0C02", "Bean "], - ["3D2B1F", "Bistre"], - ["3D7D52", "Goblin"], - ["3E0480", "Kingfisher Daisy"], - ["3E1C14", "Cedar"], - ["3E2B23", "English Walnut"], - ["3E2C1C", "Black Marlin"], - ["3E3A44", "Ship Gray"], - ["3EABBF", "Pelorous"], - ["3F2109", "Bronze"], - ["3F2500", "Cola"], - ["3F3002", "Madras"], - ["3F307F", "Minsk"], - ["3F4C3A", "Cabbage Pont"], - ["3F583B", "Tom Thumb"], - ["3F5D53", "Mineral Green"], - ["3FC1AA", "Puerto Rico"], - ["3FFF00", "Harlequin"], - ["401801", "Brown Pod"], - ["40291D", "Cork"], - ["403B38", "Masala"], - ["403D19", "Thatch Green"], - ["405169", "Fiord"], - ["40826D", "Viridian"], - ["40A860", "Chateau Green"], - ["410056", "Ripe Plum"], - ["411F10", "Paco"], - ["412010", "Deep Oak"], - ["413C37", "Merlin"], - ["414257", "Gun Powder"], - ["414C7D", "East Bay"], - ["4169E1", "Royal Blue"], - ["41AA78", "Ocean Green"], - ["420303", "Burnt Maroon"], - ["423921", "Lisbon Brown"], - ["427977", "Faded Jade"], - ["431560", "Scarlet Gum"], - ["433120", "Iroko"], - ["433E37", "Armadillo"], - ["434C59", "River Bed"], - ["436A0D", "Green Leaf"], - ["44012D", "Barossa"], - ["441D00", "Morocco Brown"], - ["444954", "Mako"], - ["454936", "Kelp"], - ["456CAC", "San Marino"], - ["45B1E8", "Picton Blue"], - ["460B41", "Loulou"], - ["462425", "Crater Brown"], - ["465945", "Gray Asparagus"], - ["4682B4", "Steel Blue"], - ["480404", "Rustic Red"], - ["480607", "Bulgarian Rose"], - ["480656", "Clairvoyant"], - ["481C1C", "Cocoa Bean"], - ["483131", "Woody Brown"], - ["483C32", "Taupe"], - ["49170C", "Van Cleef"], - ["492615", "Brown Derby"], - ["49371B", "Metallic Bronze"], - ["495400", "Verdun Green"], - ["496679", "Blue Bayoux"], - ["497183", "Bismark"], - ["4A2A04", "Bracken"], - ["4A3004", "Deep Bronze"], - ["4A3C30", "Mondo"], - ["4A4244", "Tundora"], - ["4A444B", "Gravel"], - ["4A4E5A", "Trout"], - ["4B0082", "Pigment Indigo"], - ["4B5D52", "Nandor"], - ["4C3024", "Saddle"], - ["4C4F56", "Abbey"], - ["4D0135", "Blackberry"], - ["4D0A18", "Cab Sav"], - ["4D1E01", "Indian Tan"], - ["4D282D", "Cowboy"], - ["4D282E", "Livid Brown"], - ["4D3833", "Rock"], - ["4D3D14", "Punga"], - ["4D400F", "Bronzetone"], - ["4D5328", "Woodland"], - ["4E0606", "Mahogany"], - ["4E2A5A", "Bossanova"], - ["4E3B41", "Matterhorn"], - ["4E420C", "Bronze Olive"], - ["4E4562", "Mulled Wine"], - ["4E6649", "Axolotl"], - ["4E7F9E", "Wedgewood"], - ["4EABD1", "Shakespeare"], - ["4F1C70", "Honey Flower"], - ["4F2398", "Daisy Bush"], - ["4F69C6", "Indigo"], - ["4F7942", "Fern Green"], - ["4F9D5D", "Fruit Salad"], - ["4FA83D", "Apple"], - ["504351", "Mortar"], - ["507096", "Kashmir Blue"], - ["507672", "Cutty Sark"], - ["50C878", "Emerald"], - ["514649", "Emperor"], - ["516E3D", "Chalet Green"], - ["517C66", "Como"], - ["51808F", "Smalt Blue"], - ["52001F", "Castro"], - ["520C17", "Maroon Oak"], - ["523C94", "Gigas"], - ["533455", "Voodoo"], - ["534491", "Victoria"], - ["53824B", "Hippie Green"], - ["541012", "Heath"], - ["544333", "Judge Gray"], - ["54534D", "Fuscous Gray"], - ["549019", "Vida Loca"], - ["55280C", "Cioccolato"], - ["555B10", "Saratoga"], - ["556D56", "Finlandia"], - ["5590D9", "Havelock Blue"], - ["56B4BE", "Fountain Blue"], - ["578363", "Spring Leaves"], - ["583401", "Saddle Brown"], - ["585562", "Scarpa Flow"], - ["587156", "Cactus"], - ["589AAF", "Hippie Blue"], - ["591D35", "Wine Berry"], - ["592804", "Brown Bramble"], - ["593737", "Congo Brown"], - ["594433", "Millbrook"], - ["5A6E9C", "Waikawa Gray"], - ["5A87A0", "Horizon"], - ["5B3013", "Jambalaya"], - ["5C0120", "Bordeaux"], - ["5C0536", "Mulberry Wood"], - ["5C2E01", "Carnaby Tan"], - ["5C5D75", "Comet"], - ["5D1E0F", "Redwood"], - ["5D4C51", "Don Juan"], - ["5D5C58", "Chicago"], - ["5D5E37", "Verdigris"], - ["5D7747", "Dingley"], - ["5DA19F", "Breaker Bay"], - ["5E483E", "Kabul"], - ["5E5D3B", "Hemlock"], - ["5F3D26", "Irish Coffee"], - ["5F5F6E", "Mid Gray"], - ["5F6672", "Shuttle Gray"], - ["5FA777", "Aqua Forest"], - ["5FB3AC", "Tradewind"], - ["604913", "Horses Neck"], - ["605B73", "Smoky"], - ["606E68", "Corduroy"], - ["6093D1", "Danube"], - ["612718", "Espresso"], - ["614051", "Eggplant"], - ["615D30", "Costa Del Sol"], - ["61845F", "Glade Green"], - ["622F30", "Buccaneer"], - ["623F2D", "Quincy"], - ["624E9A", "Butterfly Bush"], - ["625119", "West Coast"], - ["626649", "Finch"], - ["639A8F", "Patina"], - ["63B76C", "Fern"], - ["6456B7", "Blue Violet"], - ["646077", "Dolphin"], - ["646463", "Storm Dust"], - ["646A54", "Siam"], - ["646E75", "Nevada"], - ["6495ED", "Cornflower Blue"], - ["64CCDB", "Viking"], - ["65000B", "Rosewood"], - ["651A14", "Cherrywood"], - ["652DC1", "Purple Heart"], - ["657220", "Fern Frond"], - ["65745D", "Willow Grove"], - ["65869F", "Hoki"], - ["660045", "Pompadour"], - ["660099", "Purple"], - ["66023C", "Tyrian Purple"], - ["661010", "Dark Tan"], - ["66B58F", "Silver Tree"], - ["66FF00", "Bright Green"], - ["66FF66", "Screamin Green"], - ["67032D", "Black Rose"], - ["675FA6", "Scampi"], - ["676662", "Ironside Gray"], - ["678975", "Viridian Green"], - ["67A712", "Christi"], - ["683600", "Nutmeg Wood Finish"], - ["685558", "Zambezi"], - ["685E6E", "Salt Box"], - ["692545", "Tawny Port"], - ["692D54", "Finn"], - ["695F62", "Scorpion"], - ["697E9A", "Lynch"], - ["6A442E", "Spice"], - ["6A5D1B", "Himalaya"], - ["6A6051", "Soya Bean"], - ["6B2A14", "Hairy Heath"], - ["6B3FA0", "Royal Purple"], - ["6B4E31", "Shingle Fawn"], - ["6B5755", "Dorado"], - ["6B8BA2", "Bermuda Gray"], - ["6B8E23", "Olive Drab"], - ["6C3082", "Eminence"], - ["6CDAE7", "Turquoise Blue"], - ["6D0101", "Lonestar"], - ["6D5E54", "Pine Cone"], - ["6D6C6C", "Dove Gray"], - ["6D9292", "Juniper"], - ["6D92A1", "Gothic"], - ["6E0902", "Red Oxide"], - ["6E1D14", "Moccaccino"], - ["6E4826", "Pickled Bean"], - ["6E4B26", "Dallas"], - ["6E6D57", "Kokoda"], - ["6E7783", "Pale Sky"], - ["6F440C", "Cafe Royale"], - ["6F6A61", "Flint"], - ["6F8E63", "Highland"], - ["6F9D02", "Limeade"], - ["6FD0C5", "Downy"], - ["701C1C", "Persian Plum"], - ["704214", "Sepia"], - ["704A07", "Antique Bronze"], - ["704F50", "Ferra"], - ["706555", "Coffee"], - ["708090", "Slate Gray"], - ["711A00", "Cedar Wood Finish"], - ["71291D", "Metallic Copper"], - ["714693", "Affair"], - ["714AB2", "Studio"], - ["715D47", "Tobacco Brown"], - ["716338", "Yellow Metal"], - ["716B56", "Peat"], - ["716E10", "Olivetone"], - ["717486", "Storm Gray"], - ["718080", "Sirocco"], - ["71D9E2", "Aquamarine Blue"], - ["72010F", "Venetian Red"], - ["724A2F", "Old Copper"], - ["726D4E", "Go Ben"], - ["727B89", "Raven"], - ["731E8F", "Seance"], - ["734A12", "Raw Umber"], - ["736C9F", "Kimberly"], - ["736D58", "Crocodile"], - ["737829", "Crete"], - ["738678", "Xanadu"], - ["74640D", "Spicy Mustard"], - ["747D63", "Limed Ash"], - ["747D83", "Rolling Stone"], - ["748881", "Blue Smoke"], - ["749378", "Laurel"], - ["74C365", "Mantis"], - ["755A57", "Russett"], - ["7563A8", "Deluge"], - ["76395D", "Cosmic"], - ["7666C6", "Blue Marguerite"], - ["76BD17", "Lima"], - ["76D7EA", "Sky Blue"], - ["770F05", "Dark Burgundy"], - ["771F1F", "Crown of Thorns"], - ["773F1A", "Walnut"], - ["776F61", "Pablo"], - ["778120", "Pacifika"], - ["779E86", "Oxley"], - ["77DD77", "Pastel Green"], - ["780109", "Japanese Maple"], - ["782D19", "Mocha"], - ["782F16", "Peanut"], - ["78866B", "Camouflage Green"], - ["788A25", "Wasabi"], - ["788BBA", "Ship Cove"], - ["78A39C", "Sea Nymph"], - ["795D4C", "Roman Coffee"], - ["796878", "Old Lavender"], - ["796989", "Rum"], - ["796A78", "Fedora"], - ["796D62", "Sandstone"], - ["79DEEC", "Spray"], - ["7A013A", "Siren"], - ["7A58C1", "Fuchsia Blue"], - ["7A7A7A", "Boulder"], - ["7A89B8", "Wild Blue Yonder"], - ["7AC488", "De York"], - ["7B3801", "Red Beech"], - ["7B3F00", "Cinnamon"], - ["7B6608", "Yukon Gold"], - ["7B7874", "Tapa"], - ["7B7C94", "Waterloo "], - ["7B8265", "Flax Smoke"], - ["7B9F80", "Amulet"], - ["7BA05B", "Asparagus"], - ["7C1C05", "Kenyan Copper"], - ["7C7631", "Pesto"], - ["7C778A", "Topaz"], - ["7C7B7A", "Concord"], - ["7C7B82", "Jumbo"], - ["7C881A", "Trendy Green"], - ["7CA1A6", "Gumbo"], - ["7CB0A1", "Acapulco"], - ["7CB7BB", "Neptune"], - ["7D2C14", "Pueblo"], - ["7DA98D", "Bay Leaf"], - ["7DC8F7", "Malibu"], - ["7DD8C6", "Bermuda"], - ["7E3A15", "Copper Canyon"], - ["7F1734", "Claret"], - ["7F3A02", "Peru Tan"], - ["7F626D", "Falcon"], - ["7F7589", "Mobster"], - ["7F76D3", "Moody Blue"], - ["7FFF00", "Chartreuse"], - ["7FFFD4", "Aquamarine"], - ["800000", "Maroon"], - ["800B47", "Rose Bud Cherry"], - ["801818", "Falu Red"], - ["80341F", "Red Robin"], - ["803790", "Vivid Violet"], - ["80461B", "Russet"], - ["807E79", "Friar Gray"], - ["808000", "Olive"], - ["808080", "Gray"], - ["80B3AE", "Gulf Stream"], - ["80B3C4", "Glacier"], - ["80CCEA", "Seagull"], - ["81422C", "Nutmeg"], - ["816E71", "Spicy Pink"], - ["817377", "Empress"], - ["819885", "Spanish Green"], - ["826F65", "Sand Dune"], - ["828685", "Gunsmoke"], - ["828F72", "Battleship Gray"], - ["831923", "Merlot"], - ["837050", "Shadow"], - ["83AA5D", "Chelsea Cucumber"], - ["83D0C6", "Monte Carlo"], - ["843179", "Plum"], - ["84A0A0", "Granny Smith"], - ["8581D9", "Chetwode Blue"], - ["858470", "Bandicoot"], - ["859FAF", "Bali Hai"], - ["85C4CC", "Half Baked"], - ["860111", "Red Devil"], - ["863C3C", "Lotus"], - ["86483C", "Ironstone"], - ["864D1E", "Bull Shot"], - ["86560A", "Rusty Nail"], - ["868974", "Bitter"], - ["86949F", "Regent Gray"], - ["871550", "Disco"], - ["87756E", "Americano"], - ["877C7B", "Hurricane"], - ["878D91", "Oslo Gray"], - ["87AB39", "Sushi"], - ["885342", "Spicy Mix"], - ["886221", "Kumera"], - ["888387", "Suva Gray"], - ["888D65", "Avocado"], - ["893456", "Camelot"], - ["893843", "Solid Pink"], - ["894367", "Cannon Pink"], - ["897D6D", "Makara"], - ["8A3324", "Burnt Umber"], - ["8A73D6", "True V"], - ["8A8360", "Clay Creek"], - ["8A8389", "Monsoon"], - ["8A8F8A", "Stack"], - ["8AB9F1", "Jordy Blue"], - ["8B00FF", "Electric Violet"], - ["8B0723", "Monarch"], - ["8B6B0B", "Corn Harvest"], - ["8B8470", "Olive Haze"], - ["8B847E", "Schooner"], - ["8B8680", "Natural Gray"], - ["8B9C90", "Mantle"], - ["8B9FEE", "Portage"], - ["8BA690", "Envy"], - ["8BA9A5", "Cascade"], - ["8BE6D8", "Riptide"], - ["8C055E", "Cardinal Pink"], - ["8C472F", "Mule Fawn"], - ["8C5738", "Potters Clay"], - ["8C6495", "Trendy Pink"], - ["8D0226", "Paprika"], - ["8D3D38", "Sanguine Brown"], - ["8D3F3F", "Tosca"], - ["8D7662", "Cement"], - ["8D8974", "Granite Green"], - ["8D90A1", "Manatee"], - ["8DA8CC", "Polo Blue"], - ["8E0000", "Red Berry"], - ["8E4D1E", "Rope"], - ["8E6F70", "Opium"], - ["8E775E", "Domino"], - ["8E8190", "Mamba"], - ["8EABC1", "Nepal"], - ["8F021C", "Pohutukawa"], - ["8F3E33", "El Salva"], - ["8F4B0E", "Korma"], - ["8F8176", "Squirrel"], - ["8FD6B4", "Vista Blue"], - ["900020", "Burgundy"], - ["901E1E", "Old Brick"], - ["907874", "Hemp"], - ["907B71", "Almond Frost"], - ["908D39", "Sycamore"], - ["92000A", "Sangria"], - ["924321", "Cumin"], - ["926F5B", "Beaver"], - ["928573", "Stonewall"], - ["928590", "Venus"], - ["9370DB", "Medium Purple"], - ["93CCEA", "Cornflower"], - ["93DFB8", "Algae Green"], - ["944747", "Copper Rust"], - ["948771", "Arrowtown"], - ["950015", "Scarlett"], - ["956387", "Strikemaster"], - ["959396", "Mountain Mist"], - ["960018", "Carmine"], - ["964B00", "Brown"], - ["967059", "Leather"], - ["9678B6", "Purple Mountain's Majesty"], - ["967BB6", "Lavender Purple"], - ["96A8A1", "Pewter"], - ["96BBAB", "Summer Green"], - ["97605D", "Au Chico"], - ["9771B5", "Wisteria"], - ["97CD2D", "Atlantis"], - ["983D61", "Vin Rouge"], - ["9874D3", "Lilac Bush"], - ["98777B", "Bazaar"], - ["98811B", "Hacienda"], - ["988D77", "Pale Oyster"], - ["98FF98", "Mint Green"], - ["990066", "Fresh Eggplant"], - ["991199", "Violet Eggplant"], - ["991613", "Tamarillo"], - ["991B07", "Totem Pole"], - ["996666", "Copper Rose"], - ["9966CC", "Amethyst"], - ["997A8D", "Mountbatten Pink"], - ["9999CC", "Blue Bell"], - ["9A3820", "Prairie Sand"], - ["9A6E61", "Toast"], - ["9A9577", "Gurkha"], - ["9AB973", "Olivine"], - ["9AC2B8", "Shadow Green"], - ["9B4703", "Oregon"], - ["9B9E8F", "Lemon Grass"], - ["9C3336", "Stiletto"], - ["9D5616", "Hawaiian Tan"], - ["9DACB7", "Gull Gray"], - ["9DC209", "Pistachio"], - ["9DE093", "Granny Smith Apple"], - ["9DE5FF", "Anakiwa"], - ["9E5302", "Chelsea Gem"], - ["9E5B40", "Sepia Skin"], - ["9EA587", "Sage"], - ["9EA91F", "Citron"], - ["9EB1CD", "Rock Blue"], - ["9EDEE0", "Morning Glory"], - ["9F381D", "Cognac"], - ["9F821C", "Reef Gold"], - ["9F9F9C", "Star Dust"], - ["9FA0B1", "Santas Gray"], - ["9FD7D3", "Sinbad"], - ["9FDD8C", "Feijoa"], - ["A02712", "Tabasco"], - ["A1750D", "Buttered Rum"], - ["A1ADB5", "Hit Gray"], - ["A1C50A", "Citrus"], - ["A1DAD7", "Aqua Island"], - ["A1E9DE", "Water Leaf"], - ["A2006D", "Flirt"], - ["A23B6C", "Rouge"], - ["A26645", "Cape Palliser"], - ["A2AAB3", "Gray Chateau"], - ["A2AEAB", "Edward"], - ["A3807B", "Pharlap"], - ["A397B4", "Amethyst Smoke"], - ["A3E3ED", "Blizzard Blue"], - ["A4A49D", "Delta"], - ["A4A6D3", "Wistful"], - ["A4AF6E", "Green Smoke"], - ["A50B5E", "Jazzberry Jam"], - ["A59B91", "Zorba"], - ["A5CB0C", "Bahia"], - ["A62F20", "Roof Terracotta"], - ["A65529", "Paarl"], - ["A68B5B", "Barley Corn"], - ["A69279", "Donkey Brown"], - ["A6A29A", "Dawn"], - ["A72525", "Mexican Red"], - ["A7882C", "Luxor Gold"], - ["A85307", "Rich Gold"], - ["A86515", "Reno Sand"], - ["A86B6B", "Coral Tree"], - ["A8989B", "Dusty Gray"], - ["A899E6", "Dull Lavender"], - ["A8A589", "Tallow"], - ["A8AE9C", "Bud"], - ["A8AF8E", "Locust"], - ["A8BD9F", "Norway"], - ["A8E3BD", "Chinook"], - ["A9A491", "Gray Olive"], - ["A9ACB6", "Aluminium"], - ["A9B2C3", "Cadet Blue"], - ["A9B497", "Schist"], - ["A9BDBF", "Tower Gray"], - ["A9BEF2", "Perano"], - ["A9C6C2", "Opal"], - ["AA375A", "Night Shadz"], - ["AA4203", "Fire"], - ["AA8B5B", "Muesli"], - ["AA8D6F", "Sandal"], - ["AAA5A9", "Shady Lady"], - ["AAA9CD", "Logan"], - ["AAABB7", "Spun Pearl"], - ["AAD6E6", "Regent St Blue"], - ["AAF0D1", "Magic Mint"], - ["AB0563", "Lipstick"], - ["AB3472", "Royal Heath"], - ["AB917A", "Sandrift"], - ["ABA0D9", "Cold Purple"], - ["ABA196", "Bronco"], - ["AC8A56", "Limed Oak"], - ["AC91CE", "East Side"], - ["AC9E22", "Lemon Ginger"], - ["ACA494", "Napa"], - ["ACA586", "Hillary"], - ["ACA59F", "Cloudy"], - ["ACACAC", "Silver Chalice"], - ["ACB78E", "Swamp Green"], - ["ACCBB1", "Spring Rain"], - ["ACDD4D", "Conifer"], - ["ACE1AF", "Celadon"], - ["AD781B", "Mandalay"], - ["ADBED1", "Casper"], - ["ADDFAD", "Moss Green"], - ["ADE6C4", "Padua"], - ["ADFF2F", "Green Yellow"], - ["AE4560", "Hippie Pink"], - ["AE6020", "Desert"], - ["AE809E", "Bouquet"], - ["AF4035", "Medium Carmine"], - ["AF4D43", "Apple Blossom"], - ["AF593E", "Brown Rust"], - ["AF8751", "Driftwood"], - ["AF8F2C", "Alpine"], - ["AF9F1C", "Lucky"], - ["AFA09E", "Martini"], - ["AFB1B8", "Bombay"], - ["AFBDD9", "Pigeon Post"], - ["B04C6A", "Cadillac"], - ["B05D54", "Matrix"], - ["B05E81", "Tapestry"], - ["B06608", "Mai Tai"], - ["B09A95", "Del Rio"], - ["B0E0E6", "Powder Blue"], - ["B0E313", "Inch Worm"], - ["B10000", "Bright Red"], - ["B14A0B", "Vesuvius"], - ["B1610B", "Pumpkin Skin"], - ["B16D52", "Santa Fe"], - ["B19461", "Teak"], - ["B1E2C1", "Fringy Flower"], - ["B1F4E7", "Ice Cold"], - ["B20931", "Shiraz"], - ["B2A1EA", "Biloba Flower"], - ["B32D29", "Tall Poppy"], - ["B35213", "Fiery Orange"], - ["B38007", "Hot Toddy"], - ["B3AF95", "Taupe Gray"], - ["B3C110", "La Rioja"], - ["B43332", "Well Read"], - ["B44668", "Blush"], - ["B4CFD3", "Jungle Mist"], - ["B57281", "Turkish Rose"], - ["B57EDC", "Lavender"], - ["B5A27F", "Mongoose"], - ["B5B35C", "Olive Green"], - ["B5D2CE", "Jet Stream"], - ["B5ECDF", "Cruise"], - ["B6316C", "Hibiscus"], - ["B69D98", "Thatch"], - ["B6B095", "Heathered Gray"], - ["B6BAA4", "Eagle"], - ["B6D1EA", "Spindle"], - ["B6D3BF", "Gum Leaf"], - ["B7410E", "Rust"], - ["B78E5C", "Muddy Waters"], - ["B7A214", "Sahara"], - ["B7A458", "Husk"], - ["B7B1B1", "Nobel"], - ["B7C3D0", "Heather"], - ["B7F0BE", "Madang"], - ["B81104", "Milano Red"], - ["B87333", "Copper"], - ["B8B56A", "Gimblet"], - ["B8C1B1", "Green Spring"], - ["B8C25D", "Celery"], - ["B8E0F9", "Sail"], - ["B94E48", "Chestnut"], - ["B95140", "Crail"], - ["B98D28", "Marigold"], - ["B9C46A", "Wild Willow"], - ["B9C8AC", "Rainee"], - ["BA0101", "Guardsman Red"], - ["BA450C", "Rock Spray"], - ["BA6F1E", "Bourbon"], - ["BA7F03", "Pirate Gold"], - ["BAB1A2", "Nomad"], - ["BAC7C9", "Submarine"], - ["BAEEF9", "Charlotte"], - ["BB3385", "Medium Red Violet"], - ["BB8983", "Brandy Rose"], - ["BBD009", "Rio Grande"], - ["BBD7C1", "Surf"], - ["BCC9C2", "Powder Ash"], - ["BD5E2E", "Tuscany"], - ["BD978E", "Quicksand"], - ["BDB1A8", "Silk"], - ["BDB2A1", "Malta"], - ["BDB3C7", "Chatelle"], - ["BDBBD7", "Lavender Gray"], - ["BDBDC6", "French Gray"], - ["BDC8B3", "Clay Ash"], - ["BDC9CE", "Loblolly"], - ["BDEDFD", "French Pass"], - ["BEA6C3", "London Hue"], - ["BEB5B7", "Pink Swan"], - ["BEDE0D", "Fuego"], - ["BF5500", "Rose of Sharon"], - ["BFB8B0", "Tide"], - ["BFBED8", "Blue Haze"], - ["BFC1C2", "Silver Sand"], - ["BFC921", "Key Lime Pie"], - ["BFDBE2", "Ziggurat"], - ["BFFF00", "Lime"], - ["C02B18", "Thunderbird"], - ["C04737", "Mojo"], - ["C08081", "Old Rose"], - ["C0C0C0", "Silver"], - ["C0D3B9", "Pale Leaf"], - ["C0D8B6", "Pixie Green"], - ["C1440E", "Tia Maria"], - ["C154C1", "Fuchsia Pink"], - ["C1A004", "Buddha Gold"], - ["C1B7A4", "Bison Hide"], - ["C1BAB0", "Tea"], - ["C1BECD", "Gray Suit"], - ["C1D7B0", "Sprout"], - ["C1F07C", "Sulu"], - ["C26B03", "Indochine"], - ["C2955D", "Twine"], - ["C2BDB6", "Cotton Seed"], - ["C2CAC4", "Pumice"], - ["C2E8E5", "Jagged Ice"], - ["C32148", "Maroon Flush"], - ["C3B091", "Indian Khaki"], - ["C3BFC1", "Pale Slate"], - ["C3C3BD", "Gray Nickel"], - ["C3CDE6", "Periwinkle Gray"], - ["C3D1D1", "Tiara"], - ["C3DDF9", "Tropical Blue"], - ["C41E3A", "Cardinal"], - ["C45655", "Fuzzy Wuzzy Brown"], - ["C45719", "Orange Roughy"], - ["C4C4BC", "Mist Gray"], - ["C4D0B0", "Coriander"], - ["C4F4EB", "Mint Tulip"], - ["C54B8C", "Mulberry"], - ["C59922", "Nugget"], - ["C5994B", "Tussock"], - ["C5DBCA", "Sea Mist"], - ["C5E17A", "Yellow Green"], - ["C62D42", "Brick Red"], - ["C6726B", "Contessa"], - ["C69191", "Oriental Pink"], - ["C6A84B", "Roti"], - ["C6C3B5", "Ash"], - ["C6C8BD", "Kangaroo"], - ["C6E610", "Las Palmas"], - ["C7031E", "Monza"], - ["C71585", "Red Violet"], - ["C7BCA2", "Coral Reef"], - ["C7C1FF", "Melrose"], - ["C7C4BF", "Cloud"], - ["C7C9D5", "Ghost"], - ["C7CD90", "Pine Glade"], - ["C7DDE5", "Botticelli"], - ["C88A65", "Antique Brass"], - ["C8A2C8", "Lilac"], - ["C8A528", "Hokey Pokey"], - ["C8AABF", "Lily"], - ["C8B568", "Laser"], - ["C8E3D7", "Edgewater"], - ["C96323", "Piper"], - ["C99415", "Pizza"], - ["C9A0DC", "Light Wisteria"], - ["C9B29B", "Rodeo Dust"], - ["C9B35B", "Sundance"], - ["C9B93B", "Earls Green"], - ["C9C0BB", "Silver Rust"], - ["C9D9D2", "Conch"], - ["C9FFA2", "Reef"], - ["C9FFE5", "Aero Blue"], - ["CA3435", "Flush Mahogany"], - ["CABB48", "Turmeric"], - ["CADCD4", "Paris White"], - ["CAE00D", "Bitter Lemon"], - ["CAE6DA", "Skeptic"], - ["CB8FA9", "Viola"], - ["CBCAB6", "Foggy Gray"], - ["CBD3B0", "Green Mist"], - ["CBDBD6", "Nebula"], - ["CC3333", "Persian Red"], - ["CC5500", "Burnt Orange"], - ["CC7722", "Ochre"], - ["CC8899", "Puce"], - ["CCCAA8", "Thistle Green"], - ["CCCCFF", "Periwinkle"], - ["CCFF00", "Electric Lime"], - ["CD5700", "Tenn"], - ["CD5C5C", "Chestnut Rose"], - ["CD8429", "Brandy Punch"], - ["CDF4FF", "Onahau"], - ["CEB98F", "Sorrell Brown"], - ["CEBABA", "Cold Turkey"], - ["CEC291", "Yuma"], - ["CEC7A7", "Chino"], - ["CFA39D", "Eunry"], - ["CFB53B", "Old Gold"], - ["CFDCCF", "Tasman"], - ["CFE5D2", "Surf Crest"], - ["CFF9F3", "Humming Bird"], - ["CFFAF4", "Scandal"], - ["D05F04", "Red Stage"], - ["D06DA1", "Hopbush"], - ["D07D12", "Meteor"], - ["D0BEF8", "Perfume"], - ["D0C0E5", "Prelude"], - ["D0F0C0", "Tea Green"], - ["D18F1B", "Geebung"], - ["D1BEA8", "Vanilla"], - ["D1C6B4", "Soft Amber"], - ["D1D2CA", "Celeste"], - ["D1D2DD", "Mischka"], - ["D1E231", "Pear"], - ["D2691E", "Hot Cinnamon"], - ["D27D46", "Raw Sienna"], - ["D29EAA", "Careys Pink"], - ["D2B48C", "Tan"], - ["D2DA97", "Deco"], - ["D2F6DE", "Blue Romance"], - ["D2F8B0", "Gossip"], - ["D3CBBA", "Sisal"], - ["D3CDC5", "Swirl"], - ["D47494", "Charm"], - ["D4B6AF", "Clam Shell"], - ["D4BF8D", "Straw"], - ["D4C4A8", "Akaroa"], - ["D4CD16", "Bird Flower"], - ["D4D7D9", "Iron"], - ["D4DFE2", "Geyser"], - ["D4E2FC", "Hawkes Blue"], - ["D54600", "Grenadier"], - ["D591A4", "Can Can"], - ["D59A6F", "Whiskey"], - ["D5D195", "Winter Hazel"], - ["D5F6E3", "Granny Apple"], - ["D69188", "My Pink"], - ["D6C562", "Tacha"], - ["D6CEF6", "Moon Raker"], - ["D6D6D1", "Quill Gray"], - ["D6FFDB", "Snowy Mint"], - ["D7837F", "New York Pink"], - ["D7C498", "Pavlova"], - ["D7D0FF", "Fog"], - ["D84437", "Valencia"], - ["D87C63", "Japonica"], - ["D8BFD8", "Thistle"], - ["D8C2D5", "Maverick"], - ["D8FCFA", "Foam"], - ["D94972", "Cabaret"], - ["D99376", "Burning Sand"], - ["D9B99B", "Cameo"], - ["D9D6CF", "Timberwolf"], - ["D9DCC1", "Tana"], - ["D9E4F5", "Link Water"], - ["D9F7FF", "Mabel"], - ["DA3287", "Cerise"], - ["DA5B38", "Flame Pea"], - ["DA6304", "Bamboo"], - ["DA6A41", "Red Damask"], - ["DA70D6", "Orchid"], - ["DA8A67", "Copperfield"], - ["DAA520", "Golden Grass"], - ["DAECD6", "Zanah"], - ["DAF4F0", "Iceberg"], - ["DAFAFF", "Oyster Bay"], - ["DB5079", "Cranberry"], - ["DB9690", "Petite Orchid"], - ["DB995E", "Di Serria"], - ["DBDBDB", "Alto"], - ["DBFFF8", "Frosted Mint"], - ["DC143C", "Crimson"], - ["DC4333", "Punch"], - ["DCB20C", "Galliano"], - ["DCB4BC", "Blossom"], - ["DCD747", "Wattle"], - ["DCD9D2", "Westar"], - ["DCDDCC", "Moon Mist"], - ["DCEDB4", "Caper"], - ["DCF0EA", "Swans Down"], - ["DDD6D5", "Swiss Coffee"], - ["DDF9F1", "White Ice"], - ["DE3163", "Cerise Red"], - ["DE6360", "Roman"], - ["DEA681", "Tumbleweed"], - ["DEBA13", "Gold Tips"], - ["DEC196", "Brandy"], - ["DECBC6", "Wafer"], - ["DED4A4", "Sapling"], - ["DED717", "Barberry"], - ["DEE5C0", "Beryl Green"], - ["DEF5FF", "Pattens Blue"], - ["DF73FF", "Heliotrope"], - ["DFBE6F", "Apache"], - ["DFCD6F", "Chenin"], - ["DFCFDB", "Lola"], - ["DFECDA", "Willow Brook"], - ["DFFF00", "Chartreuse Yellow"], - ["E0B0FF", "Mauve"], - ["E0B646", "Anzac"], - ["E0B974", "Harvest Gold"], - ["E0C095", "Calico"], - ["E0FFFF", "Baby Blue"], - ["E16865", "Sunglo"], - ["E1BC64", "Equator"], - ["E1C0C8", "Pink Flare"], - ["E1E6D6", "Periglacial Blue"], - ["E1EAD4", "Kidnapper"], - ["E1F6E8", "Tara"], - ["E25465", "Mandy"], - ["E2725B", "Terracotta"], - ["E28913", "Golden Bell"], - ["E292C0", "Shocking"], - ["E29418", "Dixie"], - ["E29CD2", "Light Orchid"], - ["E2D8ED", "Snuff"], - ["E2EBED", "Mystic"], - ["E2F3EC", "Apple Green"], - ["E30B5C", "Razzmatazz"], - ["E32636", "Alizarin Crimson"], - ["E34234", "Cinnabar"], - ["E3BEBE", "Cavern Pink"], - ["E3F5E1", "Peppermint"], - ["E3F988", "Mindaro"], - ["E47698", "Deep Blush"], - ["E49B0F", "Gamboge"], - ["E4C2D5", "Melanie"], - ["E4CFDE", "Twilight"], - ["E4D1C0", "Bone"], - ["E4D422", "Sunflower"], - ["E4D5B7", "Grain Brown"], - ["E4D69B", "Zombie"], - ["E4F6E7", "Frostee"], - ["E4FFD1", "Snow Flurry"], - ["E52B50", "Amaranth"], - ["E5841B", "Zest"], - ["E5CCC9", "Dust Storm"], - ["E5D7BD", "Stark White"], - ["E5D8AF", "Hampton"], - ["E5E0E1", "Bon Jour"], - ["E5E5E5", "Mercury"], - ["E5F9F6", "Polar"], - ["E64E03", "Trinidad"], - ["E6BE8A", "Gold Sand"], - ["E6BEA5", "Cashmere"], - ["E6D7B9", "Double Spanish White"], - ["E6E4D4", "Satin Linen"], - ["E6F2EA", "Harp"], - ["E6F8F3", "Off Green"], - ["E6FFE9", "Hint of Green"], - ["E6FFFF", "Tranquil"], - ["E77200", "Mango Tango"], - ["E7730A", "Christine"], - ["E79F8C", "Tonys Pink"], - ["E79FC4", "Kobi"], - ["E7BCB4", "Rose Fog"], - ["E7BF05", "Corn"], - ["E7CD8C", "Putty"], - ["E7ECE6", "Gray Nurse"], - ["E7F8FF", "Lily White"], - ["E7FEFF", "Bubbles"], - ["E89928", "Fire Bush"], - ["E8B9B3", "Shilo"], - ["E8E0D5", "Pearl Bush"], - ["E8EBE0", "Green White"], - ["E8F1D4", "Chrome White"], - ["E8F2EB", "Gin"], - ["E8F5F2", "Aqua Squeeze"], - ["E96E00", "Clementine"], - ["E97451", "Burnt Sienna"], - ["E97C07", "Tahiti Gold"], - ["E9CECD", "Oyster Pink"], - ["E9D75A", "Confetti"], - ["E9E3E3", "Ebb"], - ["E9F8ED", "Ottoman"], - ["E9FFFD", "Clear Day"], - ["EA88A8", "Carissma"], - ["EAAE69", "Porsche"], - ["EAB33B", "Tulip Tree"], - ["EAC674", "Rob Roy"], - ["EADAB8", "Raffia"], - ["EAE8D4", "White Rock"], - ["EAF6EE", "Panache"], - ["EAF6FF", "Solitude"], - ["EAF9F5", "Aqua Spring"], - ["EAFFFE", "Dew"], - ["EB9373", "Apricot"], - ["EBC2AF", "Zinnwaldite"], - ["ECA927", "Fuel Yellow"], - ["ECC54E", "Ronchi"], - ["ECC7EE", "French Lilac"], - ["ECCDB9", "Just Right"], - ["ECE090", "Wild Rice"], - ["ECEBBD", "Fall Green"], - ["ECEBCE", "Aths Special"], - ["ECF245", "Starship"], - ["ED0A3F", "Red Ribbon"], - ["ED7A1C", "Tango"], - ["ED9121", "Carrot Orange"], - ["ED989E", "Sea Pink"], - ["EDB381", "Tacao"], - ["EDC9AF", "Desert Sand"], - ["EDCDAB", "Pancho"], - ["EDDCB1", "Chamois"], - ["EDEA99", "Primrose"], - ["EDF5DD", "Frost"], - ["EDF5F5", "Aqua Haze"], - ["EDF6FF", "Zumthor"], - ["EDF9F1", "Narvik"], - ["EDFC84", "Honeysuckle"], - ["EE82EE", "Lavender Magenta"], - ["EEC1BE", "Beauty Bush"], - ["EED794", "Chalky"], - ["EED9C4", "Almond"], - ["EEDC82", "Flax"], - ["EEDEDA", "Bizarre"], - ["EEE3AD", "Double Colonial White"], - ["EEEEE8", "Cararra"], - ["EEEF78", "Manz"], - ["EEF0C8", "Tahuna Sands"], - ["EEF0F3", "Athens Gray"], - ["EEF3C3", "Tusk"], - ["EEF4DE", "Loafer"], - ["EEF6F7", "Catskill White"], - ["EEFDFF", "Twilight Blue"], - ["EEFF9A", "Jonquil"], - ["EEFFE2", "Rice Flower"], - ["EF863F", "Jaffa"], - ["EFEFEF", "Gallery"], - ["EFF2F3", "Porcelain"], - ["F091A9", "Mauvelous"], - ["F0D52D", "Golden Dream"], - ["F0DB7D", "Golden Sand"], - ["F0DC82", "Buff"], - ["F0E2EC", "Prim"], - ["F0E68C", "Khaki"], - ["F0EEFD", "Selago"], - ["F0EEFF", "Titan White"], - ["F0F8FF", "Alice Blue"], - ["F0FCEA", "Feta"], - ["F18200", "Gold Drop"], - ["F19BAB", "Wewak"], - ["F1E788", "Sahara Sand"], - ["F1E9D2", "Parchment"], - ["F1E9FF", "Blue Chalk"], - ["F1EEC1", "Mint Julep"], - ["F1F1F1", "Seashell"], - ["F1F7F2", "Saltpan"], - ["F1FFAD", "Tidal"], - ["F1FFC8", "Chiffon"], - ["F2552A", "Flamingo"], - ["F28500", "Tangerine"], - ["F2C3B2", "Mandys Pink"], - ["F2F2F2", "Concrete"], - ["F2FAFA", "Black Squeeze"], - ["F34723", "Pomegranate"], - ["F3AD16", "Buttercup"], - ["F3D69D", "New Orleans"], - ["F3D9DF", "Vanilla Ice"], - ["F3E7BB", "Sidecar"], - ["F3E9E5", "Dawn Pink"], - ["F3EDCF", "Wheatfield"], - ["F3FB62", "Canary"], - ["F3FBD4", "Orinoco"], - ["F3FFD8", "Carla"], - ["F400A1", "Hollywood Cerise"], - ["F4A460", "Sandy brown"], - ["F4C430", "Saffron"], - ["F4D81C", "Ripe Lemon"], - ["F4EBD3", "Janna"], - ["F4F2EE", "Pampas"], - ["F4F4F4", "Wild Sand"], - ["F4F8FF", "Zircon"], - ["F57584", "Froly"], - ["F5C85C", "Cream Can"], - ["F5C999", "Manhattan"], - ["F5D5A0", "Maize"], - ["F5DEB3", "Wheat"], - ["F5E7A2", "Sandwisp"], - ["F5E7E2", "Pot Pourri"], - ["F5E9D3", "Albescent White"], - ["F5EDEF", "Soft Peach"], - ["F5F3E5", "Ecru White"], - ["F5F5DC", "Beige"], - ["F5FB3D", "Golden Fizz"], - ["F5FFBE", "Australian Mint"], - ["F64A8A", "French Rose"], - ["F653A6", "Brilliant Rose"], - ["F6A4C9", "Illusion"], - ["F6F0E6", "Merino"], - ["F6F7F7", "Black Haze"], - ["F6FFDC", "Spring Sun"], - ["F7468A", "Violet Red"], - ["F77703", "Chilean Fire"], - ["F77FBE", "Persian Pink"], - ["F7B668", "Rajah"], - ["F7C8DA", "Azalea"], - ["F7DBE6", "We Peep"], - ["F7F2E1", "Quarter Spanish White"], - ["F7F5FA", "Whisper"], - ["F7FAF7", "Snow Drift"], - ["F8B853", "Casablanca"], - ["F8C3DF", "Chantilly"], - ["F8D9E9", "Cherub"], - ["F8DB9D", "Marzipan"], - ["F8DD5C", "Energy Yellow"], - ["F8E4BF", "Givry"], - ["F8F0E8", "White Linen"], - ["F8F4FF", "Magnolia"], - ["F8F6F1", "Spring Wood"], - ["F8F7DC", "Coconut Cream"], - ["F8F7FC", "White Lilac"], - ["F8F8F7", "Desert Storm"], - ["F8F99C", "Texas"], - ["F8FACD", "Corn Field"], - ["F8FDD3", "Mimosa"], - ["F95A61", "Carnation"], - ["F9BF58", "Saffron Mango"], - ["F9E0ED", "Carousel Pink"], - ["F9E4BC", "Dairy Cream"], - ["F9E663", "Portica"], - ["F9EAF3", "Amour"], - ["F9F8E4", "Rum Swizzle"], - ["F9FF8B", "Dolly"], - ["F9FFF6", "Sugar Cane"], - ["FA7814", "Ecstasy"], - ["FA9D5A", "Tan Hide"], - ["FAD3A2", "Corvette"], - ["FADFAD", "Peach Yellow"], - ["FAE600", "Turbo"], - ["FAEAB9", "Astra"], - ["FAECCC", "Champagne"], - ["FAF0E6", "Linen"], - ["FAF3F0", "Fantasy"], - ["FAF7D6", "Citrine White"], - ["FAFAFA", "Alabaster"], - ["FAFDE4", "Hint of Yellow"], - ["FAFFA4", "Milan"], - ["FB607F", "Brink Pink"], - ["FB8989", "Geraldine"], - ["FBA0E3", "Lavender Rose"], - ["FBA129", "Sea Buckthorn"], - ["FBAC13", "Sun"], - ["FBAED2", "Lavender Pink"], - ["FBB2A3", "Rose Bud"], - ["FBBEDA", "Cupid"], - ["FBCCE7", "Classic Rose"], - ["FBCEB1", "Apricot Peach"], - ["FBE7B2", "Banana Mania"], - ["FBE870", "Marigold Yellow"], - ["FBE96C", "Festival"], - ["FBEA8C", "Sweet Corn"], - ["FBEC5D", "Candy Corn"], - ["FBF9F9", "Hint of Red"], - ["FBFFBA", "Shalimar"], - ["FC0FC0", "Shocking Pink"], - ["FC80A5", "Tickle Me Pink"], - ["FC9C1D", "Tree Poppy"], - ["FCC01E", "Lightning Yellow"], - ["FCD667", "Goldenrod"], - ["FCD917", "Candlelight"], - ["FCDA98", "Cherokee"], - ["FCF4D0", "Double Pearl Lusta"], - ["FCF4DC", "Pearl Lusta"], - ["FCF8F7", "Vista White"], - ["FCFBF3", "Bianca"], - ["FCFEDA", "Moon Glow"], - ["FCFFE7", "China Ivory"], - ["FCFFF9", "Ceramic"], - ["FD0E35", "Torch Red"], - ["FD5B78", "Wild Watermelon"], - ["FD7B33", "Crusta"], - ["FD7C07", "Sorbus"], - ["FD9FA2", "Sweet Pink"], - ["FDD5B1", "Light Apricot"], - ["FDD7E4", "Pig Pink"], - ["FDE1DC", "Cinderella"], - ["FDE295", "Golden Glow"], - ["FDE910", "Lemon"], - ["FDF5E6", "Old Lace"], - ["FDF6D3", "Half Colonial White"], - ["FDF7AD", "Drover"], - ["FDFEB8", "Pale Prim"], - ["FDFFD5", "Cumulus"], - ["FE28A2", "Persian Rose"], - ["FE4C40", "Sunset Orange"], - ["FE6F5E", "Bittersweet"], - ["FE9D04", "California"], - ["FEA904", "Yellow Sea"], - ["FEBAAD", "Melon"], - ["FED33C", "Bright Sun"], - ["FED85D", "Dandelion"], - ["FEDB8D", "Salomie"], - ["FEE5AC", "Cape Honey"], - ["FEEBF3", "Remy"], - ["FEEFCE", "Oasis"], - ["FEF0EC", "Bridesmaid"], - ["FEF2C7", "Beeswax"], - ["FEF3D8", "Bleach White"], - ["FEF4CC", "Pipi"], - ["FEF4DB", "Half Spanish White"], - ["FEF4F8", "Wisp Pink"], - ["FEF5F1", "Provincial Pink"], - ["FEF7DE", "Half Dutch White"], - ["FEF8E2", "Solitaire"], - ["FEF8FF", "White Pointer"], - ["FEF9E3", "Off Yellow"], - ["FEFCED", "Orange White"], - ["FF0000", "Red"], - ["FF007F", "Rose"], - ["FF00CC", "Purple Pizzazz"], - ["FF00FF", "Magenta / Fuchsia"], - ["FF2400", "Scarlet"], - ["FF3399", "Wild Strawberry"], - ["FF33CC", "Razzle Dazzle Rose"], - ["FF355E", "Radical Red"], - ["FF3F34", "Red Orange"], - ["FF4040", "Coral Red"], - ["FF4D00", "Vermilion"], - ["FF4F00", "International Orange"], - ["FF6037", "Outrageous Orange"], - ["FF6600", "Blaze Orange"], - ["FF66FF", "Pink Flamingo"], - ["FF681F", "Orange"], - ["FF69B4", "Hot Pink"], - ["FF6B53", "Persimmon"], - ["FF6FFF", "Blush Pink"], - ["FF7034", "Burning Orange"], - ["FF7518", "Pumpkin"], - ["FF7D07", "Flamenco"], - ["FF7F00", "Flush Orange"], - ["FF7F50", "Coral"], - ["FF8C69", "Salmon"], - ["FF9000", "Pizazz"], - ["FF910F", "West Side"], - ["FF91A4", "Pink Salmon"], - ["FF9933", "Neon Carrot"], - ["FF9966", "Atomic Tangerine"], - ["FF9980", "Vivid Tangerine"], - ["FF9E2C", "Sunshade"], - ["FFA000", "Orange Peel"], - ["FFA194", "Mona Lisa"], - ["FFA500", "Web Orange"], - ["FFA6C9", "Carnation Pink"], - ["FFAB81", "Hit Pink"], - ["FFAE42", "Yellow Orange"], - ["FFB0AC", "Cornflower Lilac"], - ["FFB1B3", "Sundown"], - ["FFB31F", "My Sin"], - ["FFB555", "Texas Rose"], - ["FFB7D5", "Cotton Candy"], - ["FFB97B", "Macaroni and Cheese"], - ["FFBA00", "Selective Yellow"], - ["FFBD5F", "Koromiko"], - ["FFBF00", "Amber"], - ["FFC0A8", "Wax Flower"], - ["FFC0CB", "Pink"], - ["FFC3C0", "Your Pink"], - ["FFC901", "Supernova"], - ["FFCBA4", "Flesh"], - ["FFCC33", "Sunglow"], - ["FFCC5C", "Golden Tainoi"], - ["FFCC99", "Peach Orange"], - ["FFCD8C", "Chardonnay"], - ["FFD1DC", "Pastel Pink"], - ["FFD2B7", "Romantic"], - ["FFD38C", "Grandis"], - ["FFD700", "Gold"], - ["FFD800", "School bus Yellow"], - ["FFD8D9", "Cosmos"], - ["FFDB58", "Mustard"], - ["FFDCD6", "Peach Schnapps"], - ["FFDDAF", "Caramel"], - ["FFDDCD", "Tuft Bush"], - ["FFDDCF", "Watusi"], - ["FFDDF4", "Pink Lace"], - ["FFDEAD", "Navajo White"], - ["FFDEB3", "Frangipani"], - ["FFE1DF", "Pippin"], - ["FFE1F2", "Pale Rose"], - ["FFE2C5", "Negroni"], - ["FFE5A0", "Cream Brulee"], - ["FFE5B4", "Peach"], - ["FFE6C7", "Tequila"], - ["FFE772", "Kournikova"], - ["FFEAC8", "Sandy Beach"], - ["FFEAD4", "Karry"], - ["FFEC13", "Broom"], - ["FFEDBC", "Colonial White"], - ["FFEED8", "Derby"], - ["FFEFA1", "Vis Vis"], - ["FFEFC1", "Egg White"], - ["FFEFD5", "Papaya Whip"], - ["FFEFEC", "Fair Pink"], - ["FFF0DB", "Peach Cream"], - ["FFF0F5", "Lavender blush"], - ["FFF14F", "Gorse"], - ["FFF1B5", "Buttermilk"], - ["FFF1D8", "Pink Lady"], - ["FFF1EE", "Forget Me Not"], - ["FFF1F9", "Tutu"], - ["FFF39D", "Picasso"], - ["FFF3F1", "Chardon"], - ["FFF46E", "Paris Daisy"], - ["FFF4CE", "Barley White"], - ["FFF4DD", "Egg Sour"], - ["FFF4E0", "Sazerac"], - ["FFF4E8", "Serenade"], - ["FFF4F3", "Chablis"], - ["FFF5EE", "Seashell Peach"], - ["FFF5F3", "Sauvignon"], - ["FFF6D4", "Milk Punch"], - ["FFF6DF", "Varden"], - ["FFF6F5", "Rose White"], - ["FFF8D1", "Baja White"], - ["FFF9E2", "Gin Fizz"], - ["FFF9E6", "Early Dawn"], - ["FFFACD", "Lemon Chiffon"], - ["FFFAF4", "Bridal Heath"], - ["FFFBDC", "Scotch Mist"], - ["FFFBF9", "Soapstone"], - ["FFFC99", "Witch Haze"], - ["FFFCEA", "Buttery White"], - ["FFFCEE", "Island Spice"], - ["FFFDD0", "Cream"], - ["FFFDE6", "Chilean Heath"], - ["FFFDE8", "Travertine"], - ["FFFDF3", "Orchid White"], - ["FFFDF4", "Quarter Pearl Lusta"], - ["FFFEE1", "Half and Half"], - ["FFFEEC", "Apricot White"], - ["FFFEF0", "Rice Cake"], - ["FFFEF6", "Black White"], - ["FFFEFD", "Romance"], - ["FFFF00", "Yellow"], - ["FFFF66", "Laser Lemon"], - ["FFFF99", "Pale Canary"], - ["FFFFB4", "Portafino"], - ["FFFFF0", "Ivory"], - ["FFFFFF", "White"] -] diff --git a/packages/color-palette/src/json/palette.json b/packages/color-palette/src/json/palette.json deleted file mode 100644 index 440a04bc7..000000000 --- a/packages/color-palette/src/json/palette.json +++ /dev/null @@ -1,274 +0,0 @@ -[ - { - "key": "red", - "palettes": [ - { "hexcode": "#fef2f2", "number": 50, "name": "Bridesmaid" }, - { "hexcode": "#fee2e2", "number": 100, "name": "Pippin" }, - { "hexcode": "#fecaca", "number": 200, "name": "Your Pink" }, - { "hexcode": "#fca5a5", "number": 300, "name": "Cornflower Lilac" }, - { "hexcode": "#f87171", "number": 400, "name": "Bittersweet" }, - { "hexcode": "#ef4444", "number": 500, "name": "Cinnabar" }, - { "hexcode": "#dc2626", "number": 600, "name": "Persian Red" }, - { "hexcode": "#b91c1c", "number": 700, "name": "Thunderbird" }, - { "hexcode": "#991b1b", "number": 800, "name": "Old Brick" }, - { "hexcode": "#7f1d1d", "number": 900, "name": "Falu Red" }, - { "hexcode": "#450a0a", "number": 950, "name": "Mahogany" } - ] - }, - { - "key": "orange", - "palettes": [ - { "hexcode": "#fff7ed", "number": 50, "name": "Serenade" }, - { "hexcode": "#ffedd5", "number": 100, "name": "Derby" }, - { "hexcode": "#fed7aa", "number": 200, "name": "Caramel" }, - { "hexcode": "#fdba74", "number": 300, "name": "Macaroni and Cheese" }, - { "hexcode": "#fb923c", "number": 400, "name": "Neon Carrot" }, - { "hexcode": "#f97316", "number": 500, "name": "Ecstasy" }, - { "hexcode": "#ea580c", "number": 600, "name": "Trinidad" }, - { "hexcode": "#c2410c", "number": 700, "name": "Tia Maria" }, - { "hexcode": "#9a3412", "number": 800, "name": "Tabasco" }, - { "hexcode": "#7c2d12", "number": 900, "name": "Pueblo" }, - { "hexcode": "#431407", "number": 950, "name": "Rebel" } - ] - }, - { - "key": "amber", - "palettes": [ - { "hexcode": "#fffbeb", "number": 50, "name": "Island Spice" }, - { "hexcode": "#fef3c7", "number": 100, "name": "Beeswax" }, - { "hexcode": "#fde68a", "number": 200, "name": "Sweet Corn" }, - { "hexcode": "#fcd34d", "number": 300, "name": "Mustard" }, - { "hexcode": "#fbbf24", "number": 400, "name": "Lightning Yellow" }, - { "hexcode": "#f59e0b", "number": 500, "name": "California" }, - { "hexcode": "#d97706", "number": 600, "name": "Christine" }, - { "hexcode": "#b45309", "number": 700, "name": "Vesuvius" }, - { "hexcode": "#92400e", "number": 800, "name": "Korma" }, - { "hexcode": "#78350f", "number": 900, "name": "Copper Canyon" }, - { "hexcode": "#451a03", "number": 950, "name": "Brown Pod" } - ] - }, - { - "key": "yellow", - "palettes": [ - { "hexcode": "#fefce8", "number": 50, "name": "Orange White" }, - { "hexcode": "#fef9c3", "number": 100, "name": "Lemon Chiffon" }, - { "hexcode": "#fef08a", "number": 200, "name": "Sweet Corn" }, - { "hexcode": "#fde047", "number": 300, "name": "Bright Sun" }, - { "hexcode": "#facc15", "number": 400, "name": "Candlelight" }, - { "hexcode": "#eab308", "number": 500, "name": "Corn" }, - { "hexcode": "#ca8a04", "number": 600, "name": "Pirate Gold" }, - { "hexcode": "#a16207", "number": 700, "name": "Mai Tai" }, - { "hexcode": "#854d0e", "number": 800, "name": "Korma" }, - { "hexcode": "#713f12", "number": 900, "name": "Sepia" }, - { "hexcode": "#422006", "number": 950, "name": "Dark Ebony" } - ] - }, - { - "key": "lime", - "palettes": [ - { "hexcode": "#f7fee7", "number": 50, "name": "Spring Sun" }, - { "hexcode": "#ecfccb", "number": 100, "name": "Chiffon" }, - { "hexcode": "#d9f99d", "number": 200, "name": "Gossip" }, - { "hexcode": "#bef264", "number": 300, "name": "Sulu" }, - { "hexcode": "#a3e635", "number": 400, "name": "Conifer" }, - { "hexcode": "#84cc16", "number": 500, "name": "Lima" }, - { "hexcode": "#65a30d", "number": 600, "name": "Christi" }, - { "hexcode": "#4d7c0f", "number": 700, "name": "Green Leaf" }, - { "hexcode": "#3f6212", "number": 800, "name": "Dell" }, - { "hexcode": "#365314", "number": 900, "name": "Clover" }, - { "hexcode": "#1a2e05", "number": 950, "name": "Deep Forest Green" } - ] - }, - { - "key": "green", - "palettes": [ - { "hexcode": "#f0fdf4", "number": 50, "name": "Ottoman" }, - { "hexcode": "#dcfce7", "number": 100, "name": "Blue Romance" }, - { "hexcode": "#bbf7d0", "number": 200, "name": "Magic Mint" }, - { "hexcode": "#86efac", "number": 300, "name": "Algae Green" }, - { "hexcode": "#4ade80", "number": 400, "name": "Emerald" }, - { "hexcode": "#22c55e", "number": 500, "name": "Malachite" }, - { "hexcode": "#16a34a", "number": 600, "name": "Salem" }, - { "hexcode": "#15803d", "number": 700, "name": "Jewel" }, - { "hexcode": "#166534", "number": 800, "name": "Jewel" }, - { "hexcode": "#14532d", "number": 900, "name": "Green Pea" }, - { "hexcode": "#052e16", "number": 950, "name": "English Holly" } - ] - }, - { - "key": "emerald", - "palettes": [ - { "hexcode": "#ecfdf5", "number": 50, "name": "White Ice" }, - { "hexcode": "#d1fae5", "number": 100, "name": "Granny Apple" }, - { "hexcode": "#a7f3d0", "number": 200, "name": "Magic Mint" }, - { "hexcode": "#6ee7b7", "number": 300, "name": "Bermuda" }, - { "hexcode": "#34d399", "number": 400, "name": "Shamrock" }, - { "hexcode": "#10b981", "number": 500, "name": "Mountain Meadow" }, - { "hexcode": "#059669", "number": 600, "name": "Green Haze" }, - { "hexcode": "#047857", "number": 700, "name": "Watercourse" }, - { "hexcode": "#065f46", "number": 800, "name": "Watercourse" }, - { "hexcode": "#064e3b", "number": 900, "name": "Evening Sea" }, - { "hexcode": "#022c22", "number": 950, "name": "Burnham" } - ] - }, - { - "key": "teal", - "palettes": [ - { "hexcode": "#f0fdfa", "number": 50, "name": "White Ice" }, - { "hexcode": "#ccfbf1", "number": 100, "name": "Scandal" }, - { "hexcode": "#99f6e4", "number": 200, "name": "Ice Cold" }, - { "hexcode": "#5eead4", "number": 300, "name": "Turquoise Blue" }, - { "hexcode": "#2dd4bf", "number": 400, "name": "Turquoise" }, - { "hexcode": "#14b8a6", "number": 500, "name": "Java" }, - { "hexcode": "#0d9488", "number": 600, "name": "Blue Chill" }, - { "hexcode": "#0f766e", "number": 700, "name": "Genoa" }, - { "hexcode": "#115e59", "number": 800, "name": "Eden" }, - { "hexcode": "#134e4a", "number": 900, "name": "Eden" }, - { "hexcode": "#042f2e", "number": 950, "name": "Tiber" } - ] - }, - { - "key": "cyan", - "palettes": [ - { "hexcode": "#ecfeff", "number": 50, "name": "Bubbles" }, - { "hexcode": "#cffafe", "number": 100, "name": "Oyster Bay" }, - { "hexcode": "#a5f3fc", "number": 200, "name": "Anakiwa" }, - { "hexcode": "#67e8f9", "number": 300, "name": "Spray" }, - { "hexcode": "#22d3ee", "number": 400, "name": "Bright Turquoise" }, - { "hexcode": "#06b6d4", "number": 500, "name": "Cerulean" }, - { "hexcode": "#0891b2", "number": 600, "name": "Bondi Blue" }, - { "hexcode": "#0e7490", "number": 700, "name": "Blue Chill" }, - { "hexcode": "#155e75", "number": 800, "name": "Blumine" }, - { "hexcode": "#164e63", "number": 900, "name": "Chathams Blue" }, - { "hexcode": "#083344", "number": 950, "name": "Tarawera" } - ] - }, - { - "key": "sky", - "palettes": [ - { "hexcode": "#f0f9ff", "number": 50, "name": "Alice Blue" }, - { "hexcode": "#e0f2fe", "number": 100, "name": "Pattens Blue" }, - { "hexcode": "#bae6fd", "number": 200, "name": "French Pass" }, - { "hexcode": "#7dd3fc", "number": 300, "name": "Malibu" }, - { "hexcode": "#38bdf8", "number": 400, "name": "Picton Blue" }, - { "hexcode": "#0ea5e9", "number": 500, "name": "Cerulean" }, - { "hexcode": "#0284c7", "number": 600, "name": "Lochmara" }, - { "hexcode": "#0369a1", "number": 700, "name": "Bahama Blue" }, - { "hexcode": "#075985", "number": 800, "name": "Venice Blue" }, - { "hexcode": "#0c4a6e", "number": 900, "name": "Chathams Blue" }, - { "hexcode": "#082f49", "number": 950, "name": "Blue Whale" } - ] - }, - { - "key": "blue", - "palettes": [ - { "hexcode": "#eff6ff", "number": 50, "name": "Zumthor" }, - { "hexcode": "#dbeafe", "number": 100, "name": "Hawkes Blue" }, - { "hexcode": "#bfdbfe", "number": 200, "name": "Tropical Blue" }, - { "hexcode": "#93c5fd", "number": 300, "name": "Malibu" }, - { "hexcode": "#60a5fa", "number": 400, "name": "Cornflower Blue" }, - { "hexcode": "#3b82f6", "number": 500, "name": "Dodger Blue" }, - { "hexcode": "#2563eb", "number": 600, "name": "Royal Blue" }, - { "hexcode": "#1d4ed8", "number": 700, "name": "Cerulean Blue" }, - { "hexcode": "#1e40af", "number": 800, "name": "Persian Blue" }, - { "hexcode": "#1e3a8a", "number": 900, "name": "Bay of Many" }, - { "hexcode": "#172554", "number": 950, "name": "Bunting" } - ] - }, - { - "key": "indigo", - "palettes": [ - { "hexcode": "#eef2ff", "number": 50, "name": "Zircon" }, - { "hexcode": "#e0e7ff", "number": 100, "name": "Hawkes Blue" }, - { "hexcode": "#c7d2fe", "number": 200, "name": "Periwinkle" }, - { "hexcode": "#a5b4fc", "number": 300, "name": "Perano" }, - { "hexcode": "#818cf8", "number": 400, "name": "Portage" }, - { "hexcode": "#6366f1", "number": 500, "name": "Royal Blue" }, - { "hexcode": "#4f46e5", "number": 600, "name": "Royal Blue" }, - { "hexcode": "#4338ca", "number": 700, "name": "Governor Bay" }, - { "hexcode": "#3730a3", "number": 800, "name": "Governor Bay" }, - { "hexcode": "#312e81", "number": 900, "name": "Minsk" }, - { "hexcode": "#1e1b4b", "number": 950, "name": "Port Gore" } - ] - }, - { - "key": "violet", - "palettes": [ - { "hexcode": "#f5f3ff", "number": 50, "name": "Titan White" }, - { "hexcode": "#ede9fe", "number": 100, "name": "Titan White" }, - { "hexcode": "#ddd6fe", "number": 200, "name": "Fog" }, - { "hexcode": "#c4b5fd", "number": 300, "name": "Melrose" }, - { "hexcode": "#a78bfa", "number": 400, "name": "Dull Lavender" }, - { "hexcode": "#8b5cf6", "number": 500, "name": "Medium Purple" }, - { "hexcode": "#7c3aed", "number": 600, "name": "Purple Heart" }, - { "hexcode": "#6d28d9", "number": 700, "name": "Purple Heart" }, - { "hexcode": "#5b21b6", "number": 800, "name": "Purple Heart" }, - { "hexcode": "#4c1d95", "number": 900, "name": "Daisy Bush" }, - { "hexcode": "#2e1065", "number": 950, "name": "Violent Violet" } - ] - }, - { - "key": "purple", - "palettes": [ - { "hexcode": "#faf5ff", "number": 50, "name": "Magnolia" }, - { "hexcode": "#f3e8ff", "number": 100, "name": "Blue Chalk" }, - { "hexcode": "#e9d5ff", "number": 200, "name": "Blue Chalk" }, - { "hexcode": "#d8b4fe", "number": 300, "name": "Mauve" }, - { "hexcode": "#c084fc", "number": 400, "name": "Heliotrope" }, - { "hexcode": "#a855f7", "number": 500, "name": "Medium Purple" }, - { "hexcode": "#9333ea", "number": 600, "name": "Electric Violet" }, - { "hexcode": "#7e22ce", "number": 700, "name": "Purple Heart" }, - { "hexcode": "#6b21a8", "number": 800, "name": "Seance" }, - { "hexcode": "#581c87", "number": 900, "name": "Daisy Bush" }, - { "hexcode": "#3b0764", "number": 950, "name": "Christalle" } - ] - }, - { - "key": "fuchsia", - "palettes": [ - { "hexcode": "#fdf4ff", "number": 50, "name": "White Pointer" }, - { "hexcode": "#fae8ff", "number": 100, "name": "White Pointer" }, - { "hexcode": "#f5d0fe", "number": 200, "name": "Mauve" }, - { "hexcode": "#f0abfc", "number": 300, "name": "Mauve" }, - { "hexcode": "#e879f9", "number": 400, "name": "Heliotrope" }, - { "hexcode": "#d946ef", "number": 500, "name": "Heliotrope" }, - { "hexcode": "#c026d3", "number": 600, "name": "Fuchsia Pink" }, - { "hexcode": "#a21caf", "number": 700, "name": "Violet Eggplant" }, - { "hexcode": "#86198f", "number": 800, "name": "Seance" }, - { "hexcode": "#701a75", "number": 900, "name": "Seance" }, - { "hexcode": "#4a044e", "number": 950, "name": "Clairvoyant" } - ] - }, - { - "key": "pink", - "palettes": [ - { "hexcode": "#fdf2f8", "number": 50, "name": "Wisp Pink" }, - { "hexcode": "#fce7f3", "number": 100, "name": "Carousel Pink" }, - { "hexcode": "#fbcfe8", "number": 200, "name": "Classic Rose" }, - { "hexcode": "#f9a8d4", "number": 300, "name": "Lavender Pink" }, - { "hexcode": "#f472b6", "number": 400, "name": "Persian Pink" }, - { "hexcode": "#ec4899", "number": 500, "name": "Brilliant Rose" }, - { "hexcode": "#db2777", "number": 600, "name": "Cerise" }, - { "hexcode": "#be185d", "number": 700, "name": "Maroon Flush" }, - { "hexcode": "#9d174d", "number": 800, "name": "Disco" }, - { "hexcode": "#831843", "number": 900, "name": "Disco" }, - { "hexcode": "#500724", "number": 950, "name": "Cab Sav" } - ] - }, - { - "key": "rose", - "palettes": [ - { "hexcode": "#fff1f2", "number": 50, "name": "Lavender blush" }, - { "hexcode": "#ffe4e6", "number": 100, "name": "Cosmos" }, - { "hexcode": "#fecdd3", "number": 200, "name": "Pastel Pink" }, - { "hexcode": "#fda4af", "number": 300, "name": "Sweet Pink" }, - { "hexcode": "#fb7185", "number": 400, "name": "Froly" }, - { "hexcode": "#f43f5e", "number": 500, "name": "Radical Red" }, - { "hexcode": "#e11d48", "number": 600, "name": "Amaranth" }, - { "hexcode": "#be123c", "number": 700, "name": "Cardinal" }, - { "hexcode": "#9f1239", "number": 800, "name": "Shiraz" }, - { "hexcode": "#881337", "number": 900, "name": "Claret" }, - { "hexcode": "#4c0519", "number": 950, "name": "Cab Sav" } - ] - } -] diff --git a/packages/color-palette/src/palette.ts b/packages/color-palette/src/palette.ts deleted file mode 100644 index c920023a8..000000000 --- a/packages/color-palette/src/palette.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { getDeltaE, getHsl, isValidColor, transformHslToHex } from './color'; -import { getColorName } from './name'; -import type { ColorPaletteFamily, ColorPaletteFamilyWithNearestPalette } from './type'; -import defaultPalettes from './json/palette.json'; - -export function getNearestColorPaletteFamily(color: string, families: ColorPaletteFamily[]) { - const familyWithConfig = families.map(family => { - const palettes = family.palettes.map(palette => { - return { - ...palette, - delta: getDeltaE(color, palette.hexcode) - }; - }); - - const nearestPalette = palettes.reduce((prev, curr) => (prev.delta < curr.delta ? prev : curr)); - - return { - ...family, - palettes, - nearestPalette - }; - }); - - const nearestPaletteFamily = familyWithConfig.reduce((prev, curr) => - prev.nearestPalette.delta < curr.nearestPalette.delta ? prev : curr - ); - - const { l } = getHsl(color); - - const paletteFamily: ColorPaletteFamilyWithNearestPalette = { - ...nearestPaletteFamily, - nearestLightnessPalette: nearestPaletteFamily.palettes.reduce((prev, curr) => { - const { l: prevLightness } = getHsl(prev.hexcode); - const { l: currLightness } = getHsl(curr.hexcode); - - const deltaPrev = Math.abs(prevLightness - l); - const deltaCurr = Math.abs(currLightness - l); - - return deltaPrev < deltaCurr ? prev : curr; - }) - }; - - return paletteFamily; -} - -export function getColorPaletteFamily(color: string, colorName: string) { - if (!isValidColor(color)) { - throw new Error('Invalid color, please check color value!'); - } - - const { h: h1, s: s1 } = getHsl(color); - - const { nearestLightnessPalette, palettes } = getNearestColorPaletteFamily( - color, - defaultPalettes as ColorPaletteFamily[] - ); - - const { number, hexcode } = nearestLightnessPalette; - - const { h: h2, s: s2 } = getHsl(hexcode); - - const deltaH = h1 - h2 || h2; - - const sRatio = s1 / s2; - - const colorPaletteFamily: ColorPaletteFamily = { - key: colorName, - palettes: palettes.map(palette => { - let hexValue = color; - - const isSame = number === palette.number; - - if (!isSame) { - const { h: h3, s: s3, l } = getHsl(palette.hexcode); - - const newH = deltaH < 0 ? h3 + deltaH : deltaH; - const newS = s3 * sRatio; - - hexValue = transformHslToHex({ - h: newH, - s: newS, - l - }); - } - - return { - hexcode: hexValue, - number: palette.number, - name: getColorName(hexValue) - }; - }) - }; - - return colorPaletteFamily; -} diff --git a/packages/color-palette/src/palette/index.ts b/packages/color-palette/src/palette/index.ts new file mode 100644 index 000000000..354bd51a7 --- /dev/null +++ b/packages/color-palette/src/palette/index.ts @@ -0,0 +1,152 @@ +import { getColorName, getDeltaE, getHsl, isValidColor, transformHslToHex } from '../shared'; +import { colorPalettes } from '../constant'; +import type { + ColorPalette, + ColorPaletteFamily, + ColorPaletteFamilyWithNearestPalette, + ColorPaletteMatch, + ColorPaletteNumber +} from '../types'; + +/** + * get color palette by provided color and color name + * + * @param color the provided color + */ +export function getColorPalette(color: string) { + const colorPaletteFamily = getColorPaletteFamily(color); + + const colorMap = new Map(); + + colorPaletteFamily.palettes.forEach(palette => { + colorMap.set(palette.number, palette); + }); + + const mainColor = colorMap.get(500)!; + const matchColor = colorPaletteFamily.palettes.find(palette => palette.hex === color)!; + + const colorPalette: ColorPaletteMatch = { + ...colorPaletteFamily, + colorMap, + main: mainColor, + match: matchColor + }; + + return colorPalette; +} + +/** + * get color by number + * + * @param color the provided color + * @param number the color palette number + */ +export function getColorByPaletteNumber(color: string, number: ColorPaletteNumber) { + const colorPalette = getColorPalette(color); + + const { hex } = colorPalette.colorMap.get(number)!; + + return hex; +} + +/** + * get color palette family by provided color and color name + * + * @param color the provided color + */ +export function getColorPaletteFamily(color: string) { + if (!isValidColor(color)) { + throw new Error('Invalid color, please check color value!'); + } + + let colorName = getColorName(color); + + colorName = colorName.toLowerCase().replace(/\s/g, '-'); + + const { h: h1, s: s1 } = getHsl(color); + + const { nearestLightnessPalette, palettes } = getNearestColorPaletteFamily(color, colorPalettes); + + const { number, hex } = nearestLightnessPalette; + + const { h: h2, s: s2 } = getHsl(hex); + + const deltaH = h1 - h2; + + const sRatio = s1 / s2; + + const colorPaletteFamily: ColorPaletteFamily = { + name: colorName, + palettes: palettes.map(palette => { + let hexValue = color; + + const isSame = number === palette.number; + + if (!isSame) { + const { h: h3, s: s3, l } = getHsl(palette.hex); + + const newH = deltaH < 0 ? h3 + deltaH : h3 - deltaH; + const newS = s3 * sRatio; + + hexValue = transformHslToHex({ + h: newH, + s: newS, + l + }); + } + + return { + hex: hexValue, + number: palette.number + }; + }) + }; + + return colorPaletteFamily; +} + +/** + * get nearest color palette family + * + * @param color color + * @param families color palette families + */ +function getNearestColorPaletteFamily(color: string, families: ColorPaletteFamily[]) { + const familyWithConfig = families.map(family => { + const palettes = family.palettes.map(palette => { + return { + ...palette, + delta: getDeltaE(color, palette.hex) + }; + }); + + const nearestPalette = palettes.reduce((prev, curr) => (prev.delta < curr.delta ? prev : curr)); + + return { + ...family, + palettes, + nearestPalette + }; + }); + + const nearestPaletteFamily = familyWithConfig.reduce((prev, curr) => + prev.nearestPalette.delta < curr.nearestPalette.delta ? prev : curr + ); + + const { l } = getHsl(color); + + const paletteFamily: ColorPaletteFamilyWithNearestPalette = { + ...nearestPaletteFamily, + nearestLightnessPalette: nearestPaletteFamily.palettes.reduce((prev, curr) => { + const { l: prevLightness } = getHsl(prev.hex); + const { l: currLightness } = getHsl(curr.hex); + + const deltaPrev = Math.abs(prevLightness - l); + const deltaCurr = Math.abs(currLightness - l); + + return deltaPrev < deltaCurr ? prev : curr; + }) + }; + + return paletteFamily; +} diff --git a/packages/color-palette/src/color.ts b/packages/color-palette/src/shared/colord.ts similarity index 100% rename from packages/color-palette/src/color.ts rename to packages/color-palette/src/shared/colord.ts diff --git a/packages/color-palette/src/shared/index.ts b/packages/color-palette/src/shared/index.ts new file mode 100644 index 000000000..ae293ceb1 --- /dev/null +++ b/packages/color-palette/src/shared/index.ts @@ -0,0 +1,2 @@ +export * from './colord'; +export * from './name'; diff --git a/packages/color-palette/src/name.ts b/packages/color-palette/src/shared/name.ts similarity index 67% rename from packages/color-palette/src/name.ts rename to packages/color-palette/src/shared/name.ts index 2cd5a445e..866bd33d6 100644 --- a/packages/color-palette/src/name.ts +++ b/packages/color-palette/src/shared/name.ts @@ -1,6 +1,11 @@ -import { getHex, getHsl, getRgb } from './color'; -import colorNames from './json/color-name.json'; - +import { colorNames } from '../constant'; +import { getHex, getHsl, getRgb } from './colord'; + +/** + * Get color name + * + * @param color + */ export function getColorName(color: string) { const hex = getHex(color); const rgb = getRgb(color); @@ -17,15 +22,13 @@ export function getColorName(color: string) { colorNames.some((item, index) => { const [hexValue, colorName] = item; - const hexcode = `#${hexValue}`; - - const match = hex === hexcode; + const match = hex === hexValue; if (match) { name = colorName; } else { - const { r, g, b } = getRgb(hexcode); - const { h, s, l } = getHsl(hexcode); + const { r, g, b } = getRgb(hexValue); + const { h, s, l } = getHsl(hexValue); ndf1 = (rgb.r - r) ** 2 + (rgb.g - g) ** 2 + (rgb.b - b) ** 2; ndf2 = (hsl.h - h) ** 2 + (hsl.s - s) ** 2 + (hsl.l - l) ** 2; @@ -40,7 +43,7 @@ export function getColorName(color: string) { return match; }); - name = cl < 0 ? 'Invalid Color' : colorNames[cl][1]; + name = colorNames[cl][1]; return name; } diff --git a/packages/color-palette/src/type.ts b/packages/color-palette/src/type.ts deleted file mode 100644 index 505d38a66..000000000 --- a/packages/color-palette/src/type.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** The color palette number */ -export type ColorPaletteNumber = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950; - -/** The color palette item */ -export type ColorPaletteItem = { - /** The color hexcode */ - hexcode: string; - /** - * The color number - * - * @link {@link ColorPaletteNumber} - */ - number: ColorPaletteNumber; - /** The color name */ - name: string; -}; - -export type ColorPaletteFamily = { - /** The color palette family key */ - key: string; - /** The color palette family's palettes */ - palettes: ColorPaletteItem[]; -}; - -export type ColorPaletteWithDelta = ColorPaletteItem & { - delta: number; -}; - -export type ColorPaletteItemWithName = ColorPaletteItem & { - name: string; -}; - -export type ColorPaletteFamilyWithNearestPalette = ColorPaletteFamily & { - nearestPalette: ColorPaletteWithDelta; - nearestLightnessPalette: ColorPaletteWithDelta; -}; - -export type ColorPalette = ColorPaletteFamily & { - /** The color map of the palette */ - colorMap: Map; - /** - * The main color of the palette - * - * Which number is 500 - */ - main: ColorPaletteItemWithName; - /** The match color of the palette */ - match: ColorPaletteItemWithName; -}; diff --git a/packages/color-palette/src/types/index.ts b/packages/color-palette/src/types/index.ts new file mode 100644 index 000000000..46ceb4570 --- /dev/null +++ b/packages/color-palette/src/types/index.ts @@ -0,0 +1,47 @@ +/** the color palette number */ +export type ColorPaletteNumber = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950; + +/** the color palette */ +export type ColorPalette = { + /** the color hex value */ + hex: string; + /** + * the color number + * + * - 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 + */ + number: ColorPaletteNumber; +}; + +/** the color palette family */ +export type ColorPaletteFamily = { + /** the color palette family name */ + name: string; + /** the color palettes */ + palettes: ColorPalette[]; +}; + +/** the color palette with delta */ +export type ColorPaletteWithDelta = ColorPalette & { + delta: number; +}; + +/** the color palette family with nearest palette */ +export type ColorPaletteFamilyWithNearestPalette = ColorPaletteFamily & { + nearestPalette: ColorPaletteWithDelta; + nearestLightnessPalette: ColorPaletteWithDelta; +}; + +/** the color palette match */ +export type ColorPaletteMatch = ColorPaletteFamily & { + /** the color map of the palette */ + colorMap: Map; + /** + * the main color of the palette + * + * which number is 500 + */ + main: ColorPalette; + /** the match color of the palette */ + match: ColorPalette; +}; diff --git a/src/store/modules/theme/index.ts b/src/store/modules/theme/index.ts index 967787425..8947afce7 100644 --- a/src/store/modules/theme/index.ts +++ b/src/store/modules/theme/index.ts @@ -81,14 +81,12 @@ export const useThemeStore = defineStore(SetupStoreId.Theme, () => { */ function updateThemeColors(key: App.Theme.ThemeColorKey, color: string) { // get a color palette by provided color and color name, and use the suitable color - const colorPalette = getColorPalette(color, key); - - const mainColor = colorPalette.main.hexcode; + const { main } = getColorPalette(color); if (key === 'primary') { - settings.value.themeColor = mainColor; + settings.value.themeColor = main.hex; } else { - settings.value.otherColor[key] = mainColor; + settings.value.otherColor[key] = main.hex; } } diff --git a/src/store/modules/theme/shared.ts b/src/store/modules/theme/shared.ts index b00b52b32..e755f8546 100644 --- a/src/store/modules/theme/shared.ts +++ b/src/store/modules/theme/shared.ts @@ -1,5 +1,5 @@ import type { GlobalThemeOverrides } from 'naive-ui'; -import { getColorByColorPaletteNumber, getColorPalette } from '@sa/color-palette'; +import { getColorByPaletteNumber, getColorPalette } from '@sa/color-palette'; import { addColorAlpha, getRgbOfColor } from '@sa/utils'; import { overrideThemeSettings, themeSettings } from '@/theme/settings'; import { themeVars } from '@/theme/vars'; @@ -81,12 +81,12 @@ function createThemePaletteColors(colors: App.Theme.ThemeColor) { const colorPaletteVar = {} as App.Theme.ThemePaletteColor; colorKeys.forEach(key => { - const { palettes, main } = getColorPalette(colors[key], key); + const { palettes, main } = getColorPalette(colors[key]); - colorPaletteVar[key] = main.hexcode; + colorPaletteVar[key] = main.hex; palettes.forEach(item => { - colorPaletteVar[`${key}-${item.number}`] = item.hexcode; + colorPaletteVar[`${key}-${item.number}`] = item.hex; }); }); @@ -199,8 +199,8 @@ function getNaiveThemeColors(colors: App.Theme.ThemeColor) { const colorActions: NaiveColorAction[] = [ { scene: '', handler: color => color }, { scene: 'Suppl', handler: color => color }, - { scene: 'Hover', handler: color => getColorByColorPaletteNumber(color, 500) }, - { scene: 'Pressed', handler: color => getColorByColorPaletteNumber(color, 700) }, + { scene: 'Hover', handler: color => getColorByPaletteNumber(color, 500) }, + { scene: 'Pressed', handler: color => getColorByPaletteNumber(color, 700) }, { scene: 'Active', handler: color => addColorAlpha(color, 0.1) } ];