rgb(255,255,255) notation has been available since CSS1. But #ffffff seems to be vastly more popular.
rgb(255,255,255)
#ffffff
Obviously it\'s slightly more compact
HEX is most common due to historical reasons.
Before CSS was common in web development, colors were specified within HTML tags and the most commonly used and supported way to specify a color was to use HEX values.