When under sail, you must have a red port light, a green starboard light and a white stern light. When at anchor, you should just have the anchor light switched on (usually a white light atop the mast).