I just built a featurehave opened a pull request to Please.js that fits the bill in Pleaseallows generating a color from a hash.js, it still isn't merged with the main repo, but you can see it here:
https://github.com/ibarrajo/PleaseJS
You can map the string to a color like so:
varconst color = Please.make_color({
from_hash: 'any"any string goes here'here"
});
For example, "any string goes here"
will return as "#47291b"
and "another!"
returns as "#1f0c3d"