
ActiveTextīackground of application content or documents CanvasTextįoreground color in application content or documents Fieldįoreground color for disabled items (e.g.

Note: Note that these keywords are case insensitive, but are listed here with mixed case for readability. Functional notation: hsl(H S L)ĬSS Colors Level 4 adds support for space-separated values in the functional notation. 100% lightness is white, 0% lightness is black, and 50% lightness is “normal.”Ī (alpha) can be a between 0 and 1, or a, where the number 1 corresponds to 100% (full opacity). 100% saturation is completely saturated, while 0% is completely unsaturated (gray). S (saturation) and L (lightness) are percentages. As an, it implicitly wraps around such that -120deg=240deg, 480deg=120deg, -1turn=1turn, etc. By definition, red=0deg=360deg, with the other colors spread around the circle, so green=120deg, blue=240deg, etc. When written as a unitless, it is interpreted as degrees, as specified in CSS Color Module Level 3. H (hue) is an of the color circle given in degs, rads, grads, or turns in CSS Color Module Level 4.

In browsers that implement the Level 4 standard, they accept the same parameters and behave the same way. Note: As of CSS Colors Level 4, hsla() is an alias for hsl(). Functional notation: rgb(R G B)ĬSS Colors Level 4 adds support for space-separated values in the functional notation. A (alpha) can be a between 0 and 1, or a, where the number 1 corresponds to 100% (full opacity). R (red), G (green), and B (blue) can be either s or s, where the number 255 corresponds to 100%. For example, #0f38 is the same color as #00ff3388. Likewise, the four-digit RGB notation ( #RGBA) is a shorter version of the eight-digit form ( #RRGGBBAA). For example, #f09 is the same color as #ff0099. The three-digit notation ( #RGB) is a shorter version of the six-digit form ( #RRGGBB). R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0–9, A–F). For example, #ff0000 is equivalent to #ff0000ff. Note: As of CSS Colors Level 4, rgba() is an alias for rgb().


Note: The list of accepted keywords has undergone many changes during the evolution of CSS:
