Converts calls to rgb() to their hex colours