I figured I should post this question, even if I have already found a solution, as a Java implementation was not readily available when I searched for it.
Using HSV
Using SWT you can use following code snippet:
RGB rgb = new RGB(r, g, b); float[] hsbColor = rgb.getHSB(); rgb = new RGB(hsbColor[0], hsbColor[1], hsbColor[2]);