The first letter of the color code is matched by order of increasing magnitude. The electronic color codes, in order, are:
Black brown red orange yellow green blue violet gray white.
Some mnemonics that are easy to remember include:
Big boys race our young girls but Violet generally wins.
Better be right or your great big venture goes west.
Beetle Bailey runs over your general before very good witnesses.
Buster Brown races our young girls but Violet generally wins.
Better be right or your great big plan goes wrong. (p=purple for violet)
Back-Breaking Rascals Often Yield Grudgingly But Virtuous Gentlemen Will Give Shelter Nobly (with tolerance bands Gold, Silver or None)