Replace attr_accessor with attr_reader; define custom setters for @rgb_color and @hex_color, each of which calls rgb_to_hex or hex_to_rgb (respectively) every time a new color value is set
Remove direct calls to rgb_to_hex and hex_to_rgb; test functionality of custom rgb- and hex-color setter methods