Implement color functions (#12753, #12763, #12764)

Change-Id: Id7b464473315c49d7a2e666d34d4e49602e3bb44