Build/Test Tools: Add unit tests for sanitize_hex_color().
sanitize_hex_color()
Props pbearne. Fixes #60270.