Understanding electrical wire colors ensure the electrician’s, residents’, and appliances’ safety every time the electrical system is under maintenance or repair.

Different colors indicate the wire’s purpose in the circuit. Wiring a new ceiling fan poses a challenge if you don’t understand which wire is “hot” and which is neutral or ground. This chart will answer your questions.

Remember that all wires may carry an electric current at certain times so, they should all be treated with the same caution. It is crucial to understand the wires that may pose the biggest threat, the hot wires. Hotwires are the ones that carry live electrical current from the electric panel or breaker box to destinations like an outlet or light fixtures. They are also known as line wires.
Before handling electrical wire repair work, ensure no power is running in them by switching off the main electrical power supply. A multimeter can be used to help troubleshoot and check the home’s electrical wiring.
Remember: Assume it’s hot and act accordingly. Be safe!
Source: https://removeandreplace.com/2020/03/26/electrical-wire-color-codes-wiring-colors-chart/