Usage

{{الگو:NBA color|team name|number}}

{{الگو:NBA color cell|team name}} returns a style that uses the primary color for the background and the secondary color for the font.

{{الگو:NBA color cell2|team name}} returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.

Examples

<span style="color: #{{NBA color|Toronto Raptors|1}};">Lorem ipsum</span>

Lorem ipsum

<span style="{{NBA color cell|Toronto Raptors}}">Lorem ipsum</span>

Lorem ipsum

<span style="{{NBA color cell2|Toronto Raptors}}">Lorem ipsum</span>

Lorem ipsum

Table of colors

Team1234Contrast
1/24/3
San Antonio Spurs 2113.13
Boston Celtics 4.847.66
Brooklyn Nets 2121
Charlotte Hornets 5.1716.14
Chicago Bulls 5.5521
Cleveland Cavaliers 10.3912.12
Dallas Mavericks 6.0711.86
Denver Nuggets 15.8910.01
Golden State Warriors 9.558.56
Indiana Pacers 13.537.94
Los Angeles Lakers 10.6112.15
Miami Heat 218.84
New York Knicks 5.568.21
Phoenix Suns 16.146.03
Toronto Raptors 5.5521
Milwaukee Bucks 10.958.46
Oklahoma City Thunder 4.613.95
Portland Trail Blazers 4.3421
Utah Jazz 146.71
Detroit Pistons 9.555.88
Houston Rockets 5.5521
Los Angeles Clippers 5.889.55
Memphis Grizzlies 4.5417.21
Minnesota Timberwolves 15.796.91
Orlando Magic 4.7721
Sacramento Kings 9.874.98
Washington Wizards 144.72
Atlanta Hawks 5.8812.15
New Orleans Pelicans 145.01
Philadelphia 76ers 5.564.35
Team1234Contrast
1/24/3
Agua Caliente Clippers 5.889.55
Austin Spurs 2113.13
Capital City Go-Go 144.72
Grand Rapids Drive 5.889.55
Oklahoma City Blue 4.613.95
Raptors 905 5.5521
Greensboro Swarm 5.1716.14
Rio Grande Valley Vipers 5.5511.51
Delaware Blue Coats 9.475.1
Iowa Wolves 15.796.91
Santa Cruz Warriors 9.5512.15
Sioux Falls Skyforce 218.84
Lakeland Magic 4.7721
South Bay Lakers 10.6112.15
Canton Charge 10.3912.12
Erie BayHawks 6.047.51
Long Island Nets 5.564.35
Texas Legends 6.078.1
Westchester Knicks 5.568.21
Maine Red Claws 4.355.55
Windy City Bulls 5.5521
Fort Wayne Mad Ants 13.537.94
Memphis Hustle 4.684.83
Wisconsin Herd 10.958.46
Stockton Kings 9.874.98
Salt Lake City Stars 1410.07
Northern Arizona Suns 16.146.03
Team1234Contrast
1/24/3
Eastern Conference 9.559.55
United States National Basketball Team 14.254.71
Western Conference 5.885.88
default XX15.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.