chickadee » web-colors » rgb-color->hex-string

web-color->string color-listprocedure
rgb-color->hex-string color-listprocedure
rgb-color->string color-listprocedure
hsl-color->string color-listprocedure

Like write-web-color, etc. except that the color is written to a string and returned. Equivalent to:

(call-with-output-string
  (lambda (port)
    (write-web-color color-list port)))