RGB to HSV

Today I was working on a little project and I want to convert RGB to HSV and vice-versa.
While trying to find a formula and playing with Photoshop’s color selector I realized that some values for RGB are represented by the same HSV values.

RGB consists of 3 channels - 256 values each therefore > 256³ = 16,777,216

HSV consist of 1 - 360° for H / %0 -%100 for S and same for V therefore > 360100100 = only 3,600,000

Conclusion: HSV scheme can only represent 1/5th of RGB scheme.

//I just thought you might find that interesting and helpful :slight_smile: