import hashlib


def word_to_color(word):
    """ Takes a string and returns an RGB color based on the
    md5 hash of that string """
    md5 = hashlib.md5()
    md5.update(word)
    hash_value = md5.hexdigest()
    rgb = '#' + hash_value[0:2] + hash_value[2:4] + hash_value[4:6]
    return rgb