feature to change text colour based on overall colour brightness