A standard single pole light switch will simply require you to attach the black load wire into it and then the black wire leaving the switch and to your lights. Knowing the purpose of each wire will keep you safe and your houses electrical system in top working order.

3 Way Switch Wiring Electrical 101
Light switch wiring colors. On the other hand yellow wires are used as switch legs. Blue wires are generally used in a three way and four way switch applications by travelers. The light colored terminals are the traveler terminals and are interchangeable. Opening up an outlet or light switch box you might be confronted with a bewildering array of wires of different colorsblack white bare copper and other colors closely intermingle yet each one has a specific purpose. All nm cables contain the basic black insulation and white insulation wires plus the bare copper or green insulated ground wire. Wiring two switches for two lights here two switches are wired in the same box to control two separate lights.
What the color of an electrical wire means black electrical wires. Copper and green wires copper and green wires are used for grounding purposes only. The dark colored terminal is the common terminal and brings power from the source to the light fixture. In 220 volt circuits red wires are the secondary live wires. If there is a grounding terminal now simply hook the black wire to the bottom terminal and the white wire to the top terminal. These switches have two light colored terminals and one dark colored terminal plus a ground screw.
Hook up the ground wire to the box and then to the switch. In your switch box you will only have one black one white and one ground wire. The neutral wire from the source is spliced to the white cable wire and continues on to the light. This color of wire is used to transfer power to switches and outlets in all types of circuits. Blue and yellow. At the light the white wire connects to the neutral terminal and the black wire connects to the hot.
Standard colors used for home wiring. Like black wires they can also be. The switch serves to cut the power from reaching the light switch. Push the switch into the box and screw it in. The white or neutral wire bypasses the switch and goes straight to your lights. In a three wire cable there will also be an additional red insulated wire commonly used as the traveler in an application such as a two way switch.
In other words blue yellow violet and brown wires come into play when you have multiple wall switch locationstwo in a 3 way switch or three in a 4 way switchthat control the same set of. Color coding on three way switches is very important.