ColorUtils is a small collection of utility functions to deal with coloring on Java.
Add it as a maven dependency or just download the latest release.
<dependency>
<groupId>com.konloch</groupId>
<artifactId>ColorUtils</artifactId>
<version>1.2.0</version>
</dependency>
These functions are so small you're better off just reading the source code directly. Click here to view the source.