I only now realized that the ANSI color codes for red (1), green (2), and blue (4) are arranged on powers of two and that the rest correspond to addition of the primaries: 3=yellow, 5=magenta, 6=cyan, 7=white.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!