Colors on the web are written in three common formats. HEX uses six hexadecimal digits (#RRGGBB), RGB uses three numbers from 0 to 255, and HSL uses hue, saturation and lightness. Enter a color in any of these formats and it is converted to the other two, with a live preview.