mlbcolors
Easy access to the official colors of every team in Major League Baseball. Based on jimniels/teamcolors.
Python Installation
$ pip install mlbcolors
Python Usage
>>> import mlbcolors
>>> mlbcolors.get("CHC")
['#CC3433', '#0E3386']
JavaScript usage
A JSON file keyed by team abbreviation is available at unpkg.com/mlbcolors/mlbcolors/data.json. See it in use on ObservableHQ at @palewire/the-official-color-of-every-team-in-major-league-baseball