parseColor

fun parseColor(hex: String?): Color

Parses a #RRGGBB (or RRGGBB) hex colour; falls back to white on any error.