HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values
[1].
RGBA colors
RGB(A) Colors: An RGB color value represents a color in the sRGB color space according to its RED,
GREEN, and BLUE components. An optional alpha component represents the color's transparency
[2][3][4].
Hex triplet: A hex triplet is a six-digit (or eight-digit) hexadecimal
number used in HTML, CSS, SVG, and other computing applications to
represent colors [5].
A hexadecimal color is specified with: #RRGGBB(AA)
[6].
HSLA(A) Colors: HSLA stands for Hue, Saturation, Lightness, and Alpha.
This color model extends the HSL format by incorporating transparency control
through the alpha channel.[7]
HTML comes with 140 named colors. These are special keyword values like black,
white, and cyan.These keywords all represent plain, solid colors without transparency
[8][9].
139 of these colors (and two aliases NamedColor::CYAN and NamedColor::MAGENTA) are implemented in NamedColor Enum.
In order to work as intended, this site stores cookies on your device. Accepting
improves our site and provides you with personalized service. Declining results
in one cookie being placed on your device so we remember your choice.