How to divide the #000000 – #ffffff interval intro x equal parts, to get x gray colors? Is this possible?
Edit:
More specifically:
I want ‘divide’ the #000000 – #ffffff color range like this:
- #000000
- #1E1E1E
- #282828
- #515151
- #5B5B5B
- #848484
- #8E8E8E
- #B7B7B7
- #C1C1C1
- #EAEAEA
- #F4F4F4
- #FFFFFF
In this list there are 12 colors. (Check out the sgi gray colors here.)
But what if I want not 12 but 32 colors? How to calculate them?
I hope now you understand me 🙂
#000000 is actually RGB with R = #00, G = #00, B = #00
You get a gray color for R = G = B.
#00 – #FF leaves you with 256 possible combinations, so if you wanna exclude white and black (#000000 and #FFFFFF) try something like this:
So if you want to get 4 grays, step resolves to
Transform that from decimal to hex:
The colors would now be: