parseColor

fun parseColor(raw: String?): Color?

Accepts #RRGGBB, #RGB, #RRGGBBAA, or a CSS-style name from NAMED.