UTILS.
100% in-browser
#abc

Color from Text

Generate a deterministic color from any string of text.

Click the hex output or a tile to copy it.

About this tool

Turn any text into a consistent, deterministic color by hashing it and mapping the hash to an HSL hue, all in your browser.

Frequently asked questions

Will the same text always give the same color?
Yes — the text is hashed deterministically, so identical input always produces the exact same color.
What is this useful for?
It is handy for giving users, tags or labels a stable, unique accent color without storing one, such as for default avatars.

More tools