For some reason the colors are working like this for me,

Where the numbers say 1 1 0, I loaded the brick and the color came out red. The color after red is yellow so I decided to change 1 1 0 to 1 1 1. And guess what, the bricks came out yelllow. Is this how the colors work, do I just need to change the last number and that will be code in order the way the inventory goes?