So that I don't forget how it works :)
https://github.com/SenchoPens/base16.nix
This produces much more visually pleasing palettes compared to the crude algorithm which was previously used.