How to convert hex to rgb using Java?

Actually, there’s an easier (built in) way of doing this:

Color.decode("#FFCCEE");

Leave a Comment