How can I convert strings to an html color code hash?

I'd like to represent strings as arbitrary html colors. Example: "blah blah" = #FFCC00 "foo foo 2" = #565656 It doesn't matter what the actual color code is, so long as it's a valid hexadecimal ...