They are legal, but they must be painted according to their contents if they’re flammable (red=gas, yellow=diesel, blue=kerosene), and have CARB-compliant spouts. I carry a regular “donkey **********” spout despite the regs.
Green/brown is usually used for water here, due to the kerosene reg, and is...