Color utilities for the pex library