
Also, HSV uses value instead of lightness. In fact, it can be dramatically different, depending on the color. However, the saturation may or may not be the same for a given color. HSV is similar to HSL in that it allows you to specify the hue and saturation levels. HSV HSV uses hue, saturation, and value to represent the color. In CSS, HSL is defined using the hsl() function. The saturation and lightness are expressed as percentage values, to represent the amount of saturation in the color and the lightness. The hue is given as a value between 0 and 360 to represent its position on the color wheel. HSL represents the hue, saturation, and lightness of a color. The values can also be represented as a percentage. Therefore, rgb(255,0,0) represents red, rgb(0,0,255) represents blue, and so on. Each component can be a number between 0 and 255. In CSS, we pass the color value to the rgb() function as a comma separated list of the red, green, and blue components. The RGB model represents a color based on its proportions of red, green, and blue. Hex can also be provided as a three digit number (but only some colors can be represented this way).Īlso, CSS Color Module Level 4 currently proposes an eight digit hex value (and its four digit shorthand) for representing alpha transparency. The color value is provided as a six-digit hexadecimal number, preceded by a hash symbol ( #).

This method uses hexadecimal notation to define the color in their RGB components. The above conversion results displays the same color using different color models.
