implemented rgb() and rgba() serialization