| Alpha | This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
Format
To add a team's colors to this module follow the below format;
["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", "HEX4", "HEX5"},
It is important to add the comma at the end. Here HEX standards for a color's hexadecimal value. For example #FFFFFF is the hexadecimal value for the color white.
Team table
| Team | 1 | 2 | 3 | 4 | 5 | Contrast | |
|---|---|---|---|---|---|---|---|
| 1/2 | 4/3 | ||||||
| Anaheim Ducks | 21 | 1.03 | |||||
| Arizona Coyotes | X | 8.83 | 16.45 | ||||
| Boston Bruins | X | X | 21 | ||||
| Buffalo Sabres | X | 14.94 | 1.24 | ||||
| Calgary Flames | X | 4.65 | 12.68 | ||||
| Carolina Hurricanes | X | 6.34 | 6.18 | ||||
| Chicago Blackhawks | X | X | 4.65 | ||||
| Colorado Avalanche | 10.06 | 2.77 | |||||
| Columbus Blue Jackets | X | 16.05 | 2.61 | ||||
| Dallas Stars | X | 6.22 | 8.84 | ||||
| Detroit Red Wings | X | 4.65 | 4.65 | ||||
| Edmonton Oilers | X | X | 10.52 | ||||
| Florida Panthers | X | 5.88 | 6.02 | ||||
| Los Angeles Kings | X | X | 21 | ||||
| Minnesota Wild | 5.99 | 5.18 | |||||
| Montreal Canadiens | X | X | 5.99 | ||||
| Nashville Predators | X | X | 1.73 | ||||
| New Jersey Devils | X | X | 4.65 | ||||
| New York Islanders | X | X | 7.84 | ||||
| New York Rangers | X | X | 6.66 | ||||
| Ottawa Senators | X | 4.65 | 8.83 | ||||
| Philadelphia Flyers | X | X | 2.74 | ||||
| Pittsburgh Penguins | X | X | 21 | ||||
| San Jose Sharks | X | 5.19 | 8.85 | ||||
| St. Louis Blues | X | 7.82 | 7.84 | ||||
| Tampa Bay Lightning | X | X | 10.72 | ||||
| Toronto Maple Leafs | X | 11.47 | 11.47 | ||||
| Vancouver Canucks | X | X | 10.55 | ||||
| Vegas Golden Knights | X | 10.8 | 4.62 | ||||
| Washington Capitals | X | X | 4.65 | ||||
| Winnipeg Jets | 16.54 | 2.95 | |||||
| Free agent | X | X | X | 15.31 | |||
| Retired | X | X | X | 15.31 | |||
The numeric columns are the calculated contrast ratio for the first/second and the fourth/third colors. Anything lower than 3 is very poor contrast and should be changed in the data module. For more information, see Template:Color contrast ratio.
{{#invoke:Hockey team color|function_name}}
return {
-- Current --
["Anaheim Ducks"] = {"000000", "FFFFFF", "B6985A", "F57D31", "B3B6BB"},
["Arizona Coyotes"] = {"98012E", "FFFFFF", "000000", "EEE3C7"},
["Boston Bruins"] = {"000000", "FFFFFF", "FDB930"},
["Buffalo Sabres"] = {"002654", "FFFFFF", "FCB514", "ADAFAA"},
["Calgary Flames"] = {"E51837", "FFFFFF", "FDBE57", "000000"},
["Carolina Hurricanes"] = {"C2001C", "FFFFFF", "333333", "B1B6BA"},
["Chicago Blackhawks"] = {"E51837", "FFFFFF", "000000"},
["Colorado Avalanche"] = {"870038", "FFFFFF", "015696", "000000", "B2B7BB"},
["Columbus Blue Jackets"] = {"002147", "FFFFFF", "C60C30", "A5ACAF"},
["Dallas Stars"] = {"016F4A", "FFFFFF", "000000", "A7A8AC"},
["Detroit Red Wings"] = {"E51837", "FFFFFF", "E51837", "FFFFFF"},
["Edmonton Oilers"] = {"013E7F", "FFFFFF", "EB6E1E"},
["Florida Panthers"] = {"C8102E", "FFFFFF", "041E42", "B9975B"},
["Los Angeles Kings"] = {"000000", "FFFFFF", "B2B7BB"},
["Minnesota Wild"] = {"C51230", "FFFFFF", "004F30", "F1B310", "EEE3C7"},
["Montreal Canadiens"] = {"C51230", "FFFFFF", "083A81"},
["Nashville Predators"] = {"FDB930", "FFFFFF", "002E62"},
["New Jersey Devils"] = {"E51837", "FFFFFF", "000000"},
["New York Islanders"] = {"00529B", "FFFFFF", "F57D31"},
["New York Rangers"] = {"005DAB", "FFFFFF", "E51837"},
["Ottawa Senators"] = {"E51837", "FFFFFF", "000000", "D4A00F"},
["Philadelphia Flyers"] = {"F4793E", "FFFFFF", "000000"},
["Pittsburgh Penguins"] = {"000000", "FFFFFF", "FFCC33"},
["San Jose Sharks"] = {"007889", "FFFFFF", "F4901E", "000000"},
["St. Louis Blues"] = {"00529C", "FFFFFF", "FDB930", "002D62"},
["Tampa Bay Lightning"] = {"003D7C", "FFFFFF", "000000"},
["Toronto Maple Leafs"] = {"073875", "FFFFFF", "073875", "FFFFFF"},
["Vancouver Canucks"] = {"003E7E", "FFFFFF", "008752"},
["Washington Capitals"] = {"E51837", "FFFFFF", "002E62"},
["Winnipeg Jets"] = {"041E42", "FFFFFF", "0060A5", "ADAFAA", "A81E2D"},
-- Future --
["Vegas Golden Knights"] = {"333F48", "FFFFFF", "89734C", "000000"},
}
