Resistor Color Code

There is a standard coding for electronics with 10 colors, each representing a single digit.
These are represented below as standard "web safe" colors (their hexadecimal RGB values are shown). This is only a part of the electronics color coding scheme, but it is all that we need for our purposes.

Black
Brown
Red
Orange
Yellow
Green
Blue
Violet
Grey
White
#000000
#996633
#FF0000
#FF9900
#FFFF00
#00FF00
#0000FF
#FF00FF
#CCCCCC
#FFFFFF
0
1
2
3
4
5
6
7
8
9

The complete electronics color coding scheme can be found on Electronix Express.