Hello everyone,
I’m having an issue where the text colour in the WebGL build differs significantly from that in the editor / Windows build. As I haven’t been able to find a solution online, I thought I’d ask here. The effect seems to occur only with colours. White remains white and black remains black, but colours appear desaturated. Furthermore, it only affects text, not graphics, menu backgrounds or anything else.
WebGL Build:

Windows Build:

Unity: 2022.3.62f3
AC: 1.86.0
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
What's the Menu's Source? If Unity UI, is the Font a regular Unity one, or a TextMesh Pro one?
If the Source is set to Adventure Creator, is there a difference if you switch to Unity Ui Prefab?
The menu source is Adventure Creator and I’m using a custom .ttf font. However, I can also use the default font and still have the same problem.
For menus that use the Uniy UI Prefab as their source, the correct colour is retained, but in that case I’m using the TMP version (font TMP.asset) of the font.
It sounds like it may be a color-space issue. This is a setting in your Project -> Player settings. You can try switching between the Linear / Gamma options, but I suspect this may affect other graphics in your game.
It might be worth darkening your font to compensate for the brightening WebGL adds - if you find a colour that matches your intent, we can rely on a script to alter it dynamically based on the platform. Switching over to Unity UI is also an option - and in general I would recommend that all Menus rely on the same Source option.