Ghostscript has a long history in the open source community and was developed at the same time that page description languages were evolving to the complex specification of PDF today. Color is a key component in this specification and its description and proper implementation is as complex as any other part of the specification. In this document, the color processing and management that takes place in Ghostscript is reviewed with a focus on how its design achieves computational efficiency while providing flexibility for the developer and user.
Michael J. Vrhel, Artifex Software, "Color processing and management in Ghostscript" in Proc. IS&T 27th Color and Imaging Conf., 2019, pp 62 - 68, https://doi.org/10.2352/issn.2169-2629.2019.27.12