Different varieties have different colors.
There are many varieties of jellyfish, and different varieties have different colors, such as: blue moon jellyfish, red moon jellyfish, white snowflake jellyfish, yellow Pacific golden jellyfish, etc.
The jellyfish itself is transparent, and its light depends on a protein called equimine. For example, when this protein is mixed with calcium ions, it emits strong blue light.