LanguageColours offers an API for retrieving colours for programming languages based on GitHub colour data (or some other dataset).