Color conversion functions for Clojure