chickadee » web-colors » web-color-name

web-color-name color-listprocedure

Attempts to find a named color exactly matching the given color list. Returns the color name string if found, or #f if not found.

The colors are compared with equal?, so the given color list should be a rgb type with exact integers, not ratios or floats. Alpha should usually be 1, except "transparent" which has alpha 0.

Note that some colors are synonyms (e.g. "aqua" and "cyan"). In such cases only the first match is returned. (By default, color names are ordered alphabetically, but this can be overridden with the *web-color-names* parameter.)