-
-
Notifications
You must be signed in to change notification settings - Fork 2
HTML HSL Colours
HSL stands for hue, saturation, and lightness.
HSLA color values are an extension of HSL with an Alpha channel (opacity).
In HTML, a color can be specified using hue, saturation, and lightness (HSL) in the form:
hsl(hue, saturation, lightness)
Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue.
Saturation is a percentage value, 0% means a shade of gray, and 100% is the full color.
Lightness is also a percentage value, 0% is black, and 100% is white.
HSLA color values are an extension of HSL color values with an Alpha channel - which specifies the opacity for a color.
An HSLA color value is specified with:
hsla(hue, saturation, lightness, alpha)
The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all):
HTML Intermediate Tutorials
© 2021, Learn Earn & Fun, Inc.
- Home
- HTML Styles
- HTML Colours
- HTML Forms
- HTML Tables
- HTML IFrames
- HTML Symbols(UTF-8) Reference
- HTML Emojis(UTF-8) Reference
- HTML Video Embeds