What is Color Code
In daily life we frequently use color names. These color names are limited and are fundamental for representing different objects. These color names are also called color constants such as Red, Green, Blue, White, Orange and Black. Other than these fundamental colors there are also no of other colors and these colors also have some assigned identifiers. But other than these basic colors there are also thousands of other colors. These colors are not assigned some identifiers. But these all colors are frequently used in different color schemes and color mixing.
Uses of Color Codes
As already discussed there are hundred and thousands of colors so that to quickly generate these color we use some predefined color schemes. These color schemes has some special format and syntax for formation of colors. For example in RGB color schemes we have to provide three value independently for Red, Green and Blue.

Common Color Codes
Sr. | Color Code | Examples |
---|---|---|
1 | Hexadecimal |
#FFFFFF ,
#000000 ,
#FF0000
|
2 | RGB | RGB(255,0,0) , RGB(0,0,255) , RGB(255,255,255) |
3 | HSL | hsl(60, 100%, 50%) , hsl(270, 100%, 80%) , hsl(0, 0%, 80%) |
4 | HSV | hsv(30, 100%, 90%) , hsv(180, 100%, 100%) , hsv(240, 100%, 30%) |
5 | CMYK | cmyk(0%, 0%, 0%, 100%) , cmyk(100%, 0%, 50%, 20%) , cmyk(0%, 25%, 0%, 0%) |
Color Codes Conversion
All available color codes are used for the same purpose, but their representation is different. It is possible that some platforms does not support all types of color codes. So there is requirement of color code conversion. These all color codes can be converted into each other. For this purpose there are some formula's and numbers systems are used for conversion. There are several mobile and web applications for the color conversion. Such as we can convert RGB into Hex code as well Hex can also converted into any other color codes.
Some of the commonly used color conversions are.