Added an "approximate_rgb" function.

Also covered 256 colour codes with test. Not 100% sure if those test are
any good though.