RGB/HSL/CYMK Conversion

There are various ways to categorize colors. The term color space is commonly used.

RGB (Red, Green, and Blue) is considered to be the native computer color space and is used for displaying images on screen. CYMK (Cyan, Magenta Yellow, and Black) color space is able to print all colors; it is mostly used for commercial printing and used by most computer printers.HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value) are two concepts based on the light and intensity factors; used for the representation of points in a RGB colors space and providing a better color relationship than RGB.

Here below is a link providing algorithms for these color conversion:

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « RGB/HSL/CYMK Conversion », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).