Overview
The Text Contrast (Luminance) prefab automatically adjusts the color of all text inside a container to meet a target contrast ratio against a background. Use this prefab when:- Your background color changes dynamically
- You’re working with Glass / Blur materials
- You want to meet accessibility contrast standards automatically
- You want a single source of truth controlling text color inside a container
Text Contrast (Luminance) prefabs should be placed on the parent of the text you want to control.
Controls
Contrast Ratio
Set the target contrast ratio between text and background.- 4.5 meets WCAG AA standard for normal text. 7 provides stronger accessibility. Higher values increase contrast.

