text_color_for_bg helper doesn't support RGB triplets
Source: https://sentry.gitlap.com/gitlab/gitlabcom/issues/196/
The color validator accepts #FFF
or #FFFFFF
, but the former isn't accounted for by this helper, resulting in an error when we encounter one of these colors on a label.