3 ms·
In fact, you have even more options, not just two: 1) RGB: #rrggbb (rgb hex) / rgb(r,g,b) (rgb int 0-255) / rgba(r,g,b,a) (as before, plus alpha). In addition,
by mschuster91 10y ago
In fact, you have even more options, not just two:
1) RGB: #rrggbb (rgb hex) / rgb(r,g,b) (rgb int 0-255) / rgba(r,g,b,a) (as before, plus alpha). In addition, rgb/rgba support percentage values instead of 0-255.
2) red (color names)
3) hsl(h,s,l)
4) cmyk(c,m,y,k)
For compatibility with anything except Thunderbird (which supports all four formats IIRC), stick with #rrggbb or plaintext names. Webmailers are especially prone to filtering by regex (ugh), and stripping out everything they don't know.
- nightpool 10y agoI'm not seeing that on the text/enriched spec? You might be thinking of HTML email.