Math is often used to create musical compositions, with composers using mathematical principles to guide their use of rhythm, harmony, and melody.
Color is as well an important consideration for many musicians, who use visual representations of music to aid in their creative process.
Music and color share fundamental mathematical properties, such as the use of ratios and proportions to create harmonious effects. Color can be used to represent musical concepts, such as the use of warm colors to represent major keys and cool colors to represent minor keys.
https://www.davidpatchen.com/content/relationship-between-math-color-music