HexColorHelper a swift helper to return back color based on HEX value and alpha value Usage UINavigationBar.appearance().tintColor = appTextColor() Notes This is a swift License MIT