Why is yellow not common on lights?

It is. Yellow bug lights are common. They tend not to attract bugs. Often used in outdoor lights.