# RGB to HSV

**URL:** https://forum.kirupa.com/t/rgb-to-hsv/229899
**Category:** random
**Created:** [June 21, 2007, 3:27am UTC](https://forum.kirupa.com/t/rgb-to-hsv/229899 "2007-06-21T03:27:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![7788](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/7788/32/2860_2.png) [@7788](https://forum.kirupa.com/u/7788)
#### Post date: [June 21, 2007, 3:27am UTC](https://forum.kirupa.com/t/rgb-to-hsv/229899/1 "2007-06-21T03:27:19Z")

</div>

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 \> 360_100_100 = 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 🙂
