Website colors are what we use to make a website or web page look the way we want it to. There are a few different ways we can define website colors, but the most common ones are hexadecimal (hex) codes, RGBA values, and HSL values.
Hexadecimal codes are six-digit codes that represent the intensity of the red, green, and blue (RGB) colors using hexadecimal notation. Each pair of digits represents one of the RGB colors, ranging from 00 (no color) to FF (full intensity). So, for example, the hex code #FF0000 represents the color red, while #0000FF represents blue, #FFFFFF represents white and #000000 represents black.
RGBA stands for Red, Green, Blue, and Alpha. The alpha channel represents the opacity or transparency of a color, with a value of 0 being completely transparent and 1 being completely opaque. RGBA values are expressed as four numbers between 0 and 1, separated by commas. So, for example, the color red with an opacity of 50% would be expressed as rgba(255, 0, 0, 0.5).
Finally, HSL stands for Hue, Saturation, and Lightness. Hue is a value between 0 and 360 degrees that represents the color’s position on the color wheel. Saturation is a value between 0% and 100% that represents the intensity or purity of the color, with 0% being a grayscale color and 100% being fully saturated. Lightness is a value between 0% and 100% that represents the brightness of the color, with 0% being black and 100% being white. HSL values are expressed as three values: hue, saturation, and lightness, separated by commas. So, for example, the color red would be expressed as hsl(0, 100%, 50%).