Skip to main content
Jackson Bates

A simple color generator

I wanted a quick and easy way to generate semi-random, but consistent colours.

I figured since I could get consistent hex values off of a string using an md5 hash, slicing the last 6 characters from a hash would generate such a colour code.

Here's a little pen that demos the idea:

See the Pen Color test thing by Jackson Bates (@Malgalin) on CodePen.