When riding at night, your bicycle must have a white headlight visible for:

When riding at night, the bicycle must have a white headlight visible for 500 feet and a red reflector visible for 600 feet to the rear. A flashing taillight or a steady red taillight may be used in addition to the red reflector.
DMV Writen Test