That's contained by the same CSS Color Module Level 4, so it has worse support than the first two solutions, but it's already 在较大的浏览器中实现 (sorry, no IE).
This differs from the other solutions, as this treats the alpha channel (opacity) as a hexadecimal value as well, making it range from 0 - 255 (FF).