RGB (Red, Green, Blue) is an additive color model where colors are created by combining different intensities of red, green, and blue light:
RGBA adds an alpha channel for transparency (0 = fully transparent, 1 = fully opaque)
background: rgb(255, 0, 0);
background: rgba(0, 0, 255, 0.5);
Hexadecimal colors are a way to represent RGB values using base-16 numbers:
background: #FF5733;
background: #33FF57;
HSL (Hue, Saturation, Lightness) is a more intuitive way to specify colors:
background: hsl(120, 100%, 50%);
background: hsla(300, 100%, 50%, 0.5);
currentColor: A dynamic value that represents the current color value of an element:
transparent: Represents a fully transparent color:
border: 5px solid currentColor;
background: transparent;
CSS provides various properties to apply colors to different aspects of elements: