I read something today that I probably should have already known but here is a quick example of how RGB colors relate to your HTML values. (Hexadecimal values have a base 16 ranging from 0-F equal to 0-15. ex: B = 11)
example using #2C8A29 or R44, G138, B41
- 2C -> 2*16+12 = R: 44
- 8A -> 8*16+10 = G: 138
- 29 -> 2*16+9 = B: 41
Also, Web safe RGB values are 0, 51, 102, 153, 204, 255 or 00, 33, 66, 99, CC, FF in Hexadecimals. If you are dealing with only web colors, you'll always have some combination of those 6 values in Red, Green and Blue.