Java tutorial
import java.awt.Color; import java.util.Arrays; public class Main { public static void main() { int red = 23; int green = 66; int blue = 99; float[] hsb = Color.RGBtoHSB(red, green, blue, null); System.out.println(Arrays.toString(hsb)); } }