html color match: transparent, #fff, #123456, rgb, rgba, hsl, hsla
This may be useful or not to test whether a given string is a valid (more or less) html color value. It matches color values such as:
#123 - short hex color value
#123456 - hex color value
rgb(255,255,0) - rgb color value
rgba(255,255,0,1.0) - rgba color value
hsl(360,100%,100%) - hsl color value...
Submitted by grouch - 10 years ago